CN103186507B - Dot matrix word library processing method - Google Patents

Dot matrix word library processing method Download PDF

Info

Publication number
CN103186507B
CN103186507B CN201110460647.9A CN201110460647A CN103186507B CN 103186507 B CN103186507 B CN 103186507B CN 201110460647 A CN201110460647 A CN 201110460647A CN 103186507 B CN103186507 B CN 103186507B
Authority
CN
China
Prior art keywords
dot matrix
character
pattern data
character pattern
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.)
Active
Application number
CN201110460647.9A
Other languages
Chinese (zh)
Other versions
CN103186507A (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

Landscapes

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

Abstract

The invention provides a kind of dot matrix word library processing method, it is adaptable to dot matrix display screen, including: firstly generate standard dot matrix word library;Then according to the order of dot matrix character in standard dot matrix word library, each dot matrix character is adjusted, particularly as follows: first extract the corresponding character pattern data of this dot matrix character;According to the size requirements of dot matrix display screen, adjust height and the width of this character pattern data extracted, generate the character pattern data through height and width adjustment;Further according to the delivery requirement of dot matrix display screen, adjust this through height and the delivery mode of the character pattern data of width adjustment, the character pattern data that generation adjusts through delivery mode;Read the order of display word afterwards according to dot matrix display screen, this character pattern data adjusted through delivery mode is stored;After each dot matrix character in character library adjusts, target character library can be generated.The present invention is applicable to various dot matrix word library, and can be used for various embedded system and terminal unit, using the teaching of the invention it is possible to provide good human-computer interaction interface.

Description

Dot matrix word library processing method
Technical field
The present invention relates to a kind of dot matrix word library processing method, particularly relating to one can be according to different dot matrix display screen pair The requirement of video data, is processed as the dot matrix word library process side of satisfactory target character library by the dot matrix word library of normal size Method.
Background technology
Dot matrix word library is a data file, preserves the dot array data of all words in this data file.Dot matrix The character pattern data of the word preserved in character library, for the Hanzi font library of 16*16 dot matrix, each Chinese character takies 32 bytes, from upper To lower totally 16 row, often two bytes of row totally 16.The character pattern data of dot matrix Chinese character stores very specification, is divided into horizontal delivery and longitudinal direction Delivery two kinds: laterally delivery is with behavior unit, according to sequential storage character pattern data from left to right, from top to bottom;Longitudinally take Mould is with row as unit, and according to previous 8 row from top to bottom, from left to right, rear 8 row order from top to bottom, from left to right is come Storage character pattern data.
Along with the development of embedded technology, user is increasing to the demand of embedded product, and the interface of product Display effect can directly influence user's selection to product.Currently for domestic user, LCD display is used mostly 16* The dot matrix Chinese character character library of 16 sizes, owing between word spacing and the line space demonstrated is the least, so display effect the most crowded and not Enough attractive in appearance, conventional method is that Chinese character is passed through relevant compression algorithm to 14*14 size.Although it is suitable to ensure that after compression Spacing, but compression after Chinese character itself understand become the most attractive in appearance owing to deforming.The most also occur in that Character library processes chip, can reach good effect, but too increase hardware cost after using.If self-developing dot matrix word library, Substantial amounts of manpower and time can be spent again, lose more than gain.Therefore, it is possible to it is beautiful to develop font on the basis of standard dot matrix word library Seeing, sizeable dot matrix word library just becomes especially crucial.
Summary of the invention
In view of the foregoing, it is an object of the invention to provide one can be according to different dot matrix display screens to video data Requirement, the dot matrix word library of normal size is processed as the dot matrix word library processing method of satisfactory target character library.
For achieving the above object, the present invention is by the following technical solutions:
A kind of dot matrix word library processing method, it is adaptable to dot matrix display screen, it is characterised in that the method comprises the following steps:
1) standard dot matrix word library is generated;
2) according to the order of dot matrix character in this standard dot matrix word library, each dot matrix character is processed, particularly as follows:
21) dot matrix character arriving process, extracts the corresponding character pattern data of this dot matrix character;
22) according to the size requirements of described dot matrix display screen, height and the width of this character pattern data extracted is adjusted, raw Become the character pattern data through height and width adjustment;
23) according to the delivery requirement of described dot matrix display screen, this is adjusted through height and the taking of character pattern data of width adjustment Mould mode, generates the character pattern data adjusted through delivery mode;
24) order of display word, the character pattern data this adjusted is read through delivery mode according to described dot matrix display screen Store;
3), after each dot matrix character all processes in standard dot matrix word library, target character library is generated.
Described standard dot matrix word library is dot matrix word library based on GB2312-80 standard code.
Described dot matrix display screen is LCD display.
It is an advantage of the current invention that:
1, can effectively adjust the display effect that word is overall, compared with compression method, the effect of text importing is more Attractive in appearance.
2, it is applicable to various dot matrix word library, and can be used for various embedded system and terminal unit, using the teaching of the invention it is possible to provide be good Human-computer interaction interface.
Accompanying drawing explanation
Fig. 1 is the process chart of the present invention;
Fig. 2 be processed by the invention in an embodiment after display effect figure.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is further detailed explanation.
The dot matrix word library processing method that the present invention provides is applicable to dot matrix display screen, and this dot matrix display screen can be that LCD shows Screen, LED display etc. have the display screen of lattice structure;Dot matrix word library can be dot matrix Chinese character character library, dot matrix English character library, dot matrix Japan and Korea S's literal pools etc., this is not limited thereto by way of example only.
Below by so that dot matrix Chinese character character library is processed as being suitable to the embodiment that LCD display shows, the skill of the present invention is described Art scheme.
The requirement of false LCD display as selected is: the customization character library of 16*12, and longitudinal delivery shows each word in reverse order The data of joint, then be suitable to, in order to generate, the target character library that this LCD display shows, the present invention can be realized by following steps:
1) standard dot matrix word library is generated;
According to the requirement of selected LCD display, generate software first by dot matrix word library and automatically generate the mark of a 12*16 Battle array Song typeface Hanzi font library on schedule, wherein, the character pattern data size of each Chinese character is 24 bytes, and delivery mode is horizontal delivery, should Standard dot matrix word library is dot matrix word library based on 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 processed, particularly as follows:
21) dot matrix character arriving process, extracts the character pattern data of this dot matrix character;
In the present embodiment, first navigate to the first address of pending dot character model data, then open from this first address Begin to extract the data of 24 bytes and be the character pattern data of this dot matrix Chinese character.
22) according to the size requirements of described dot matrix display screen, height and the width of this character pattern data extracted is adjusted, raw Become the character pattern data through height and width adjustment;
In the present embodiment, each character pattern data of the standard dot matrix Hanzi font library owing to selecting is 12*16, and selected LCD Each character pattern data that display screen requires is 16*12, so needing step 21) height of character pattern data that extracts increases by 12 Adding as 16, 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, this is adjusted through height and the taking of character pattern data of width adjustment Mould mode, generates the character pattern data adjusted through delivery mode;
In the present embodiment, the delivery mode of the standard dot matrix Hanzi font library owing to selecting is horizontal delivery, and selected LCD shows The delivery mode of display screen is longitudinal delivery, so needing step 22) process after the type matrix number after height and width adjustment Longitudinal delivery mode is converted to according to by horizontal delivery mode.
24) order of display word, the character pattern data this adjusted is read through delivery mode according to described dot matrix display screen Store;
In the present embodiment, owing to selected LCD display is the data showing each byte in reverse order, so needing to walk Rapid 23) each byte elder generation backward of the character pattern data after delivery mode adjusts after processing processes and stores.
3), after each dot matrix character all processes in standard dot matrix word library, target character library is generated.
When each dot matrix Chinese character in selected standard dot matrix Hanzi font library is through step 21) to step 24) after conversion process, Can generate and be suitable to the target character library that selected LCD display shows.
After target character library generates, test program test effect can be write, as in figure 2 it is shown, show on selected LCD display Chinese character per page and line space moderate, display effect is the most attractive in appearance.
The present invention is by first generating standard point battle array character library, then according to the requirement of selected dot matrix display screen, to standard dot matrix In character library, the character pattern data of each word carries out height, width adjustment, delivery mode adjust, Endianess adjustment etc., mark After each word adjusts in quasi-dot matrix word library, can generate and be suitable to the target character library that selected dot matrix display screen shows.The present invention Dot matrix word library processing method be applicable to various standard dot matrix word library, and can be used in various embedded system and terminal unit, Good human-computer interaction interface can be provided.
The above is presently preferred embodiments of the present invention and the know-why used thereof, for those skilled in the art For, without departing from the spirit and scope of the present invention, any based on the equivalence change on the basis of technical solution of the present invention Change, simply replacement etc. is obvious changes, within belonging to scope.

