CN101872606B - Matrix font library initialization method and system - Google Patents

Matrix font library initialization method and system Download PDF

Info

Publication number
CN101872606B
CN101872606B CN 200910106887 CN200910106887A CN101872606B CN 101872606 B CN101872606 B CN 101872606B CN 200910106887 CN200910106887 CN 200910106887 CN 200910106887 A CN200910106887 A CN 200910106887A CN 101872606 B CN101872606 B CN 101872606B
Authority
CN
China
Prior art keywords
font
data
dot array
matrix
data block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200910106887
Other languages
Chinese (zh)
Other versions
CN101872606A (en
Inventor
阮祥辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN 200910106887 priority Critical patent/CN101872606B/en
Publication of CN101872606A publication Critical patent/CN101872606A/en
Application granted granted Critical
Publication of CN101872606B publication Critical patent/CN101872606B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention relates to matrix font library initialization method and system. The matrix font library initialization method comprises the following steps of: A, constructing a font data block, analyzing a font library, and setting the analyzed font data to data blocks, wherein the data blocks comprise matrix data and record a linear data structure containing font information; and B loading the data blocks, and loading the data blocks into an internal memory. The systematic font library initialization time is greatly saved by utilizing the data blocks.

Description

Matrix font library initialization method and system
Technical field
The present invention relates to the method and system that a kind of matrix font library is written into, relate in particular to the method and system that a kind of matrix font library initialization is written into.
Background technology
Matrix font library is widely used in the system that needs display text, the font information of character is being loaded in the font storehouse, the matrix font information of character comprise as: record information such as wide, high, the displacement of its dot matrix and dot array data, and the dot array data size is different and different with character usually, therefore, need to calculate in a large number in the work of font library initialization, the font storehouse is resolved and set up the linear data structure of being convenient to search and use.In the prior art, during matrix font library in initialization computer system or the embedded device, usually the font library file is loaded in the internal memory, sets up corresponding data structure, resolve the font library format, font data is filled in the data structure one by one.Since to the font library format resolve one by one, the process of construction data structure, and the font storage capacity is big, be example with the font storehouse that meets GB2312 and HK-SCS standard, the font order of magnitude that holds is respectively thousand and ten thousand, need expend the plenty of time calculates, in the process of font library initialization, influenced starting up speed greatly.
Summary of the invention
The technical matters that the present invention solves is: by making up a kind of data block, overcome in the prior art in the matrix font library initialization process, expend the plenty of time, influence the technical matters of starting up speed.The technical scheme of technical solution problem of the present invention is: design a kind of matrix font library initialization method, comprise the steps:
A, structure font data piece: resolve the font storehouse, the font data of described parsing is arranged to data block, described data block comprises that font dot array data and record comprise the linear data structure of font information.
B, loading data block: described data block is loaded into internal memory.
The further technical scheme of technical solution problem of the present invention is: described font information comprises font dot array data memory location, describes the information of dot array data size.
The further technical scheme of technical solution problem of the present invention is: described font dot array data and described linear data structure be storage or separately storage continuously.
The further technical scheme of technical solution problem of the present invention is: in the described B step, the value of the font dot array data address in the described data block changes with the variation of font dot array data memory address.
The further technical scheme of technical solution problem of the present invention is: when the memory address of font dot array data is constant in the described data block, determine the value of font dot array data memory location in the described linear data structure.
The further technical scheme of technical solution problem of the present invention is: when the memory address of the font dot array data in the described data block changes, revise the value of dot matrix font data address in the described linear data structure.
The technical scheme of technical solution problem of the present invention is: make up a kind of matrix font library initialization system, comprise font storehouse parsing module, memory module, also comprise data block, to be built into data block behind the described font storehouse parsing module parsing font storehouse, described data block comprises that font dot array data and record comprise the linear data structure of font information, with described data block store in memory module.
The further technical scheme of technical solution problem of the present invention is: described font dot array data and described linear data structure be storage or storage continuously separately.
The further technical scheme of technical solution problem of the present invention is: the value of described font dot array data address changes with the variation of memory address.
The further technical scheme of technical solution problem of the present invention is: the value of described font dot array data address is initial value or modified value, described modified value be initial value and off-set value and.
The technique effect that technical solution of the present invention produces is: by designing a kind of matrix font library initialization method, the method that namely makes up data block, loading data block is carried out the initialization in font storehouse, simultaneously, by making up a kind of matrix font library initialization system, namely comprise font storehouse parsing module, memory module, data block, the process of the font storehouse being resolved, made up linear data structure operated by making up data block before initialization, had improved the initialization speed of matrix font library greatly.
Description of drawings
Fig. 1 is workflow diagram of the present invention.
Fig. 2 is the continuous storage organization synoptic diagram of dot array data in the data block of the present invention.
Fig. 3 separates the storage organization synoptic diagram for dot array data in the data block of the present invention.
Fig. 4 is system module synoptic diagram of the present invention.
Embodiment
Below in conjunction with specific embodiment, technical solution of the present invention is further specified.
The present invention designs a kind of matrix font library initialization method, comprises the steps:
A, structure font data piece: resolve the font storehouse, the font data of described parsing is arranged to data block, described data block comprises that font dot array data and record comprise the linear data structure of font information.
B, loading data block: described data block is loaded into internal memory.
As shown in Figure 1, step 100, make up the font data piece, at first the font storehouse is resolved, make up data block with the font data of resolving, described data block comprises font dot array data and linear data structure, and described linear data structure comprises record font dot array data memory location and the font information of describing the dot array data dimension information.Step 200 loads data block, and described data block comprises font dot array data after the parsing and the stored position information of font information and described font dot array data.
As Fig. 2, shown in Figure 3, described data block comprises linear data structure 1 and font dot array data 3, described linear data structure 1 comprises memory location 11, describes the information 12 of word size, the address of the corresponding font dot array data 2 of stored position information 11 storages in the described linear data structure 1.Two parts of described data block are that linear data structure 1 and font dot array data 2 can be stored or separately storage continuously.
As Fig. 2, shown in Figure 3, stored position information 11 values in the described data block neutral line data structure 1 change with the variation of memory address.The value of the stored position information 11 in the described linear data structure 1, whether memory address when looking embedded device data block being written into internal memory fixes, be divided into two kinds: under the situation that memory address is fixed, the value of the stored position information 11 of each sensing dot array data is determined in the linear data structure, can directly calculate actual value, the data block of generation does not need through the memory address correction; Under the unfixed situation of memory address, the value of the stored position information 11 in the described linear data structure 1 needs to revise, the relativity shift value of the stored position information 11 of each sensing particular glyph dot array data 3 is determined in the linear data structure, therefore, the address value of the stored position information 11 in the described linear data structure 1 be start address and offset address and, for example: with respect to the start address of data block second portion, the off-set value of the dot array data memory location of first font is 0, record-shifted value is added the modified value that start address is the memory location.
When data block is written into the internal memory use, because the font in the data block is through resolving and the linear data structure structure, therefore, directly be written into data block and namely can use font dot array data 3, save a large amount of time-consuming procedure such as resolving font storehouse and structure linear data structure in the initialization procedure, saved initialization time greatly.
As shown in Figure 4, the present invention makes up a kind of matrix font library initialization system, comprise font storehouse parsing module 4, comprise that also data block makes up module 6, described font storehouse parsing module is resolved the font storehouse, resolve the back and form font information 5, described font information 5 is built into data block by data construct module 6 again, described linear data structure comprises font dot array data 2 and record font information 12 and stores the address information 11 of described font dot array data position.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention does, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.

Claims (9)

1. a matrix font library initialization method is characterized in that, comprises the steps:
A, structure font data piece: resolve the font storehouse, the font data of resolving is arranged to data block, described data block comprises that font dot array data and record comprise the linear data structure of font information, and described linear data structure comprises the memory location of record font dot array data and the font information of describing the dot array data dimension information;
B, loading data block: described data block is loaded into internal memory.
2. matrix font library initialization method according to claim 1 is characterized in that, described font dot array data and described linear data structure be storage or separately storage continuously.
3. matrix font library initialization method according to claim 1 is characterized in that, in the described B step, the value of the font dot array data address in the described data block changes with the variation of font dot array data memory address.
4. matrix font library initialization method according to claim 3 is characterized in that, when the memory address of font dot array data is constant in the described data block, determines the value of font dot array data address in the described linear data structure.
5. matrix font library initialization method according to claim 3 is characterized in that, when the memory address of the font dot array data in the described data block changes, revises the value of font dot array data address in the described linear data structure.
6. matrix font library initialization system, comprise font storehouse parsing module, memory module, it is characterized in that, also comprise the data construct module, described data resolution module is resolved the font storehouse, resolve the back and form font information, described data construct module is built into data block with described font information, described data block comprises that font dot array data and record comprise the linear data structure of font information, described linear data structure comprises the memory location of record font dot array data and the font information of describing the dot array data dimension information, and described data block store is in memory module.
7. matrix font library initialization according to claim 6 system is characterized in that, the described font dot array data in the described data block and described linear data structure be storage or storage continuously separately.
8. matrix font library initialization according to claim 6 system is characterized in that the value of the address of font dot array data described in the described linear data structure changes with the variation of memory address.
9. matrix font library initialization according to claim 8 system is characterized in that the value of described font dot array data address is initial value or modified value, described modified value be initial value and off-set value and.
CN 200910106887 2009-04-24 2009-04-24 Matrix font library initialization method and system Expired - Fee Related CN101872606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910106887 CN101872606B (en) 2009-04-24 2009-04-24 Matrix font library initialization method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910106887 CN101872606B (en) 2009-04-24 2009-04-24 Matrix font library initialization method and system

Publications (2)

Publication Number Publication Date
CN101872606A CN101872606A (en) 2010-10-27
CN101872606B true CN101872606B (en) 2013-08-21

Family

ID=42997425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910106887 Expired - Fee Related CN101872606B (en) 2009-04-24 2009-04-24 Matrix font library initialization method and system

Country Status (1)

Country Link
CN (1) CN101872606B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1196534A (en) * 1997-04-15 1998-10-21 英业达股份有限公司 Characters display method under apparent window environment
CN1517913A (en) * 2003-01-13 2004-08-04 英业达集团(南京)电子技术有限公司 Method of using dot matrix word libray in mobile device
CN1983239A (en) * 2006-04-06 2007-06-20 华为技术有限公司 Method and system for inputting and displaying character
CN101008939A (en) * 2007-01-25 2007-08-01 深圳创维-Rgb电子有限公司 Implementation method of dot matrix word library of embedded system
CN101146190A (en) * 2007-10-15 2008-03-19 晨星半导体股份有限公司 Type data processing method applied into built-in system
CN101261825A (en) * 2008-04-24 2008-09-10 中兴通讯股份有限公司 A word library management method for mobile terminal system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1196534A (en) * 1997-04-15 1998-10-21 英业达股份有限公司 Characters display method under apparent window environment
CN1517913A (en) * 2003-01-13 2004-08-04 英业达集团(南京)电子技术有限公司 Method of using dot matrix word libray in mobile device
CN1983239A (en) * 2006-04-06 2007-06-20 华为技术有限公司 Method and system for inputting and displaying character
CN101008939A (en) * 2007-01-25 2007-08-01 深圳创维-Rgb电子有限公司 Implementation method of dot matrix word library of embedded system
CN101146190A (en) * 2007-10-15 2008-03-19 晨星半导体股份有限公司 Type data processing method applied into built-in system
CN101261825A (en) * 2008-04-24 2008-09-10 中兴通讯股份有限公司 A word library management method for mobile terminal system

Also Published As

Publication number Publication date
CN101872606A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
US8996981B2 (en) Managing forms in electronic documents
CN102508784B (en) Data storage method of flash memory card in video monitoring equipment, and system thereof
US20090109227A1 (en) System and method for independent font substitution of string characters
US10769013B1 (en) Caching error checking data for memory having inline storage configurations
CN104750565A (en) NAND bad block processing method and NAND flash memory device
US20110115796A1 (en) Text rendering and display using composite bitmap images
CN101483035B (en) Method and system for display text on graphical interface
CN106648569B (en) Target serialization realization method and device
CN109086256B (en) Method for generating and using variable-length word stock dot matrix
CN103559184A (en) Form page display method and device
CN107766130A (en) The method and apparatus that virtual machine migrates to container
CN105138282A (en) Storage space recycling method and storage system
CN103488441B (en) The implementation method that a kind of Arabic is printed on POS machine
CN100511238C (en) A font file built-in method and device
CN101655835B (en) Method for text message processing, text message output and character retrieval in electronic document and device thereof
CN102193873B (en) Method of quickly reading and writing mass data file
CN102508822A (en) Thai display method, device and system
CN102193787B (en) Methods for serialization and de-serialization, device and system
CN101872606B (en) Matrix font library initialization method and system
CN101369953B (en) Font network distribution method and system
CN101093443A (en) Dynamic switching method for multilanguage of system based on Flash representation layer
CN102609430A (en) Apparatus and method for providing electronic book service
CN103425829A (en) Layout fast reading method
CN204462995U (en) A kind of plate carries internal memory ruggedized computer platform
CN102026033B (en) Method for displaying Myanmar by set-top box (STB)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130821

Termination date: 20180424