CN103186507A - Dot matrix font library processing method - Google Patents

Dot matrix font library processing method Download PDF

Info

Publication number
CN103186507A
CN103186507A CN2011104606479A CN201110460647A CN103186507A CN 103186507 A CN103186507 A CN 103186507A CN 2011104606479 A CN2011104606479 A CN 2011104606479A CN 201110460647 A CN201110460647 A CN 201110460647A CN 103186507 A CN103186507 A CN 103186507A
Authority
CN
China
Prior art keywords
dot matrix
character
font
display screen
library
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.)
Granted
Application number
CN2011104606479A
Other languages
Chinese (zh)
Other versions
CN103186507B (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.)
BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY Co Ltd
Original Assignee
BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY 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 BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY Co Ltd filed Critical BEIJING DATANG GOHIGH SOFTWARE TECHNOLOGY Co Ltd
Priority to CN201110460647.9A priority Critical patent/CN103186507B/en
Publication of CN103186507A publication Critical patent/CN103186507A/en
Application granted granted Critical
Publication of CN103186507B publication Critical patent/CN103186507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a dot matrix font library processing method which is suitable for a dot-matrix display screen. The dot matrix font library processing method comprises the following steps: step one, generating a standard dot matrix font library; and step two, adjusting each dot matrix character according to the order of dot matrix characters in the standard dot matrix font. Step two comprises the following sub-steps: extracting corresponding font date of the dot matrix character; adjusting the height and width of the data of the extracted character according to the size of the dot matrix display screen so as to generate font date with adjusted height and width; adjusting the modular mode of the font date with adjusted height and width according to the modular requirement of the dot-matrix display screen so as to generate font data with adjusted modular mode; storing the font data with adjusted modular mode according to the character reading and displaying order of the dot-matrix display screen; and generating a target font library after each dot matrix character being adjusted. The dot matrix font library processing method is applicable to various dot matrix font libraries, can be used for various embedded systems and terminal devices, and can provide a good man-machine interaction interface.

Description

