Skip to content

[mm] Tolerate missing Blend dictionary entries

Ben Wagner requested to merge bungeman/freetype:zero_blend_content_hack into master

In a Multiple Master font, the Blend dictionary must contain valid Private, FontInfo, and FontBBox. The current code will error if any of these are present and invalid, but will not error and will provide uninitialized data if the Blend dictionary exists but does not contain one of these entries. This change reverts to the older behavior of treating any missing entries as containing all zero data and not returning an error.

In the future it may be best to keep track of when these are actually initialized and error if they are not.

  • src/type1/t1load.c (t1_allocate_blend): zero initiailize.

Merge request reports