Skip to content

[base] Undefined scale means no scale.

Alexei Podtelezhnikov requested to merge undefined_scale into master

It might be surprising that FreeType does not have default ppem and the size has to be set explicitly or face undefined behavior with undefined variables and errors. This offers an alternative to missing or zero scale by simply setting FT_LOAD_NO_SCALE.

This is alternative to !132 (closed) and discussed in https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43708

  • src/base/ftobjs.c (FT_Load_Glyph): Deal with zero scale.
Edited by Alexei Podtelezhnikov

Merge request reports