The dot matrix word library disposal route
Technical field
The present invention relates to a kind of dot matrix word library disposal route, particularly relate to and a kind ofly can the dot matrix word library of normal size be treated to the dot matrix word library disposal route of satisfactory target character library according to different dot matrix display screens to showing the requirement of data.
Background technology
Dot matrix word library is a data file, preserves the dot array data of all literal in this data file.The character pattern data of the literal of preserving in the dot matrix word library, for the Hanzi font library of 16*16 dot matrix, each Chinese character takies 32 bytes, totally 16 goes totally 16 of two bytes of every row from top to bottom.The character pattern data of dot matrix Chinese character is stored very standard, and be divided into horizontal delivery and vertical two kinds of deliverys: laterally delivery is with behavior unit, according to from left to right, from top to bottom sequential storage character pattern data; Vertically delivery is the unit of classifying as, and according to previous 8 row from top to bottom, from left to right, back 8 row from top to bottom again, order from left to right stores character pattern data.
Along with the continuous development of embedded technology, the user is increasing to the demand of embedded product, and the interface display effect of product can directly have influence on the user to the selection of product.At present, for the demestic user, LCD display is used the dot matrix Chinese character character library of 16*16 size mostly, because the word space and the line space that demonstrate are very little, so display effect is comparatively crowded and attractive in appearance inadequately, method commonly used is that Chinese character is passed through relevant compression algorithm to the 14*14 size.Though the compression back can guarantee suitable spacing, the Chinese character itself after the compression can become attractive in appearance inadequately owing to deforming.Some character library process chip also occurred on the market now, can reach good effect after the use, but also increase hardware cost.If develop dot matrix word library voluntarily, can spend great amount of manpower and time again, lose more than gain.Therefore, it is attractive in appearance to develop font on the basis of standard dot matrix word library, and it is especially crucial that sizeable dot matrix word library just becomes.
Summary of the invention
In view of the foregoing, the object of the present invention is to provide and a kind ofly can the dot matrix word library of normal size be treated to the dot matrix word library disposal route of satisfactory target character library according to different dot matrix display screens to showing the requirement of data.
For achieving the above object, the present invention is by the following technical solutions:
A kind of dot matrix word library disposal route is applicable to dot matrix display screen, it is characterized in that, this method may further comprise the steps:
1) generates the standard dot matrix word library;
2) according to the order of dot matrix character in this standard dot matrix word library, each dot matrix character is handled, is specially:
21) dot matrix character that processing is arrived extracts the corresponding character pattern data of this dot matrix character;
22) according to the size requirements of described dot matrix display screen, adjust height and the width of this character pattern data that extracts, generate the character pattern data through height and width adjustment;
23) according to the delivery requirement of described dot matrix display screen, adjust this through the delivery mode of the character pattern data of height and width adjustment, generate the character pattern data of adjusting through the delivery mode;
24) according to the order of described dot matrix display screen reading displayed literal, this character pattern data of adjusting through the delivery mode is stored;
3) after each dot matrix character is all handled in the standard dot matrix word library, generate the target character library.
Described standard dot matrix word library is the dot matrix word library based on the GB2312-80 standard code.
Described dot matrix display screen is LCD display.
The invention has the advantages that:
1, can effectively adjust the display effect of literal integral body, compare with compression method, the effect that literal shows is more attractive in appearance.
2, be applicable to various dot matrix word libraries, and can be used for various embedded systems and terminal device, the good man-machine interaction interface can be provided.
Description of drawings
Fig. 1 is processing flow chart of the present invention;
Fig. 2 is the display effect figure after the present invention handles among the embodiment.
Embodiment
The present invention is further detailed explanation below in conjunction with drawings and Examples.
Dot matrix word library disposal route provided by the invention is applicable to dot matrix display screen, and this dot matrix display screen can be the display screen that LCD display, LED display etc. have lattice structure; Dot matrix word library can be dot matrix Chinese character character library, the English character library of dot matrix, dot matrix Japan and Korea S literal pool etc., and this is only for illustrating, not as limit.
Below will be suitable for the embodiment that LCD display shows so that the dot matrix Chinese character character library is treated to, technical scheme of the present invention will be described.
If the requirement of selected LCD display is: the customization character library of 16*12, vertical delivery shows by backward the data of each byte then to be suitable for the target character library that this LCD display shows in order to generate, the present invention can realize by following steps:
1) generates the standard dot matrix word library;
Requirement according to selected LCD display, at first use dot matrix word library to generate the standard dot matrix Song typeface Hanzi font library that software generates a 12*16 automatically, wherein, the character pattern data size of each Chinese character is 24 bytes, the delivery mode is horizontal delivery, and this standard dot matrix word library is the dot matrix word library based on the GB2312-80 standard code.
2) according to the order of dot matrix character in this standard dot matrix word library, each dot matrix character is handled, is specially:
21) dot matrix character that processing is arrived extracts the character pattern data of this dot matrix character;
In the present embodiment, at first navigate to the first address of pending dot matrix Chinese character character pattern data, the data that begin to extract 24 bytes from this first address are the character pattern data of this dot matrix Chinese character then.
22) according to the size requirements of described dot matrix display screen, adjust height and the width of this character pattern data that extracts, generate the character pattern data through height and width adjustment;
In the present embodiment, because each character pattern data of the standard dot matrix Hanzi font library of selecting for use is 12*16, and each character pattern data that selected LCD display requires is 16*12, so need be with step 21) height of the character pattern data that extracts increases to 16 by 12, width is reduced to 12 by 16, to obtain the character pattern data of 16*12.
23) according to the delivery requirement of described dot matrix display screen, adjust this through the delivery mode of the character pattern data of height and width adjustment, generate the character pattern data of adjusting through the delivery mode;
In the present embodiment, because the delivery mode of the standard dot matrix Hanzi font library of selecting for use is horizontal delivery, and the delivery mode of selected LCD display is vertical delivery, so need be with step 22) the character pattern data after height and width adjustment after handling is converted to vertical delivery mode by horizontal delivery mode.
24) according to the order of described dot matrix display screen reading displayed literal, this character pattern data of adjusting through the delivery mode is stored;
In the present embodiment, because selected LCD display is the data that show each byte by backward, so need be with step 23) each byte elder generation backward of character pattern data after the delivery mode is adjusted after handling handles and stores.
3) after each dot matrix character is all handled in the standard dot matrix word library, generate the target character library.
When each dot matrix Chinese character in the selected standard dot matrix Hanzi font library through step 21) to step 24) after the conversion process, can generate and be suitable for the target character library that selected LCD display shows.
After the target character library generates, can write test procedure test effect, as shown in Figure 2, moderate at Chinese character per page and line space that selected LCD display shows, display effect is comparatively attractive in appearance.
The present invention is by generating standard point battle array character library earlier, then according to the requirement of selected dot matrix display screen, the character pattern data of each literal in the standard dot matrix word library carried out height, width adjustment, delivery mode are adjusted, bytes store is adjusted in proper order etc., after each literal is adjusted in the standard dot matrix word library, can generate the target character library that is suitable for selected dot matrix display screen demonstration.Dot matrix word library disposal route of the present invention is applicable to various standard dot matrix word libraries, and can be used for can providing the good man-machine interaction interface in various embedded systems and the terminal device.
The above is preferred embodiment of the present invention and the know-why used thereof; for a person skilled in the art; under the situation that does not deviate from the spirit and scope of the present invention; any based on apparent changes such as the equivalent transformation on the technical solution of the present invention basis, simple replacements, all belong within the protection domain of the present invention.

