CPC G06F 40/166 (2020.01) [G06F 40/279 (2020.01)] | 20 Claims |
1. A method comprising:
detecting, by a processing device, a missing glyph is not included in a font to be used to render digital content in a user interface;
generating, by the processing device, a plurality of glyph clusters in the font, each glyph cluster including a plurality of glyphs having a threshold level of similarity;
locating, by the processing device, at least one replacement glyph in the font, the locating including:
identifying a glyph cluster from the plurality of glyph clusters as corresponding to the missing glyph by comparing the missing glyph to a representative glyph that represents an average of glyphs of the glyph cluster;
determining an amount of similarity of the missing glyph to glyphs of the glyph cluster based on a vector representation of the glyph cluster;
selecting a glyph from the glyph cluster based on the amount of similarity;
identifying an additional glyph cluster corresponding to an additional representative glyph with a threshold amount of similarity to the representative glyph;
identifying a section of a glyph from the additional glyph cluster with a different amount of similarity to the missing glyph than a section of the glyph from the glyph cluster; and
generating the at least one replacement glyph by combining the glyph from the glyph cluster with the section of the glyph from the additional glyph cluster; and
displaying, by the processing device, the digital content and the at least one replacement glyph in the user interface.
|