Claims (3)

1. a dot matrix word library processing method, it is adaptable to dot matrix display screen, it is characterised in that the method comprises the following steps:
1) standard dot matrix word library is generated;
The character pattern data size of each dot matrix character therein is L byte, and each character pattern data is M*N;
2) according to the order of dot matrix character in this standard dot matrix word library, each dot matrix character is processed, particularly as follows:
21) dot matrix character arriving process, extracts the corresponding character pattern data of this dot matrix character;
From the beginning of the first address of pending dot matrix character character pattern data, extract the data word as this dot matrix character of L byte Modulus evidence;
22) according to the size requirements of described dot matrix display screen, adjust height and the width of this character pattern data extracted, generate warp Height and the character pattern data of width adjustment;
The height M of this character pattern data extracted is adjusted to the height of each character pattern data that described dot matrix display screen requires, The width N of this character pattern data extracted is adjusted to the width of each character pattern data that described dot matrix display screen requires;
23) according to the delivery requirement of described dot matrix display screen, this is adjusted through height and the delivery side of the character pattern data of width adjustment Formula, generates the character pattern data adjusted through delivery mode;
24) order of display word is read according to described dot matrix display screen, the character pattern data storage this adjusted through delivery mode Get up;
3), after each dot matrix character all processes in standard dot matrix word library, target character library is generated;
The requirement of described dot matrix display screen is: the customization character library of 16*12, longitudinal delivery, shows the data of each byte in reverse order; The method includes:
11) generating the standard dot matrix word library of 12*16, the character pattern data size of each dot matrix character is 24 bytes, and delivery mode is Laterally delivery;
21) according to the order of dot matrix character in this standard dot matrix word library, each dot matrix character is processed, including:
211) from the beginning of the first address of pending dot matrix character character pattern data, the data of 24 bytes are extracted as this dot matrix character Character pattern data;
221) character pattern data extracting this, is increased to 16 by its height by 12, and width is reduced to 12 by 16, obtains 16*12 Character pattern data;
231) character pattern data after height and width adjustment is converted to longitudinal delivery mode by horizontal delivery mode;
241) each byte elder generation backward process of the character pattern data after delivery mode adjusts is stored again;
31) in this standard dot matrix word library each dot matrix character all through step 211)-241) and process after, generate target character library.
A kind of dot matrix word library processing method the most according to claim 1, it is characterised in that described standard dot matrix word library is base Dot matrix word library in GB2312-80 standard code.
A kind of dot matrix word library processing method the most according to claim 2, it is characterised in that described dot matrix display screen is LCD Display screen.
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 CN103186507A (en) 2013-07-03
CN103186507B true 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)