Claims (3)

1. a dot matrix word library disposal route is applicable to dot matrix display screen, it is characterized in that, this method may further comprise the steps:
1) generates the standard dot matrix word library;
2) according to the order of dot matrix character in this standard dot matrix word library, each dot matrix character is handled, is specially:
21) dot matrix character that processing is arrived extracts the corresponding character pattern data of this dot matrix character;
22) according to the size requirements of described dot matrix display screen, adjust height and the width of this character pattern data that extracts, generate the character pattern data through height and width adjustment;
23) according to the delivery requirement of described dot matrix display screen, adjust this through the delivery mode of the character pattern data of height and width adjustment, generate the character pattern data of adjusting through the delivery mode;
24) according to the order of described dot matrix display screen reading displayed literal, this character pattern data of adjusting through the delivery mode is stored;
3) after each dot matrix character is all handled in the standard dot matrix word library, generate the target character library.
2. a kind of dot matrix word library disposal route according to claim 1 is characterized in that, described standard dot matrix word library is the dot matrix word library based on the GB2312-80 standard code.
3. a kind of dot matrix word library disposal route according to claim 2 is characterized in that, described dot matrix display screen is LCD display.
CN201110460647.9A 2011-12-31 2011-12-31 Dot matrix word library processing method Active CN103186507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110460647.9A CN103186507B (en) 2011-12-31 2011-12-31 Dot matrix word library processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110460647.9A CN103186507B (en) 2011-12-31 2011-12-31 Dot matrix word library processing method

Publications (2)

Publication Number Publication Date
CN103186507A true CN103186507A (en) 2013-07-03
CN103186507B CN103186507B (en) 2016-12-28

Family

ID=48677678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110460647.9A Active CN103186507B (en) 2011-12-31 2011-12-31 Dot matrix word library processing method

Country Status (1)

