Method for generating smooth lattice font from vector font
A technology of dot-matrix fonts and vector fonts, applied in 2D image generation, cathode ray tube indicators, image data processing, etc., can solve the problem that TrueType fonts cannot be displayed smoothly, and achieve easy implementation, less processor resources, and The effect of broad application prospects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0055] The width and height of the TrueType font size are integral multiples of the target bitmap size. The vector font generates a smooth bitmap font.
[0056] It is achieved through the following steps:
[0057] (1) Select a TrueType font from the font interface;
[0058] (2), extract the dot matrix information under the enlarged n times size contained in this TrueType font, save as Pixel1, n is a natural number, that is, the width and height of the TrueType font size are integer multiples of the target dot matrix size;
[0059] (3), extract the ClearType display result of the TrueType font under the size and save it as ClearType1;
[0060] (4), the above dot matrix information Pixel1 and the display result ClearType1 obtain the transparency threshold threshold,
[0061] The method of obtaining the transparency threshold is as follows:
[0062] a. Extract difference pixels: compare all the pixels of the dot matrix information Pixel1 with all the pixels of the display result...
Embodiment 2
[0068] The width and height of the TrueType font size are an odd multiple of the target bitmap size. The vector font generates a smooth bitmap font.
[0069] It is achieved through the following steps:
[0070] (1) Select a TrueType font from the font interface;
[0071] (2), extract the dot matrix information under the enlarged n times size contained in this TrueType font, save as Pixel1, n is a natural number, that is, the width and height of the TrueType font size are integer multiples of the target dot matrix size;
[0072] (3), extract the ClearType display result of the TrueType font under the size and save it as ClearType1;
[0073] (4), the above dot matrix information Pixel1 and the display result ClearType1 obtain the transparency threshold threshold,
[0074] The method of obtaining the transparency threshold is as follows:
[0075] a. Extract difference pixels: compare all the pixels of the dot matrix information Pixel1 with all the pixels of the display result ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 