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/lib/memgfx.c src/lib/memgfx.c index d03054c..27865d4 100644 --- src/lib/memgfx.c +++ src/lib/memgfx.c @@ -813,31 +813,31 @@ return ftWidth(font, (unsigned char *)chars, charCount); } int mgFontStringWidth(MgFont *font, char *string) /* How wide is a string? */ { return mgFontWidth(font, string, strlen(string)); } int mgGetFontStringWidth(struct memGfx *mg, MgFont *font, char *string) /* How wide is a string? */ { return mgFontStringWidth(font, string); } -void mgSetFontMethod(struct memGfx *mg, unsigned int method, char *fontFile) +void mgSetFontMethod(struct memGfx *mg, unsigned int method, char *fontName, char *fontFile) /* Which font drawing method shoud we use. */ { mg->fontMethod = method; if (method == FONT_METHOD_FREETYPE) ftInitialize(fontFile); } int mgFontCharWidth(MgFont *font, char c) /* How wide is a character? */ { return mgFontWidth(font, &c, 1); } char *mgFontSizeBackwardsCompatible(char *size)