Families Citing this family (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
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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2956138B2 (en) * 1990-06-20 1999-10-04 ソニー株式会社 Display device
CN100461155C (en) * 2006-04-06 2009-02-11 华为技术有限公司 Method and system for inputting and displaying character
CN100498927C (en) * 2006-07-28 2009-06-10 中国科学院声学研究所 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

Also Published As

Publication number Publication date
CN103186507A (en) 2013-07-03

Similar Documents

Publication Publication Date Title
CN103186507B (en) Dot matrix word library processing method
JP6595714B2 (en) Method and apparatus for generating a two-dimensional code image having a dynamic effect
CN103336690B (en) HTML (Hypertext Markup Language) 5-based text-element drawing method and device
CN103218195A (en) Method and device for display adjustment of application program
CN102208180B (en) Method for rapidly displaying vector font by set top box (STB)
CN105335445A (en) Layout display method and device
CN102830934B (en) A kind of handwriting input display method and device
CN104820589A (en) Method and device for dynamically adapting webpage
RU2014153030A (en) METHOD, DEVICE AND ANIMATION PLAYER
CN107122104B (en) Data display method and device
CN103186880A (en) Method and device for generating thumbnail
CN106293462B (en) A kind of character displaying method and device
US20110286662A1 (en) System for building a personalized-character database and method thereof
CN107665186B (en) A kind of peculiar font generation method
CN102487362B (en) The display packing of IM message and device
CN104102386B (en) Touch screen scanning method, device and touch-screen based on application
CN104536947A (en) Layout document processing method and device
CN104090683B (en) Touch screen scanning method, device and touch-screen based on display content
CN102902534B (en) A kind of transparent OSD software implementation method
CN102682265A (en) Handwriting input method, handwriting input device and handwriting input system of display terminal
CN103201786A (en) Reshaping interfaces using content-preserving warps
CN101316339B (en) Method for displaying different expression form of characters in the same word stock
KR101305725B1 (en) Augmented reality of logo recognition and the mrthod
US20130155098A1 (en) Adjusting Fonts for Visual Consistency
CN105808236B (en) HMI picture element composition design and code generation method

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