Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
font-patcher: Issue warning if symbol scaling fails monospace goal
[why] Sometimes fonts patched with --mono are not recognized as monospaced fonts. One reason can be that the inserted glyphs are too wide. This will show in the end in the font's advanceWidthMax property which is not congruent to the normal font width. [how] After all the scaling and jiggling we double check if the new glyph already in the to-be-patched is not wider than our design goal for the width. Normally one would expect that this always holds. An exemption could be if we insert ligatures, that are two spaces wide. But at the moment we can not anyhow (because there is no way to add information to the ligature tables right now). If a glyph is wider a warning is issued. No warning is issued if the glyph shall have some overlap. That overlap is taken into account of this check. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
- Loading branch information