* src/cff/cffgload.c (cff_slot_load): The `horiAdvance` value needs
an adjustment for a non-uniform scaling matrix when it came from a raw CFF
data blob but not for the OpenType/CFF case when an 'hmtx' table is
available. Similarly, the `vertAdvance` value does never come from the
CFF data blob so it doesn't need adjustment.
* src/cff/cffgload.c (cff_slot_load): When there is an 'hmtx' table
available, don't use its `horiBearingX` information as that gets
unconditionally overruled based on the result of `FT_Outline_Get_CBox` later
on.
* src/cff/cffgload.c (cff_slot_load): Don't adjust
`FT_GlyphMetrics::{horiAdvance,vertAdvance}` for non-zero font matrix
offsets as these are vectors, not points.
* src/cid/cidgload.c (cid_slot_load_glyph): Likewise.
* src/cid/type1/t1gload.c (T1_Load_Glyph): Likewise.
* src/type1/t1gload.c (T1_Get_Advances): Take non-uniform font matrix
xx vs yy scaling into account.
(T1_Load_Glyph) [linearHoriAdvance]: Likewise.
* src/cid/cidgload.c (cid_slot_load_glyph) [linearHoriAdvance]: Likewise.
* src/cff/cffgload.c (cff_slot_load) [linearHoriAdvance]: Likewise.
Including different top/sub font units_per_em values.
* src/sfnt/sfdriver (IS_WIN, IS_APPLE): Omit language ID checks.
(get_win_string, get_apple_string): Return NULL when the PostScript
font name characters is not according to specification.
(get_win_string): Make trace output work if the high byte if
non-zero.
(sfnt_get_var_ps_name, sfnt_get_ps_name): Previously we preferred
Win PS name (when there is also an Apple PS name); change this into
a fallback to Apple PS name in case the Win PS name is invalid.
* include/freetype/internal/cfftypes.h (CFF_FontRec): Add
`font_extra' entry.
* src/cff/cffdrivr.c (cff_ps_get_font_extra): New function to
retrieve FSType info from the embedded PostScript data.
(cff_service_ps_info): Register function.
* src/cff/cffload.c (cff_font_done): Free `font_extra'.
1. If `FamilyName' is present in the CFF font, use this for
FT_Face's `family_name'.
2. Otherwise, use the face name and chop off any subset prefix.
3. If at this point FT_Face's `family_name' is set, use this
together with the full name to determine the style.
4. Otherwise, use `CIDFontName' as FT_Face's `family_name'.
5. If we don't have a valid style, use "Regular".
Previously, FT_Face's `family_name' entry for pure CFF fontdata
nearly always was the fontname itself, instead of the `FamilyName'
entry in the CFF font (assuming there is one).
* src/cff/cffobjs.c (cff_face_init) [pure_cff]: Implement it.
* src/cff/cffload.c (cff_index_get_pointers): Check for `cur_offset
!= 0'; this stronger test is mandated by the CFF specification.
Fix test for INDEX structures which have one or more empty entries
at the end.
This is Savannah bug #37856.
* src/pshinter/pshglob.c (psh_calc_max_height): New function.
(psh_globals_new): Use it to limit BlueScale value to
`1 / max_of_blue_zone_heights'.
start_point, check_points, add_point, add_point1, close_contour
macros.
Remove add_contour macro.
Return error code from t1_builder_start_point and
t1_builder_check_points when there was one (instead of returning 0).
* include/freetype/internal/t1types.h (T1_EncodingRecRec_): Update
comment to reflect revised code_last meaning.
* src/type1/t1load.c (T1_Open_Face), src/type42/t42objs.c
(T42_Open_Face): Assign max_char as highest character code + 1 and
use this for T1_EncodingRecRec_::code_last.
* src/psaux/t1cmap.c (t1_cmap_custom_init): Follow revised
T1_EncodingRecRec_::code_last meaning.