CPC G06F 40/109 (2020.01) [G06F 40/106 (2020.01); G06F 40/166 (2020.01)] | 14 Claims |
1. A computer implemented method including:
receiving embedded font text, the embedded font text defining characters associated with an original font family, the original font family being an unsupported font family;
processing the embedded font text to generate original glyph metrics data, the original glyph metrics data defining each unique glyph used in the embedded font text and a count of the number of times each unique glyph is used in the embedded font text;
calculating a combined original font glyph width based on the original glyph metrics data;
identifying one or more candidate font families, each candidate font family associated with a plurality of candidate font family glyphs;
for each candidate font family:
calculating a combined candidate font family glyph width, the combined candidate font family glyph width being based on the candidate font family's candidate font family glyphs and the original glyph metrics data;
calculating a candidate font family difference, the candidate font family difference being a measure of how the candidate font family's combined candidate font family glyph width compares to the combined original font glyph width; and
selecting a particular candidate font family as a replacement font family based on the candidate font family differences of the one or more candidate font families.
|