8 |
/* be used to parse compressed PCF fonts, as found with many X11 server */ |
/* be used to parse compressed PCF fonts, as found with many X11 server */ |
9 |
/* distributions. */ |
/* distributions. */ |
10 |
/* */ |
/* */ |
11 |
/* Copyright 2004 by */ |
/* Copyright 2004, 2005 by */ |
12 |
/* Albert Chin-A-Young. */ |
/* Albert Chin-A-Young. */ |
13 |
/* */ |
/* */ |
14 |
/* Based on code in src/gzip/ftgzip.c, Copyright 2004 by */ |
/* Based on code in src/gzip/ftgzip.c, Copyright 2004 by */ |
414 |
FT_Memory memory = source->memory; |
FT_Memory memory = source->memory; |
415 |
FT_LZWFile zip; |
FT_LZWFile zip; |
416 |
|
|
417 |
/* check the header right now, this will prevent us from |
|
418 |
* allocating a huge LZWFile object (400 Kb of heap memory !!) |
/* |
419 |
* when not necessary. |
* Check the header right now; this prevents allocation a huge |
420 |
* |
* LZWFile object (400 KByte of heap memory) if not necessary. |
421 |
* Did I mention that you should never use .Z compressed font |
* |
422 |
* file ? |
* Did I mention that you should never use .Z compressed font |
423 |
*/ |
* file? |
424 |
|
*/ |
425 |
error = ft_lzw_check_header( source ); |
error = ft_lzw_check_header( source ); |
426 |
if ( error ) |
if ( error ) |
427 |
goto Exit; |
goto Exit; |