[bdf] Support `ENCODING -1 <n>' format.
* src/bdf/bdflib.c (_bdf_parse_glyphs) <ENCODING>: Implement it.
This commit is contained in:
parent
28dd2c4595
commit
03242f58c4
@ -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.
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user