CN1121656C - Characters display method under apparent window environment - Google Patents

Characters display method under apparent window environment Download PDF

Info

Publication number
CN1121656C
CN1121656C CN97110363A CN97110363A CN1121656C CN 1121656 C CN1121656 C CN 1121656C CN 97110363 A CN97110363 A CN 97110363A CN 97110363 A CN97110363 A CN 97110363A CN 1121656 C CN1121656 C CN 1121656C
Authority
CN
China
Prior art keywords
dot matrix
literal
index
character
monochrome bitmap
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 - Lifetime
Application number
CN97110363A
Other languages
Chinese (zh)
Other versions
CN1196534A (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.)
Inventec Corp
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN97110363A priority Critical patent/CN1121656C/en
Publication of CN1196534A publication Critical patent/CN1196534A/en
Application granted granted Critical
Publication of CN1121656C publication Critical patent/CN1121656C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The present invention relates to a character display method under an apparent window environment of a computer, which comprises: at least one character library of a dot matrix, and an index are initialized for generating a monochrome bitmap and an application program interface which correspond to the character library; the monochrome bitmap is selected in the program interface; an address in the index is generated according to an inner code of a character; the sequence number of the character is read out according to the address; the dot matrix value of the character in the character library of a dot matrix is read out according to the sequence number, and the character is endowed with the monochrome bitmap; the character is stored in a target apparent window by the bitmap, and is displayed on a display device.

Description

