CN100590705C - Method for realizing multiple font size with the point array library - Google Patents

Method for realizing multiple font size with the point array library Download PDF

Info

Publication number
CN100590705C
CN100590705C CN200710073786A CN200710073786A CN100590705C CN 100590705 C CN100590705 C CN 100590705C CN 200710073786 A CN200710073786 A CN 200710073786A CN 200710073786 A CN200710073786 A CN 200710073786A CN 100590705 C CN100590705 C CN 100590705C
Authority
CN
China
Prior art keywords
character
font
data
dot matrix
intermediate state
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
CN200710073786A
Other languages
Chinese (zh)
Other versions
CN101055714A (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 Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN200710073786A priority Critical patent/CN100590705C/en
Publication of CN101055714A publication Critical patent/CN101055714A/en
Application granted granted Critical
Publication of CN100590705C publication Critical patent/CN100590705C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for realizing a plurality of font sizes by a dot-character library, the method comprises following steps: a. loading dot-character library data to be used as a data source and basic of system Chinese words and characters display; b. empoldering a maximum region satisfying drawing a single character as a font intermediate state region; c. citing font codes of the character in the step a, drawing the character font to be displayed in the font intermediate state region; d. combining the font data of the character to be displayed acquired in the step c and composing image data, converting the font data according to final displayed size of the character to be displayed so as to obtain target font size data of the character to be displayed; e. outputting the character font data result processed in the step d to a target position of a display region, thereby completing display of a character. By repeatly uusing the font intermediate state region, one-by-one display of the system words and characters can be completed according to above process, in this way, a plurality of font sizes can be realized by a dot-character library.

Description

Realize the method for multiple font size by a kind of dot matrix word library
[technical field]
The present invention relates to the processing and the display technique field of graphics system Chinese words, character, particularly a kind of method that realizes multiple font size by a kind of dot matrix word library.
[background technology]
In the digital technology application, the Presentation Function of literal/character is a most basic function in the used application.At present, processing character shows the two kinds of methods that mainly contain: a kind of vector font library that is to use carries out the character demonstration; Another kind is to use dot matrix word library to carry out the character demonstration.Wherein, use the method for vector font library, its font style characteristic coding, the making of character library and obtain more complicated, the shared storage space of character library is also bigger; And the method for use dot matrix word library, a kind of character set of size can only be drawn, be shown to a kind of dot matrix word library under its general situation.And follow the continuous development and application of digital technology, many product facilities are more and more higher to the requirement that literal, character show.Finish character complicated, multiple variation and show, or use multiple dot matrix word library simultaneously, or use vector font library.If use vector font library will increase the space of storage character library and the cost of use vector font library; Use multiple dot matrix word library also to need to increase storage space simultaneously, and also be unfavorable for the character display process.
[summary of the invention]
For addressing the above problem, fundamental purpose of the present invention is to provide the method that a kind of dot matrix word library is realized multiple font size of passing through of a kind of service efficiency that improves dot matrix word library, reduction cost of products.
For achieving the above object, the technical scheme of this creation is: realize it is characterized in that the method for multiple font size by a kind of dot matrix word library, comprise the steps:
A. in goal systems, load a kind of dot matrix character data commonly used at least, with as system's Chinese words, character data presented source and basis;
B. opening up a maximum region that satisfies single character drafting in the system dynamics memory block is font intermediate state zone, and this maximum region is the zone that the dot matrix number of maximum character in the character that shows is as required determined;
C. the character shape coding of character among the step a by reference is drawn on described font intermediate state zone with character glyphs to be shown;
D. the view data of font data primordial in the dynamic area of the character to be shown that obtains among the integrating step c according to the final size that shows of character to be shown, carried out conversion to font data again, obtains the target font size data of character to be shown;
E. the character font data result after handling in the steps d is output in the viewing area on the target location, promptly finishes the demonstration of a character;
By reusing font intermediate state zone, just can finish the demonstration one by one of literal in the system, character string by said process.
Compared to prior art, a kind of dot matrix word library of the present invention realizes that the method for multiple font size is by loading dot matrix word library, preparation font intermediate state zone, drawing font, conversion font, five steps of target font output, utilize already used dot matrix word library, in limited scope, reach the function that a kind of character library is drawn, demonstrated multiple font size, not only improved the service efficiency of dot matrix word library, simultaneously also reduce cost of products, improved the market competition advantage of product.
[description of drawings]
Fig. 1 is the font drawing process synoptic diagram of character " A ".
[embodiment]
Dot matrix word library all has application, the particularly smaller consumer electronics product equipment of some memory capacity extremely widely at present many product scopes, as set-top box, televisor, display, media player etc.Dot character displaying scheme in the inventive method all can be used in these products, particularly has in the product solution of hardware supported demonstration acceleration or Flame Image Process at those, uses this invention technology and has more advantage.
The present invention realizes the method for multiple font size comprising the steps: that (a) loads a kind of dot matrix character data commonly used at least in goal systems by a kind of dot matrix word library, with as system's Chinese words, character data presented source and basis; (b) in system dynamics memory block (for example internal memory), open up one and satisfy the maximum region that single character is drawn, be font intermediate state zone; (c) character shape coding of character in the step (a) by reference is drawn on font intermediate state zone in the step (b) with character glyphs to be shown; (d) view data of font data primordial in internal memory of the character to be shown that obtains in the integrating step (c), again according to the final size that shows of character to be shown, adopt image process method to carry out the whole conversion of amplifying or dwindling to font data, obtain the target font size data of character to be shown; (e) the character font data result after handling in the step (d) is output in the viewing area on the target location, promptly finishes the demonstration of a character.By reusing font intermediate state zone, just can finish the demonstration one by one of literal in the system, character string by said process.Generally, the present invention realizes that by a kind of dot matrix word library the method for multiple font size mainly comprises loading dot matrix word library, preparation font intermediate state zone, draws font, conversion font, five steps of target font output.
Load at least a dot matrix word library, this is that all use the product of dot matrix word library or the basis of system's operation.Usually the loading of dot matrix word library mainly is a dual mode, the one, dot matrix character data is made into the code data that can compile with the product software code, the product software system together compiles during compiling, just can use the dot matrix character data that has been stored in the system naturally when product or system move like this; The 2nd, dot matrix character data is stored in the solid storage device of product, as FLASH or hard disk, pass through the use of these memory devices acquisitions of visit during the product operation to the target dot matrix character data.Wherein method two is to make product use dot matrix character data to have more dirigibility, is method the most frequently used in the product.In the present invention, the mode of using in the method for loading character library and other products or the system is identical, so repeat no more.
Preparing font intermediate state zone is the step of a uniqueness during the present invention creates, in the present invention, the font of character display is to finish font according to the data in the dot matrix word library to draw in this zone, carry out the font that conversion realizes target sizes by the font data in this zone again, so be referred to as " the intermediate state zone of font ", i.e. spatial transition in the character display procedure for displaying in the character procedure for displaying.Generally open up in system dynamics storage space (internal memory) in this zone.The size in intermediate state zone determines according to the dot matrix number of the maximum character that needs in the product show, for example need to show the character of 20 * 20,24 * 24,30 * 30,36 * 36 4 kinds of sizes in certain product, so the size in font intermediate state zone just generates by maximum 36 * 36 size, use in the time of just satisfying above four kinds of fonts and show.The data layout in intermediate state zone is identical with the OSD of product (On Screen Display) data layout.
The process of drawing font be exactly with character to be shown by its character shape coding data in dot matrix word library, its font is drawn on the target area.The demonstration of dot matrix word library is the target area that font directly is drawn on the viewing area in the conventional method, and the word-base code by character is drawn on an intermediate state transitional region with it in the present invention's creation, promptly in the font intermediate state zone.
The drawing process of font mainly comprises: at first refer to character character shape coding data in dot matrix word library, this is that a capable dot matrix of N row x M is expressed the data of font by binary coding, and (N binary digit) expresses color or the background colour that each point is a character subsequently line by line.As a certain position in the N position is 1, and then this position be a character color to should character present picture element point going up, otherwise if this position is 0, then this position is to should character present picture element point upward being background colour.Using such method is finished the drafting of a current line N picture element.Recycling processing is finished the capable data representation of target character M line by line, has also just finished the drafting of current character, and promptly the font data of character has Already in suffered the target area.Be illustrated in figure 1 as the process that point character A draws, wherein the left side is a character in the dot matrix word library binary representation of A ' dot matrix 14 * 16 data ', draw according to dot matrix on the right ' A ' font.
The font data that is drawn in the font intermediate state zone in drawing the font step is a glyph bitmap data in fact.Based on these data, one that just makes up character to be shown easily based on the view data body in the internal memory, the target sizes that will show then according to character to be shown, adopt image process method to carry out integral transformation to view data, promptly amplify or dwindle, obtain the font data of character glyphs target sizes to be shown at last.This shows that the conversion of font in fact has been converted into the conversion process of view data.
From the above mentioned, conversion font step mainly is the view data of processing character font.Concrete image data scaling has two kinds of approach to finish in product: a kind of approach is to finish by the image processing module of the hardware supported that provides in the product; Another approach is to finish image data scaling by software algorithm.As the image processing function of hardware supported is arranged in the fruit product, by the image processing module of the hardware supported that provides in the product finish Flame Image Process in this step seem extremely simple, fast, efficient.Finish image zoom by software algorithm, be actually the coordinate transform and the color interpolation that pixel in the source images are carried out two-dimensional space.The equation of transformation of scale is:
X Y a 0 0 d = ax dy = X ′ Y ′
If during a=b=1 is identical transformation;
If a=b ≠ 1st, the geometric ratio conversion, a=b>1st, geometric ratio is amplified, a=b<1st, geometric ratio is dwindled.
Each dot character of the inventive method tripping is expressed as the details of font from character library, directly with its as a result font in limited scope, carry out integral body and amplify or dwindle, and the method for convergent-divergent just in time be the image amplification, the conventional method of dwindling.As hardware-accelerated demonstration or image processing function are arranged in the fruit product, then can make full use of the convergent-divergent process that this function is quickened character glyphs, make the technology of the present invention more economically, practical and efficient.If do not have hardware-accelerated demonstration or image processing function, at present popular image zoom software algorithm is very many, in the methods of the invention to not having special requirement based on software real world images convergent-divergent, the requirement in this step that the software algorithm of image zoom commonly used also can satisfy.
Character glyphs shows that the output step is that the character glyphs of the target sizes that will obtain in the last step is shown on the target location in the viewing area.The font data form that is arranged in font intermediate state zone is identical with the data layout of viewing area OSD, to finish font this moment and show (being drawn in the font intermediate state zone), only the font data of having handled well in the font intermediate state zone need be copied to the target location on the OSD of viewing area, thereby can realize that character glyphs shows.
Most preferred embodiment described above only is that the present invention is set forth and illustrates, but is not limited to disclosed any concrete form, and it is possible carrying out many modifications and variations.

Claims (5)

1. realize the method for multiple font size by a kind of dot matrix word library, it is characterized in that: comprise the steps:
A. in goal systems, load a kind of dot matrix character data commonly used at least, with as system's Chinese words, character data presented source and basis;
B. opening up a maximum region that satisfies single character drafting in the system dynamics memory block is font intermediate state zone, and this maximum region is the zone that the dot matrix number of maximum character in the character that shows is as required determined;
C. the character shape coding of character among the step a by reference is drawn on described font intermediate state zone with character glyphs to be shown;
D. the view data of font data primordial in the dynamic area of the character to be shown that obtains among the integrating step c according to the final size that shows of character to be shown, carried out conversion to font data again, obtains the target font size data of character to be shown;
E. the character font data result after handling in the steps d is output in the viewing area on the target location, promptly finishes the demonstration of a character;
By reusing font intermediate state zone, just can finish the demonstration one by one of literal in the system, character string by said process.
2. as claimed in claim 1ly realize it is characterized in that the method for multiple font size: the dot matrix number decision of the maximum character that the size in described font intermediate state zone shows as required by a kind of dot matrix word library.
3. as claimed in claim 2ly realize the method for multiple font size by a kind of dot matrix word library, it is characterized in that: described font intermediate state zone is arranged in the Installed System Memory.
4. describedly realize the method for multiple font size by a kind of dot matrix word library as claim 1,2 or 3, it is characterized in that: the data layout in described font intermediate state zone is identical with the data layout of viewing area.
5. the method that realizes multiple font size by a kind of dot matrix word library as claimed in claim 4, it is characterized in that: described font data is carried out conversion and is the conversion that font data is adopted image process method or carries out whole amplification or dwindle by software algorithm, obtains the target font size data of character to be shown.
CN200710073786A 2007-03-30 2007-03-30 Method for realizing multiple font size with the point array library Expired - Fee Related CN100590705C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710073786A CN100590705C (en) 2007-03-30 2007-03-30 Method for realizing multiple font size with the point array library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710073786A CN100590705C (en) 2007-03-30 2007-03-30 Method for realizing multiple font size with the point array library

Publications (2)

Publication Number Publication Date
CN101055714A CN101055714A (en) 2007-10-17
CN100590705C true CN100590705C (en) 2010-02-17

Family

ID=38795521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710073786A Expired - Fee Related CN100590705C (en) 2007-03-30 2007-03-30 Method for realizing multiple font size with the point array library

Country Status (1)

Country Link
CN (1) CN100590705C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101686568B (en) * 2008-09-25 2013-06-05 华为终端有限公司 Methods and terminals for transmitting and displaying text information
CN101510421B (en) * 2009-01-16 2013-02-27 无锡中星微电子有限公司 Method and apparatus for regulating dot-character size, and embedded system
CN102496357A (en) * 2011-12-17 2012-06-13 天津深楠信息安全有限公司 Enlarging method for character style displayed on USB KEY (Universal Serial Bus Key) liquid crystal display
US10127699B2 (en) * 2015-02-27 2018-11-13 Lenovo (Singapore) Pte. Ltd. Serial visual presentation for wearable displays
CN106709973A (en) * 2016-12-16 2017-05-24 无锡中微亿芯有限公司 MCU and FPGA chip-based electronic seal generation and display method
CN108242211A (en) * 2016-12-26 2018-07-03 航天信息股份有限公司 Processing method, device and the board units of dot character
CN109218845B (en) * 2017-07-01 2020-09-04 武汉斗鱼网络科技有限公司 Method, storage medium, electronic device and system for optimizing bullet screen display effect
CN113360113B (en) * 2021-05-24 2022-07-19 中国电子科技集团公司第四十一研究所 System and method for dynamically adjusting character display width based on OLED screen

Also Published As

Publication number Publication date
CN101055714A (en) 2007-10-17

Similar Documents

Publication Publication Date Title
CN100590705C (en) Method for realizing multiple font size with the point array library
CN102122502B (en) Method and related device for displaying three-dimensional (3D) font
CN100534126C (en) Graphics display systems with data compression and methods of performing data compression of graphics data
CN102402793A (en) Processing of computer graphics
US20200342294A1 (en) Neural network accelerating apparatus and operating method thereof
US8072472B2 (en) System and method for scaling overlay images
CN105426944A (en) Square lattice anti-counterfeit label group, and method and system for reading square lattice anti-counterfeit label group
CN102169423A (en) Method and system for displaying characters
CN101562005A (en) Character display apparatus
Globačnik et al. An efficient raster font compression for embedded systems
CN112118449B (en) Method and device for compressing and decompressing image
US8488894B2 (en) Method and system for dot-matrix font data compression and decompression
CN100385465C (en) Displaying images
US7532216B2 (en) Method of scaling a graphic character
US20230024148A1 (en) Data processing methods and systems, and electronic devices
US20070177814A1 (en) Method and recording format for image compression
CN102280098B (en) Dot matrix character scaling method and system
JP2008228168A (en) Image processing apparatus and program
CN101957837B (en) Method for accessing stroke vector font
US8457470B2 (en) Systems and methods for a common image data array file
US9524572B2 (en) Parallel processing of pixel data
EP1659567A1 (en) Font data management
US7327367B2 (en) Method and apparatus for font processing
CN106127840A (en) A kind of processing method and processing device of flash animation
CN101052109B (en) Anti-flash word stock processing method and its application chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY CO.

Free format text: FORMER OWNER: SHENZHEN SKYWORTH-RGB ELECTRONIC CO., LTD.

Effective date: 20080321

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20080321

Address after: Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A14 post encoding: 518000

Applicant after: Shenzhen Skyworth Digital Technology Co., Ltd.

Address before: Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A1316 Shenzhen SKYWORTH -RGB Electronic Co. Ltd postal encoding: 518000

Applicant before: Shenzhen Skyworth-RGB Electronics Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SHENZHEN SKYWORTH DIGITAL TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SKY-WORTH DIGITAL TECHNOLOGY CO., LTD.;SHENZHEN CITY

CP01 Change in the name or title of a patent holder

Address after: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A14

Patentee after: Shenzhen Skyworth Digital Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road SKYWORTH building A14

Patentee before: Shenzhen Skyworth Digital Technology Co., Ltd.

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: 20100217

Termination date: 20160330