diff options
Diffstat (limited to 'src/fontfile/fileio.c')
-rw-r--r-- | src/fontfile/fileio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fontfile/fileio.c b/src/fontfile/fileio.c index a3f9464..3733148 100644 --- a/src/fontfile/fileio.c +++ b/src/fontfile/fileio.c @@ -78,6 +78,15 @@ FontFileOpen (const char *name) } raw = cooked; #endif +#ifdef X_BZIP2_FONT_COMPRESSION + } else if (len > 4 && !strcmp (name + len - 4, ".bz2")) { + cooked = BufFilePushBZIP2 (raw); + if (!cooked) { + BufFileClose (raw, TRUE); + return 0; + } + raw = cooked; +#endif } return (FontFilePtr) raw; } |