summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/libttf/gstate.c
blob: d8b7adcca79b125e6029256c32e636a4050deca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* gstate.c -- manage graphics state
 * Copyright (C) 1996 Li-Da Lho, All right reserved.
 */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdlib.h>
#include "ttf.h"
#include "ttfutil.h"

/* 	$Id: gstate.c,v 1.1.1.1 1998/06/05 07:47:52 robert Exp $	 */

GraphicsState gsdefault;

void ttfInitGraphicsState(TTFontPtr font)
{
#if 0
    font->gstate = GS_DEFAULT;
    font->gstate_init = GS_DEFAULT;
#endif

#if 0
    ttfExecuteInstruction(font, font->fpgm);
    ttfExecuteInstruction(font, font->prep);
#endif
}

void ttfInitStack(TTFontPtr font)
{
    font->vm.sp = 0;
    font->vm.Stack = XCALLOC (font->maxp->maxStackElements, LONG);
}

void ttfInitStorageArea(TTFontPtr font)
{
    font->vm.StorageArea = XCALLOC (font->maxp->maxStorage, LONG);
}