freetype2/src
Ben Wanger 2a790a9f49 [cff, truetype] Always set up default variable instance.
For default variable instances `cff_face_init` did not set the blend.  This
mostly worked as later use of the unset blend produced the default
variation.  However, if a user called `TT_Get_MM_Var` the blend would be
partially set up, but not fully.  In particular the number of axes, the axis
definitions, and the instance locations would be set up, but not the current
instance location (`coords` and `normalizedcoords`).  This could lead to the
default instances of CFF2 fonts erroring on any use of `blend`.

Ensure the default variable instance is fully set up by always calling
`FT_Set_Named_Instance` on a variable face.

* src/cff/cffobjs.c (cff_face_init): Call `FT_Set_Named_Instance` on
default instances.
* src/truetype/ttobjs.c (tt_face_init): Ditto.

Fixes #1268.
2024-02-29 07:06:46 +01:00
..
autofit Update all copyright notices. 2024-01-27 11:11:22 -05:00
base Update all copyright notices. 2024-01-27 11:11:22 -05:00
bdf Replace `sprintf` with `snprintf`. 2023-05-23 13:18:01 +02:00
bzip2 Update all copyright notices. 2024-01-27 11:11:22 -05:00
cache Update all copyright notices. 2024-01-27 11:11:22 -05:00
cff [cff, truetype] Always set up default variable instance. 2024-02-29 07:06:46 +01:00
cid Update all copyright notices. 2024-01-27 11:11:22 -05:00
dlg Update all copyright notices. 2024-01-27 11:11:22 -05:00
gxvalid Update all copyright notices. 2024-01-27 11:11:22 -05:00
gzip Update all copyright notices. 2024-01-27 11:11:22 -05:00
lzw Update all copyright notices. 2024-01-27 11:11:22 -05:00
otvalid Update all copyright notices. 2024-01-27 11:11:22 -05:00
pcf * src/pcf/pcfutil.c (BSWAP16): Limit clang support. 2023-10-21 19:08:20 -04:00
pfr Update all copyright notices. 2024-01-27 11:11:22 -05:00
psaux Update all copyright notices. 2024-01-27 11:11:22 -05:00
pshinter Update all copyright notices. 2024-01-27 11:11:22 -05:00
psnames Update all copyright notices. 2024-01-27 11:11:22 -05:00
raster Update all copyright notices. 2024-01-27 11:11:22 -05:00
sdf Update all copyright notices. 2024-01-27 11:11:22 -05:00
sfnt Update all copyright notices. 2024-01-27 11:11:22 -05:00
smooth Update all copyright notices. 2024-01-27 11:11:22 -05:00
svg Update all copyright notices. 2024-01-27 11:11:22 -05:00
tools Update all copyright notices. 2024-01-27 11:11:22 -05:00
truetype [cff, truetype] Always set up default variable instance. 2024-02-29 07:06:46 +01:00
type1 Update all copyright notices. 2024-01-27 11:11:22 -05:00
type42 Update all copyright notices. 2024-01-27 11:11:22 -05:00
winfonts Update all copyright notices. 2024-01-27 11:11:22 -05:00