| 1 |
/* gstate.c -- manage graphics state |
| 2 |
* Copyright (C) 1996 Li-Da Lho, All right reserved. |
| 3 |
*/ |
| 4 |
#ifdef HAVE_CONFIG_H |
| 5 |
#include <config.h> |
| 6 |
#endif |
| 7 |
|
| 8 |
#include <stdlib.h> |
| 9 |
#include "ttf.h" |
| 10 |
#include "ttfutil.h" |
| 11 |
|
| 12 |
/* $Id: gstate.c,v 1.1.1.1 1998/06/05 07:47:52 robert Exp $ */ |
| 13 |
|
| 14 |
GraphicsState gsdefault; |
| 15 |
|
| 16 |
void ttfInitGraphicsState(TTFontPtr font) |
| 17 |
{ |
| 18 |
#if 0 |
| 19 |
font->gstate = GS_DEFAULT; |
| 20 |
font->gstate_init = GS_DEFAULT; |
| 21 |
#endif |
| 22 |
|
| 23 |
#if 0 |
| 24 |
ttfExecuteInstruction(font, font->fpgm); |
| 25 |
ttfExecuteInstruction(font, font->prep); |
| 26 |
#endif |
| 27 |
} |
| 28 |
|
| 29 |
void ttfInitStack(TTFontPtr font) |
| 30 |
{ |
| 31 |
font->vm.sp = 0; |
| 32 |
font->vm.Stack = XCALLOC (font->maxp->maxStackElements, LONG); |
| 33 |
} |
| 34 |
|
| 35 |
void ttfInitStorageArea(TTFontPtr font) |
| 36 |
{ |
| 37 |
font->vm.StorageArea = XCALLOC (font->maxp->maxStorage, LONG); |
| 38 |
} |