Character displaying method under the windowing environment
The present invention relates to a kind of character displaying method, particularly relate to a kind of Chinese character display method that is used under the computer viewing window environment.
Under traditional English windowing environment, for example be used in the MicrosoftWindows on the IBM personal computer, can't show Chinese character; Therefore, if use the relevant software of Chinese, must (Chinese Windows) ability regular event and demonstration under the windowing environment of Chinese.Press, shown font can be divided into three kinds of raster font (raster), vector fonts and truetype fonts (Truetype) under the Chinese and English windowing environment.Wherein raster font is that form with figure stores, and vector fonts is that (graphic device interface GDI) stores font to the utilization graphical device interface, and truetype fonts then is that the mode via the Points And lines set of determining character outline stores.Show that for above-mentioned font the Windows form provides User, Kernel and three kinds of functions of GDI; In User and GDI function library, some character explicit functions are provided.For example, DrawText, ExtTextOut, TexOut etc. can come character display according to various forms, designated color, specific font or assigned address.
Because the Hanzi font library in the middle windows text is the truetype fonts form, so Chinese windowing environment has and takies storer and reach the slow shortcoming of display speed more greatly.
In view of above-mentioned traditional many shortcomings that display packing produced, fundamental purpose of the present invention is to provide a kind of and can be used under the Chinese and English windowing environment, shows the Chinese character display method of multiple font.
Another object of the present invention provides a kind ofly uses less storer and speed display packing faster than classic method.
According to above-described purpose, the invention provides a kind of Chinese character display method that is used under the computer viewing window environment.At first, the Chinese character of dot matrix is stored in the literal shelves, and produces dot matrix word library and index corresponding to dot matrix, wherein index is to arrange with the coded sequence of Chinese character.When using this display packing, first initialization dot matrix character library and index are to produce a monochrome bitmap and an Application Programming Interface (API) corresponding to dot matrix word library; Its step produces the monochrome bitmap corresponding to dot matrix word library again for reading in dot matrix word library and being indexed in the computing machine, to produce an Application Programming Interface (API) that is compatible to computer interface.Then, monochrome bitmap is selected in the Application Programming Interface (API), and according to the ISN of Chinese character, to produce the address of Chinese character in index, the sequence number of reading Chinese character again according to address.According to sequence number, read the dot matrix numerical value of Chinese character in dot matrix word library, and give monochrome bitmap dot matrix numerical value.At last, the monochrome bitmap in the computing machine is stored to Chinese character in the one target form, according to color settings achromatic sheet is converted to corresponding color, and Chinese character is shown on the display device of computing machine.When this self-built dot matrix word library and index when not required, then dot matrix word library, index, monochrome bitmap and Application Programming Interface (API) can be discharged.
Specifically, according to the present invention, a kind of method that shows as literal under the computer viewing window environment is provided, and this method comprises the following step: be initialized to an a little less battle array character library and an index, to produce a monochrome bitmap and an Application Programming Interface (API) corresponding to this dot matrix word library; This monochrome bitmap is selected in this Application Programming Interface (API); According to the ISN of a literal, to produce the address of this literal in this index; According to this address, read a sequence number of this literal; According to this sequence number, read the dot matrix numerical value of this literal in this dot matrix word library; Give this monochrome bitmap with this dot matrix numerical value; This monochrome bitmap in this computing machine is stored to this literal in the one target form; And, this literal is presented on the display device of this computing machine, wherein, described initialization step comprises the following step: read in this dot matrix word library and be indexed in this computing machine with this; Generation is corresponding to this monochrome bitmap of this dot matrix word library; And, produce this Application Programming Interface (API), wherein the interface of this Application Programming Interface (API) and this computing machine is compatible.
Figure 1A and Figure 1B represent detail flowchart of the present invention.
With reference to Figure 1A, be illustrated in the step of setting up character library before Chinese character shows in the frame of broken lines of number in the figure 10, it is with used different latticed forms, for example the Chinese character of 16*15 or 24*24 dot matrix is stored into literal shelves (text file) (step 101) respectively, and these literal shelves are handled by a software program, produce the dot matrix word library and the index of different latticed forms then in step 102 respectively, wherein index is to arrange with the coded sequence of Chinese character.In index, each Chinese character is corresponding fixed position; If this Chinese character has been used in the literal shelves, then the location number of this Chinese character in self-built character library deposited in this position; Yet if this Chinese character is not used, this position is made as zero.
Be illustrated in the preceding performed initialization step of real demonstration Chinese character among Figure 1A in the frame of broken lines of label 20.At first, storer (step 201) to the computing machine read in the dot matrix word library of corresponding dot matrix and index, and in monochrome bitmap (bit-map) structure (step 202) of the Chinese character of the upright corresponding dot matrix of memory built, simultaneously in step 203, at upright Application Programming Interface (API) (the application program interface compatible of memory built with Chinese character form to display, API, be called device context again), this Application Programming Interface (API) is the formula design language interface between General System control formula and user's formula.
In the time will showing Chinese character, at first corresponding dot matrix monochrome bitmap is selected into Application Programming Interface (API) (step 31), calculate the address of current Chinese character in index according to the encode Chinese characters for computer formula again, and according to this address to read the sequence number (step 32) of Chinese character.Then in step 33, read the dot matrix numerical value of Chinese character in dot matrix word library according to this sequence number.Give monochrome bitmap structure (step 34) with this dot matrix numerical value, again this monochrome bitmap is stored to the assigned address (step 35) in the target form.Then, transfer this monochrome bitmap to corresponding color (step 36) according to setting, and target window refreshed and Chinese character is presented at (step 37) on the display device.Show that Chinese character in display device, as the method on the terminating machine, is to use general display packing, and cooperate self-built function and some to call module to reach.For example, be shown under the windowing environment of IBM personal computer, can call out (call), use the listed function of table one.
Table one
init hz Initialize routine
write_hzstring16() 16 * 15 horizontally-arranged Chinese character display routines
write_hzstring16v() 16 * 15 vertical setting of types Chinese character display routines
write_hzstring24() 24 * 24 horizontally-arranged Chinese character display routines
write_hzstring24v() 24 * 24 vertical setting of types Chinese character display routines
free_dllhz() Release procedure
Below to show that 16 dot matrix Chinese characters " Tang " are that example is to illustrate each step of the present invention under E-TEN Corp's hanzi system.At first, according to the sexadecimal ISN ADF0 of " Tang " word, and calculate address 5412 (step 32) in index, read the content (sequence number) 73 in the index according to coding rule, multiply by each Chinese character dot matrix data length 30 with 73 again, just the position of " Tang " word in character library.Then, from then on the dot array data (step 33) of 30 bytes (byte) is read in the position, gives the monochrome bitmap structure of having set up (step 34), and this bitmap is stored to the assigned address (step 35) of target window, has promptly finished the demonstration of " Tang " word.
Be illustrated in the frame of broken lines with reference to Figure 1B label 40 and show behind the Chinese character and performed release steps when no longer needing to show dot matrix Chinese character.Its step comprises: discharge dot matrix word library and index in step 401; Discharge monochrome bitmap in step 402: and in step 403 release Application Programming Interface (API).
Show Chinese character with the present invention, the function library that must be provided by means of form itself not, but via self-built dynamically in succession function library finish Chinese-character display function.With 24*24 regular script character library is example, and after using the present invention, then required storer accounts for hundreds of K bytes greatly, and the dot matrix word library of 16*15 is approximately tens of K bytes.Compare with the 3.09M byte that the acceptance of the bid pattern character library of traditional Chinese form is required, the present invention has saved many storage space.
The above is preferred embodiment of the present invention only, is not in order to limit claim scope of the present invention; All other do not break away from the equivalence of being finished under the disclosed spirit and changes or modification, all should be included in claims.Though for example the above embodiments are meant the demonstration of Chinese character, yet other literal, especially non-alphabetic writing are subjected to the protection of described claim too.

Claims (6)

