[bdf] Support `ENCODING -1 <n>' format.

* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Implement it.
This commit is contained in:
Werner Lemberg 2012-02-26 06:52:56 +01:00
parent 28dd2c4595
commit 03242f58c4
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-02-26 Werner Lemberg <wl@gnu.org>
[bdf] Support `ENCODING -1 <n>' format.
* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Implement it.
2012-02-26 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #35607.

View File

@ -545,6 +545,10 @@
}
/* The code below ensures that we have at least 4 + 1 `field' */
/* elements in `list' (which are possibly NULL) so that we */
/* don't have to check the number of fields in most cases. */
static FT_Error
_bdf_list_split( _bdf_list_t* list,
char* separators,
@ -1611,6 +1615,10 @@
if ( p->glyph_enc < -1 )
p->glyph_enc = -1;
/* Check for alternative encoding format. */
if ( p->glyph_enc == -1 && p->list.used > 2 )
p->glyph_enc = _bdf_atol( p->list.field[2], 0, 10 );
FT_TRACE4(( DBGMSG2, p->glyph_enc ));
/* Check that the encoding is in the Unicode range because */