Al-Qurtas-Islamic-bank-The-.../src/autofit
Werner Lemberg 319125d4c2 [autofit] Prevent overlapping blue zones.
Problem reported as

  https://github.com/google/fonts/issues/632

The font in question (Nunito) has values 705 and 713 for the
reference and overshoot values, respectively, of the first blue
zone.  Blue zone 2, however, has value 710 for both the reference
and overshoot.  At 12ppem, reference and overshoot of blue zone 0
becomes 8px, while blue zone 2 becomes 9px.

A peculiarity of this font is that the tops of isolated vertical
stems like `N' have a slight overshoot also.  The auto-hinter tries
to find the nearest blue zone using the *original* coordinates.  For
vertical stems, this is value 713.  For normal horizontal tops like
in character `E', this is value 710.  Since value 713 is mapped to
8px but value 710 to 9px, `N' and similar characters are one pixel
higher than `E', which looks very bad.

This commit sanitizes blue zones to avoid such a behaviour.

* src/autofit/aflatin.c (af_latin_sort_blue): New function.
(af_latin_metrics_init_blues): Sort blue values and remove overlaps.
2017-02-13 09:34:17 +01:00
..
Jamfile Update copyright year. 2017-01-04 20:16:34 +01:00
afangles.c Update copyright year. 2017-01-04 20:16:34 +01:00
afangles.h * src/autofit/afdummy.c, src/autofit/afdummy.h 2005-03-02 11:24:23 +00:00
afblue.c [autofit] Use better blue zone characters for lowercase latin. 2017-02-05 08:33:10 +01:00
afblue.cin Update copyright year. 2017-01-04 20:16:34 +01:00
afblue.dat [autofit] Use better blue zone characters for lowercase latin. 2017-02-05 08:33:10 +01:00
afblue.h [autofit] Use better blue zone characters for lowercase latin. 2017-02-05 08:33:10 +01:00
afblue.hin Update copyright year. 2017-01-04 20:16:34 +01:00
afcjk.c [autofit] Avoid uninitialized jumps (#50191). 2017-01-31 08:10:04 +01:00
afcjk.h Update copyright year. 2017-01-04 20:16:34 +01:00
afcover.h Update copyright year. 2017-01-04 20:16:34 +01:00
afdummy.c Update copyright year. 2017-01-04 20:16:34 +01:00
afdummy.h Update copyright year. 2017-01-04 20:16:34 +01:00
aferrors.h Update copyright year. 2017-01-04 20:16:34 +01:00
afglobal.c * src/autofit/afglobal.c (af_face_globals_free): Erase useless code. 2017-02-03 19:38:20 +01:00
afglobal.h Update copyright year. 2017-01-04 20:16:34 +01:00
afhints.c Update copyright year. 2017-01-04 20:16:34 +01:00
afhints.h Update copyright year. 2017-01-04 20:16:34 +01:00
afindic.c Update copyright year. 2017-01-04 20:16:34 +01:00
afindic.h Update copyright year. 2017-01-04 20:16:34 +01:00
aflatin.c [autofit] Prevent overlapping blue zones. 2017-02-13 09:34:17 +01:00
aflatin.h Update copyright year. 2017-01-04 20:16:34 +01:00
aflatin2.c Update copyright year. 2017-01-04 20:16:34 +01:00
aflatin2.h Update copyright year. 2017-01-04 20:16:34 +01:00
afloader.c Comments. 2017-02-03 21:32:21 +01:00
afloader.h Update copyright year. 2017-01-04 20:16:34 +01:00
afmodule.c Make compilation with FT_CONFIG_OPTION_PIC work again. 2017-02-02 07:13:29 +01:00
afmodule.h Update copyright year. 2017-01-04 20:16:34 +01:00
afpic.c Update copyright year. 2017-01-04 20:16:34 +01:00
afpic.h Make compilation with FT_CONFIG_OPTION_PIC work again. 2017-02-02 07:13:29 +01:00
afranges.c Update copyright year. 2017-01-04 20:16:34 +01:00
afranges.h Update copyright year. 2017-01-04 20:16:34 +01:00
afscript.h Update copyright year. 2017-01-04 20:16:34 +01:00
afshaper.c Update copyright year. 2017-01-04 20:16:34 +01:00
afshaper.h Update copyright year. 2017-01-04 20:16:34 +01:00
afstyles.h Update copyright year. 2017-01-04 20:16:34 +01:00
aftypes.h Make compilation with FT_CONFIG_OPTION_PIC work again. 2017-02-02 07:13:29 +01:00
afwarp.c Update copyright year. 2017-01-04 20:16:34 +01:00
afwarp.h Update copyright year. 2017-01-04 20:16:34 +01:00
afwrtsys.h Update copyright year. 2017-01-04 20:16:34 +01:00
autofit.c Update copyright year. 2017-01-04 20:16:34 +01:00
module.mk Update copyright year. 2017-01-04 20:16:34 +01:00
rules.mk Update copyright year. 2017-01-04 20:16:34 +01:00