1. one kind is used as the method that literal shows under the computer viewing window environment, comprises the following step:
Be initialized to an a little less battle array character library and an index, to produce a monochrome bitmap and an Application Programming Interface (API) corresponding to this dot matrix word library;
This monochrome bitmap is selected in this Application Programming Interface (API);
According to the ISN of a literal, to produce the address of this literal in this index;
According to this address, read a sequence number of this literal;
According to this sequence number, read the dot matrix numerical value of this literal in this dot matrix word library;
Give this monochrome bitmap with this dot matrix numerical value;
This monochrome bitmap in this computing machine is stored to this literal in the one target form; And
This literal is presented on the display device of this computing machine,
Wherein, described initialization step comprises the following step:
Reading in this dot matrix word library is indexed in this computing machine with this;
Generation is corresponding to this monochrome bitmap of this dot matrix word library; And
Produce this Application Programming Interface (API), wherein the interface of this Application Programming Interface (API) and this computing machine is compatible.
2. method as claimed in claim 1 before showing this literal, also comprises a step:
According to a color of setting, this monochrome bitmap is converted to corresponding color.
3. method as claimed in claim 1 is being read in before this dot matrix word library and this be indexed to this computing machine, also comprises the following step:
Most Chinese characters that are stored to a little less battle array are in literal shelves; And
Generation is corresponding to this dot matrix word library and this index of this dot matrix, and wherein this index is to arrange with the coded sequence of this literal.
4. method as claimed in claim 1 after showing this literal, also comprises a release steps to discharge this dot matrix word library, this index, this monochrome bitmap and this Application Programming Interface (API).
5. method as claimed in claim 4, wherein, described release steps comprises:
Discharge this dot matrix word library and this index;
Discharge this monochrome bitmap; And
Discharge this Application Programming Interface (API).
6. method as claimed in claim 1, wherein, described literal is a Chinese character.
CN97110363A 1997-04-15 1997-04-15 Characters display method under apparent window environment Expired - Lifetime CN1121656C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN97110363A CN1121656C (en) 1997-04-15 1997-04-15 Characters display method under apparent window environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN97110363A CN1121656C (en) 1997-04-15 1997-04-15 Characters display method under apparent window environment

Publications (2)

Publication Number Publication Date
CN1196534A CN1196534A (en) 1998-10-21
CN1121656C true CN1121656C (en) 2003-09-17

Family

ID=5171387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN97110363A Expired - Lifetime CN1121656C (en) 1997-04-15 1997-04-15 Characters display method under apparent window environment

Country Status (1)

Country Link
CN (1) CN1121656C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461155C (en) * 2006-04-06 2009-02-11 华为技术有限公司 Method and system for inputting and displaying character

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739485B (en) * 2008-11-26 2011-08-31 中国科学院微电子研究所 Method for drawing vector character in LEdit
CN101872606B (en) * 2009-04-24 2013-08-21 深圳市九洲电器有限公司 Matrix font library initialization method and system
CN101996160B (en) * 2009-08-10 2013-01-02 北大方正集团有限公司 Method and system for processing script data
CN106327552B (en) * 2016-08-31 2019-09-06 广州博冠信息科技有限公司 A kind of character displaying method and device
CN107930117B (en) * 2017-11-13 2020-10-27 福建省天奕网络科技有限公司 Method and terminal for displaying graphics and characters in game
CN108681527A (en) * 2018-05-14 2018-10-19 四川斐讯信息技术有限公司 A kind of character displaying method and device for intelligent wearable device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
计算机组成与结构 1990-10-01 王爱英 清华大学出版社 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100461155C (en) * 2006-04-06 2009-02-11 华为技术有限公司 Method and system for inputting and displaying character

Also Published As

Publication number Publication date
CN1196534A (en) 1998-10-21

Similar Documents

Publication Publication Date Title
US6552728B1 (en) Method and system for providing substitute computer fonts
EP0284764B1 (en) Improved user transaction guidance
US5771034A (en) Font format
US4642794A (en) Video update FIFO buffer
US7697000B2 (en) Method and apparatus for typographic glyph construction including a glyph server
US4990903A (en) Method for storing Chinese character description information in a character generating apparatus
US6005588A (en) System and method for rapidly displaying text in a graphical user interface
EP1332467B1 (en) Method and apparatus for composite font generation
CN1121656C (en) Characters display method under apparent window environment
US4918429A (en) Display system with symbol font memory
US20070013700A1 (en) Mobile communication terminal having function of animating input characters
CN110675800A (en) Display screen driving method and device
JP2007517251A (en) Configuration for font scaling
US6344856B1 (en) Text optimization
CN100371875C (en) Universal compressed Chinese character library chip
CN102099806B (en) Information output apparatus, information output method, and recording medium
JP2833092B2 (en) Contour line data compression device and decompression device
CN101957837A (en) Method for accessing stroke vector font
Davis et al. Unicode
CN110609669A (en) Interface processing method and device, storage medium and electronic equipment
KR20020070106A (en) Method of controlling the display of a character based on a dynamic code generation
KR930001468B1 (en) Korea character displaying method of computer
JPS6385695A (en) Serial character generation system
TW314612B (en) Text displaying method in window environment
CN116466900A (en) Screen display method

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20030917

CX01 Expiry of patent term