summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2019-04-17 07:49:17 +0200
committerWerner Lemberg <wl@gnu.org>2019-04-19 07:02:37 +0200
commitc149f7397e484c97f45fb75fa1c7fdda2fc646cd (patch)
treea948c1eff073e6cb99b033373def2cf9fafd5f04 /docs
parentebe375081289844e580242fe7956fa2082ab89b6 (diff)
downloadfreetype2-c149f7397e484c97f45fb75fa1c7fdda2fc646cd.tar.gz
[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.
Diffstat (limited to 'docs')
-rw-r--r--docs/CHANGES4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/CHANGES b/docs/CHANGES
index 11757f604..1d61359d0 100644
--- a/docs/CHANGES
+++ b/docs/CHANGES
@@ -11,6 +11,10 @@ CHANGES BETWEEN 2.10.0 and 2.10.1
- For distribution, `.tar.bz2' packages are replaced with `.tar.xz'
bundles.
+ - The handling of the default character in PCF fonts as introduced
+ in version 2.9.1 was partially broken, causing premature abortion
+ of charmap iteration for many fonts.
+
======================================================================