Werner Lemberg c149f7397e [pcf] Fix handling of undefined glyph (#56067).
This commit fixes the changes from 2018-07-21, which broke charmap
iteration.  We now add the default character as a new glyph with
index 0, thus increasing the number of glyphs by one (as before).

* src/pcf/pcfread.c (pcf_get_metrics): Adjust to new artificial
glyph with index 0.
Limit number of elements to 65534.
(pcf_get_bitmaps): Ditto.
Unify two loops into one; this avoids allocation of an intermediate
array.
(pcf_get_encodings): Don't flip indices but copy glyph metrics of
default character to index 0.
Also handle invalid default character.

* docs/CHANGES: Updated.
2019-04-19 07:02:37 +02:00
..
2013-11-10 06:26:52 +01:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2019-03-15 07:56:49 +01:00
2011-06-18 08:06:57 +02:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2017-01-13 10:33:09 +01:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2018-12-25 22:44:05 +01:00
2019-02-23 10:07:09 +01:00
2019-02-23 10:07:09 +01:00
2019-03-15 07:56:49 +01:00