Interested in licensing this patent?
MTEC can help explore whether this patent might be available for licensing for your application.
Abstract
A font switching method obtains, through pixel matching with a comparison font, a target font consistent with a font currently used by an operating system, and applies the target font to a third-party application, enabling the third-party application to accurately vary with a font change of the operating system and to avoid inconsistency between the font used by the third-party application and the font used by the operating system.
Core Innovation
The invention addresses font inconsistency between an operating system and a third-party application by switching a third font of the third-party application to a target font. It generates a target dot matrix based on a first font currently used by the operating system and obtains comparison dot matrices corresponding to various types of fonts loaded by the operating system. The method then performs pixel matching between each comparison dot matrix and the target dot matrix to determine a comparison dot matrix matching the target dot matrix.
After identifying a first comparison dot matrix that matches the target dot matrix, the method sets a second font of a type corresponding to the first comparison dot matrix as the target font. The method switches the third font of a third-party application to the target font. This includes determining the target font using pixel matching results and then applying the target font to the third-party application to align font rendering.
In the described implementation, target and comparison dot matrices are produced from preset character/text rendered into bitmap/canvas objects, yielding dot matrices that can be compared by pixel distribution consistency. The document further describes constraining the pixel matching using monochromatic or binary matching so that the comparison dot matrices are selected based on matching pixel distributions. It also includes handling fonts loaded by the operating system in terms of default font versus non-default fonts, and preparing dot-matrix representations for the relevant font types.
Claims Coverage
The independent claims share the same core workflow: generating a target dot matrix from a first operating-system font, matching it via pixel matching to dot matrices of fonts loaded by the operating system, mapping the matching dot matrix to a target font, and switching a third-party application’s third font to that target font. Across the dependent claims, the main inventive features refine dot-matrix generation, matching representation, and font-set selection.
Generating a target dot matrix from an operating-system font
Generating a target dot matrix based on a first font currently used by an operating system.
Obtaining comparison dot matrices for fonts loaded by the operating system
Obtaining comparison dot matrices corresponding to various types of fonts loaded by the operating system.
Pixel matching to determine a matching dot matrix
Performing pixel matching between each of the comparison dot matrices and the target dot matrix to determine a first comparison dot matrix matching the target dot matrix.
Setting a target font based on the matching dot matrix
Setting a second font of a type corresponding to the first comparison dot matrix as a target font.
Switching a third-party application font to the target font
Switching a third font of a third-party application to the target font.
Canvas/bitmap rendering of preset character to form the target dot matrix
Creating a bitmap object and a canvas object, drawing a preset character on the canvas using the first font to obtain a drawn result, and saving the drawn result into the bitmap to obtain the target dot matrix.
Monochromatic/binary data matching for selecting the comparison dot matrix
Obtaining monochromatic bitmaps and selecting a comparison dot matrix based on binary data matching, where the second binary data of a comparison dot matrix matches the first binary data of the target dot matrix.
Default versus non-default font selection for comparison
Obtaining all types of fonts loaded by the operating system and the default font, determining a non-default font based on those fonts, and generating a comparison dot matrix corresponding to the non-default font.
Storage path-based loading and rendering using the selected target font
Setting a storage path for a font file of the target font, controlling the third-party application to obtain and load the font file using that path, and rendering the third-party application’s display interface using the loaded font so that characters shown correspond to the font file.
Across the independent claims, the inventive concept is locating a target font by matching dot-matrix pixel distributions between a target derived from an operating-system font and comparison dot matrices derived from fonts loaded by the operating system, then switching the third-party application’s font to the font corresponding to the matched dot matrix. Dependent claim refinements specify how dot matrices are generated, how matching is constrained, how font sets are selected, and how the third-party application uses the selected target font.
Stated Advantages
Prevents font inconsistency between an operating system and a third-party application.
Documented Applications
Switching a third font of a third-party application to a target font when font inconsistency occurs between the operating system and the third-party application (e.g., discussed in the context of browser/webview font behavior).
Interested in licensing this patent?