Lattice library generation method, query method and corresponding devices
A technology of a dot matrix font library and a generating device, which is applied in the computer field, can solve the problems such as the inability to display vector fonts, the inability to query the dot matrix library information accurately and quickly, and the consumption of system resources, so as to speed up the query speed, enhance the user experience, and improve the performance effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] figure 1 It is a flow chart of a method for generating dot matrix fonts according to an embodiment of the present invention, see figure 1 , the method includes:
[0049]Step S110, converting the vector font into a bitmap set and a character index file; the character index file includes index information of all characters, and the index information of each character includes a single code of the character;
[0050] Step S120, generating secondary index information of the dot matrix font library according to the character index file;
[0051] Step S130, all characters are divided into multiple partitions according to the single code of the character, the single codes of the characters in each partition are continuous, and the structure information of each partition only includes the single code of the start character and the single code of the end character; The structure information of the partitions is combined to generate the first-level index information of the dot ...
Embodiment 2
[0063] Figure 9 It is a flowchart of a dot matrix font library query method according to an embodiment of the present invention, see Figure 11 , the method includes:
[0064] S910 step, storing the dot matrix font generated by the method for generating the dot matrix font as described above in the external memory;
[0065] Step S920, according to the start address of the first-level index information in the dot matrix font file header, read the first-level index information in the dot matrix font into the memory;
[0066] Step S930, according to the single code of the character to be queried, query the first-level index information read into the memory, obtain the partition where the character to be queried is located, and calculate according to the single code of the start character and the single code of the end character of the partition where the character is located The partition position of the character to be queried in the partition;
[0067] Step S940, according ...
Embodiment 3
[0072] Figure 10 It is a schematic diagram of a dot matrix font library generation device according to an embodiment of the present invention, see Figure 10 , the device 1000 includes:
[0073] The vector font conversion unit 1010 is adapted to convert the vector font into a bitmap set and a character index file; the character index file includes index information of all characters, and the index information of each character includes a single code of the character;
[0074] The secondary index information generation unit 1020 is adapted to generate secondary index information of the dot matrix font library according to the character index file;
[0075] The first-level index information generation unit 1030 is suitable for dividing all characters into multiple partitions according to the single code of the character, the single codes of the characters in each partition are continuous, and the structure information of each partition only includes the single code of the begi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


