c73823892aa5384025c64a22b5da8e4332d38efd braney Wed Sep 30 14:53:48 2020 -0700 get the postscript driver to allow font specification. Use the correct names for fonts. diff --git src/inc/pscmGfx.h src/inc/pscmGfx.h index e5695c1..4703c00 100644 --- src/inc/pscmGfx.h +++ src/inc/pscmGfx.h @@ -16,30 +16,32 @@ * output */ { struct pscmGfx *next; struct psGfx *ps; /* Underlying postScript object. */ int colAlloc; /* Colors allocated. */ int colUsed; /* Colors used. */ void *curFont; /* Current font. */ int curColor; /* Current color. */ struct colHash *colorHash; /* Hash for fast look up of color. */ struct rgbColor colorMap[256]; /* The color map. */ int colorsUsed; /* Number of colors actually used. */ int clipMinX, clipMaxX; /* Clipping region upper left corner. */ int clipMinY, clipMaxY; /* lower right, not inclusive */ struct hash *hints; /* Hints to guide behavior */ int writeMode; /* current write mode */ + int fontMethod; /* current font mode */ + char *fontName; }; struct pscmGfx *pscmOpen(int width, int height, char *file); /* Return new pscmGfx. */ void pscmClose(struct pscmGfx **ppscm); /* Finish writing out and free structure. */ void pscmSetClip(struct pscmGfx *pscm, int x, int y, int width, int height); /* Set clipping rectangle. */ void pscmUnclip(struct pscmGfx *pscm); /* Set clipping rect cover full thing. */ int pscmFindColorIx(struct pscmGfx *pscm, int r, int g, int b);