diff options
-rw-r--r-- | src/FreeType/ftenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FreeType/ftenc.c b/src/FreeType/ftenc.c index a9d6494..f6436fc 100644 --- a/src/FreeType/ftenc.c +++ b/src/FreeType/ftenc.c @@ -86,7 +86,11 @@ FTPickMapping(char *xlfd, int length, char *filename, FT_Face face, symbol = FTEncFontSpecific(encoding_name); +#if XFONT_BDFFORMAT ftrc = FT_Get_BDF_Charset_ID(face, &enc, ®); +#else + ftrc = -1; +#endif if(ftrc == 0) { /* Disable reencoding for non-Unicode fonts. This will currently only work for BDFs. */ |