Country Link
CN (1) CN103186507B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484314A (en) * 2014-12-09 2015-04-01 朱信 Producing method of font library special for Chinese vertical-typeset ancient books and calligraphy
CN104717548A (en) * 2015-03-05 2015-06-17 福建新大陆通信科技股份有限公司 Processing method and processing system of fonts of set top box lattice subtitles
CN106021205A (en) * 2016-06-17 2016-10-12 宁波柯力传感科技股份有限公司 Language and character display method for large dot matrix screen
CN108021424A (en) * 2017-12-15 2018-05-11 苏州咖博士咖啡系统科技有限公司 LCD screen shows that various countries' language produces the solution method of word spacing
CN109218845A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Optimize method, storage medium, electronic equipment and the system of barrage display effect

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0452690A (en) * 1990-06-20 1992-02-20 Sony Corp Display 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
CN101114443A (en) * 2006-07-28 2008-01-30 中国科学院声学研究所 Dot-character retracting method in two-dimension pattern engines and Chinese processing method
CN101968814A (en) * 2010-10-29 2011-02-09 四川长虹电器股份有限公司 Dot matrix font manufacturing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0452690A (en) * 1990-06-20 1992-02-20 Sony Corp Display device
CN1983239A (en) * 2006-04-06 2007-06-20 华为技术有限公司 Method and system for inputting and displaying character
CN101114443A (en) * 2006-07-28 2008-01-30 中国科学院声学研究所 Dot-character retracting method in two-dimension pattern engines and Chinese processing method
CN101008939A (en) * 2007-01-25 2007-08-01 深圳创维-Rgb电子有限公司 Implementation method of dot matrix word library of embedded system
CN101968814A (en) * 2010-10-29 2011-02-09 四川长虹电器股份有限公司 Dot matrix font manufacturing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余辉等: "多种字库在嵌入式系统中的应用", 《武汉工业学院学报》, vol. 27, no. 2, 15 June 2008 (2008-06-15), pages 48 - 50 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484314A (en) * 2014-12-09 2015-04-01 朱信 Producing method of font library special for Chinese vertical-typeset ancient books and calligraphy
CN104717548A (en) * 2015-03-05 2015-06-17 福建新大陆通信科技股份有限公司 Processing method and processing system of fonts of set top box lattice subtitles
CN104717548B (en) * 2015-03-05 2017-11-24 福建新大陆通信科技股份有限公司 A kind of set top box dot matrix captions font processing method and processing system
CN106021205A (en) * 2016-06-17 2016-10-12 宁波柯力传感科技股份有限公司 Language and character display method for large dot matrix screen
CN109218845A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Optimize method, storage medium, electronic equipment and the system of barrage display effect
CN109218845B (en) * 2017-07-01 2020-09-04 武汉斗鱼网络科技有限公司 Method, storage medium, electronic device and system for optimizing bullet screen display effect
CN108021424A (en) * 2017-12-15 2018-05-11 苏州咖博士咖啡系统科技有限公司 LCD screen shows that various countries' language produces the solution method of word spacing

Also Published As

Publication number Publication date
CN103186507B (en) 2016-12-28

Similar Documents

Publication Publication Date Title
CN103186507A (en) Dot matrix font library processing method
CN101593215B (en) Web page display apparatus and web page display method
CN105335445A (en) Layout display method and device
CN104571978A (en) Method for paging and printing documents based on HTML (Hypertext Markup Language) labels
CN106502659A (en) A kind of layout method of mobile device webpage single-page and system
HK1147581A1 (en) Method and system of defining an interactive user interface
CN101008940B (en) Method and device for automatic processing font missing
CN102169423B (en) Method and system for displaying characters
US20200160440A1 (en) Responsive financial statement generation systems and methods
CN102567459A (en) Presentation process as context for presenter and audience
CN104035676B (en) A kind of switching method and device of the page
CN106293462B (en) A kind of character displaying method and device
US10235351B2 (en) Electronic document editing apparatus capable of inserting memo into paragraph, and operating method thereof
CN103294819B (en) The method that Pagination Display is carried out to web page contents using HTML5 technologies
CN102214177B (en) Method and device for vertically typesetting characters in label
CN106406561B (en) Character library lattice generation method based on generator set controller
CN103020127A (en) Method and device for displaying picture
CN104850385A (en) Control method and device of character display and ultrathin card type equipment and card body
CN110673912A (en) Method and system for realizing responsive waterfall flow layout
CN102272696A (en) Method and system for touch screen text entry
CN102902534B (en) A kind of transparent OSD software implementation method
CN111222302A (en) Webpage rendering control method, control device and computer readable medium
CN102253841B (en) Small-scale graphical user interface system
CN104794134A (en) Chinese character display method and device
CN106776489B (en) Electronic document display method and system of display device

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