CN101131687A - Method for generating font - Google Patents

Method for generating font Download PDF

Info

Publication number
CN101131687A
CN101131687A CNA2006101215487A CN200610121548A CN101131687A CN 101131687 A CN101131687 A CN 101131687A CN A2006101215487 A CNA2006101215487 A CN A2006101215487A CN 200610121548 A CN200610121548 A CN 200610121548A CN 101131687 A CN101131687 A CN 101131687A
Authority
CN
China
Prior art keywords
stroke
font
sign indicating
literal
indicating number
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.)
Pending
Application number
CNA2006101215487A
Other languages
Chinese (zh)
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.)
Wending Science & Tech Development Co Ltd
Arphic Tech Co Ltd
Original Assignee
Wending Science & Tech Development 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 Wending Science & Tech Development Co Ltd filed Critical Wending Science & Tech Development Co Ltd
Priority to CNA2006101215487A priority Critical patent/CN101131687A/en
Publication of CN101131687A publication Critical patent/CN101131687A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

It produces the font including the key point, the starting point and the end point which are used for registering a stroke, and the one-stroke program corresponding to the stroke prints out the single-line structure according to the key point, the starting point and the end point of the stroke. After printing the single-line structure of the stroke, it readjusts the thickness of the stroke.

Description

Produce the method for font
Technical field
The invention provides a kind of method that produces font, especially refer to a kind of method that promotes small character type display quality.
Background technology
Present high-quality Chinese font mostly uses group of strokes word technology to finish, it is a structural figure of being made up of many strokes that group of strokes word technology is considered as the font of each word, and each stroke then is to be represented by the spirte that appearance profile constituted of this stroke.The stroke kind of Chinese words is also few, but in different words or the different parts of a word, even identical stroke also has long and short, fat, the thin or difference of angle.If but belong to a kind of stroke, for example " one ", even these difference is arranged, their appearance profile feature also is identical mostly.If therefore represent the key point of long and short, the angle of a stroke and position and represent fat, the thin width value of stroke different parts can by other calibrate, then the appearance profile of a stroke just can calculate and be drawn with a stroke program easily.
Basically, each stroke all is provided with the key point and the width value of predetermined number, and all available stroke program of each stroke is drawn this stroke.The stroke program is write as with " picture description language " (graphic description language), it can be plotted in the square frame according to each given key point and the width value appearance profile with a stroke, is plotted in one by one in the square frame and constitutes and the font of a word is exactly stroke that it is all by the stroke program of each stroke.
Please refer to Fig. 1; Fig. 1 is the data structure of the previous stroke table of comparisons 10.The stroke table of comparisons 10 comprises the stroke sign indicating number 14 of each stroke, and corresponding to the stroke program 12 of each stroke.When drawing stroke, system can take out corresponding stroke program according to the stroke sign indicating number of a stroke, and then utilizes this stroke program to be plotted in the square frame according to the key point of this stroke and the width value appearance profile with this stroke.
Please refer to Fig. 2 and Fig. 3; Fig. 2 is the position of appearance profile and each key point and the width value of stroke 20, and Fig. 3 is the data structure 24 of stroke 20.Stroke 20 be provided with three key points (x1, y1), (x2, y2) and (x3, y3) and two width value w1 and w2, so data structure 24 includes stroke sign indicating number (ID7) and each key point and the width value of stroke 20.
Please refer to Fig. 4; Fig. 4 is the data structure that previous font is described shelves 28.It is to be used for writing down each font to be made up of those strokes that font is described shelves 28, and the stroke datas such as stroke sign indicating number, key point and width value of each stroke.Font is described the stroke description list 32 that shelves 28 include a concordance list 30 and each word.Concordance list 30 contains the character code (WID) of each font and the address of corresponding stroke description list 32.Stroke description list 32 then is made up of the data structure of each stroke of yi word pattern, and just as data structure shown in Figure 3 24, it contains the stroke data of each stroke: stroke sign indicating number, key point and width value.These stroke datas are to arrange according to a predetermined order, for example similarly are the order of strokes observed in calligraphy used when writing.When drawing a font, as long as find out the character code of this font, the concordance list 30 that system will utilize font to describe shelves 28 is found out the stroke description list 32 of this font, and then cooperate the aforesaid stroke table of comparisons 10 that all strokes of this font are plotted in the square frame one by one to finish the housing of this font, utilize the blacking program with this font blacking at last, promptly finish the drafting of this font.
See also Fig. 5; Fig. 5 shows the synoptic diagram of little font for prior art uses group of strokes word technology.When group of strokes word technology was used to show little font, the distance between each stroke may be too near or too wide, causes the display quality of little font relatively poor.
Summary of the invention
The present invention discloses a kind of method that produces font, comprises to set up a stroke table of comparisons, and it comprises a plurality of stroke sign indicating numbers, and a plurality of stroke programs, corresponds to this a plurality of stroke sign indicating numbers, and each stroke sign indicating number has its pairing starting point and end point; Set up a plurality of stroke description lists, be used for describing a plurality of literal, each stroke description list comprises the stroke sign indicating number corresponding to a literal, and a plurality of key points that correspond to each stroke sign indicating number of this literal; According to the yi word pattern sign indicating number, obtain stroke description list corresponding to this font sign indicating number; According to corresponding to the stroke sign indicating number in the stroke description list of this font sign indicating number, its pairing a plurality of key points, stroke program, starting point and end point are drawn the literal corresponding to this font sign indicating number.
Description of drawings
Fig. 1 is the data structure of the previous stroke table of comparisons.
Fig. 2 is the appearance profile of a stroke in the prior art and the synoptic diagram of each key point and width value.
Fig. 3 is the synoptic diagram of the data structure of Fig. 2 stroke.
Fig. 4 is the synoptic diagram that previous font is described the data structure of shelves.
Fig. 5 shows the synoptic diagram of little font for prior art uses group of strokes word technology.
Fig. 6 to Figure 10 is the starting point of selection stroke and the synoptic diagram of end point.
Figure 11 is the synoptic diagram of the single line structure of each font that the present invention draws out.
Figure 12 to Figure 14 is for adjusting the synoptic diagram of stroke weight.
Figure 15 and Figure 16 are respectively the present invention adjusts the font behind the stroke weight in the mode of Figure 12 and Figure 14 synoptic diagram.
Figure 17 is the synoptic diagram of the data structure of stroke of the present invention.
Figure 18 is the synoptic diagram of the stroke table of comparisons of the present invention.
The 19th figure describes the synoptic diagram of the data structure of shelves for font of the present invention.
Figure 20 draws the process flow diagram of font for the present invention.
The main element symbol description
12 stroke programs, 14 stroke sign indicating numbers
20 strokes, 30 concordance lists
46 starting points, 47 end point
10, the 40 stroke tables of comparisons
24,44 stroke data structures
28,48 fonts are described shelves
32,42 stroke description lists
Embodiment
After the present invention produces the single line structure of font, adjust the thickness of this each stroke of font again, show high-quality little font to reach.
At first, obtain the starting point (initial point) and end point (end point) of the single line structure of each stroke.Utilize the font data in the existing group word technology, (it is not blacking in the housing as stroke housing font (its be in the housing at least partly the stroke of blacking) or pure housing font, and the stroke of housing is only arranged), these fonts can be adjusted its size, in general, approximately use 300 to 500 strokes can organize out the font data of a cover traditional Chinese.The thickness of these strokes is set at zero and draw, can obtains the single line structure of stroke, how to choose the starting point and the end point of the single line structure of stroke, after detailed explanation is arranged.
See also Fig. 6; Fig. 6 is stroke a " one's " frame structure, because when drawing stroke housing font, the stroke program of prior art can be according to the key point and the width value of this stroke, calculate the curve of frame structure, as long as the thickness of stroke is non-vanishing, then the frame structure of stroke must be a closed curve, and therefore the direction from an A along arrow is drawn out the frame structure of Fig. 6.See also Fig. 7; Fig. 7 is zero synoptic diagram for stroke weight among Fig. 6.If the thickness of stroke is made as zero, the drawing path of prior art be to draw to a C from a B, again from a C to a B drafting, no matter thickness is why, the drafting mode of the stroke program of prior art is that each stroke is considered as a closed curve.The starting point that the present invention sets this stroke according to the single line structure of Fig. 7 is B and end point is C.Therefore draw as during the single line structure of Fig. 7 when the present invention uses the stroke program, the stroke program only according to key point originally and the starting point B and the end point C that set, stops just being plotted to a C from a B, can not go back to a B drafting from a C again.
In the present embodiment, the starting point of most of strokes is first key point of this stroke, and the end point of most of strokes is last first key point of this stroke.The starting point of all the other strokes and end point then are by artificial definition.See also Fig. 8 to Figure 10.Fig. 8 is a non-directional stroke, and the direction from a D along arrow is drawn.The thickness of the stroke of Fig. 8 being made as zero, can obtaining the single line structure of Fig. 9, is the bilateral curve that zero non-rectilinear stroke is still wanted calculating chart 8 frame structures because prior art is drawn thickness, so the interior curve of dotted portion can not overlap and is single curve.Therefore when the present invention draws the single line structure of this non-rectilinear stroke, the stroke program can be according to key point originally and the starting point E and the end point F that set, be plotted to a F from an E and just stop, can obtaining the single line structure of Figure 10, therefore solved the nonoverlapping problem of curve among Fig. 9.
See also Figure 11; Figure 11 is the synoptic diagram of the single line structure of each font that the present invention draws out.Then, promptly finish the drafting of font as long as adjust the thickness of each stroke in each font.Adjust stroke weight following several mode is arranged.
See also Figure 12; Figure 12 is for adjusting the synoptic diagram of stroke weight.Stroke among Figure 12 for some G to the straight line stroke of putting H, turn right, down and turn right down and extend other three points (is mark with " fork ") to putting each point that H was comprised (is mark with the stain) with a G, the width that promptly draws is 2 a font.Utilize the mode of extending to adjust the thickness of stroke, width that is extended and direction can be decided according to required font size.
See also Figure 13; Figure 13 is for adjusting the synoptic diagram of stroke weight.Stroke among Figure 13 is the center of circle with an I to putting each point that J was comprised for putting I to the straight line stroke of putting J, and the distance between 2 is that radius is drawn filled circles, and the width that promptly draws is 2 a font.Adjust the thickness of stroke in the mode of drawing filled circles, choosing then of radius decided on required font size.
See also Figure 14; Figure 14 is for adjusting the synoptic diagram of stroke weight.Stroke among Figure 14 for some K to the straight line stroke of putting L, divide benchmark with a K into to the ruling pen of putting L, extend downwards in gray-scale value mode decrescence.Utilize different gray-scale value sizes to show font, gray-scale value degree and width decrescence decided by required font size.
See also Figure 15 and Figure 16, be respectively the synoptic diagram of adjusting the font behind the stroke weight in the mode of Figure 12 and Figure 14.Figure 15 and Figure 16 show that the quality of little font is better than the display quality of Fig. 5, therefore can improve the display quality of little font by the present invention.The mode that the present invention adjusts stroke weight is not limited to above-mentioned mode, and the method that other any adjustable lump-sums are drawn thickness is also adopted by the present invention.
When a display system shows font at a display screen, can judge the size of font earlier, if belong to big font, then select the group word technology of prior art to draw big font; If belong to little font, then select of the present invention group of word technology to draw little font, to promote the display quality of little font.Needing the complex form of Chinese characters of the data volume of 1.2MB with a cover with prior art is example, need increase the starting point and the end point data of each stroke when drawing the small character type owing to the present invention, so the big appointment of this display system increases the data volume of 1.2KB (byte).
Perhaps, no matter the size of font is all drawn with of the present invention group of word technology, therefore must not store the width value of original each stroke, just the width value in Fig. 3 data structure 24.See also Figure 17 to Figure 19, Figure 17 is the stroke data structure of wanting 44 required for the present invention; Figure 18 is the synoptic diagram of the stroke table of comparisons 40 of the present invention; Figure 19 describes the synoptic diagram of shelves 48 for font of the present invention.Do not have this item number certificate of width value in the stroke data structure 44 of Figure 17 and the stroke description list 42 of Figure 19, therefore whole data volume can be reduced to 1.0-1.1MB from the 1.2MB of previous technology.
In addition, the present invention only need calculate the monolateral curve of stroke housing font originally, and uses easy mode to adjust stroke weight, calculates point in the closed curve compared to prior art, and the speed that the present invention produces font can significantly promote.
See also Figure 20; Figure 20 draws the process flow diagram of font for the present invention, and step is as follows:
Step 100: judge font size to display earlier, if big font then enters step 104; If little font then enters step 102;
Step 102: according to the font sign indicating number WID of this font, obtain corresponding stroke description list 42, according to starting point 46, end point 47, key point and the stroke program of each stroke in the stroke description list 42, draw out the single line structure of this font again, then enter step 106;
Step 104: use the group of strokes word technology of prior art, draw out the housing of this font, then enter step 108;
Step 106: adjust the thickness of each stroke in this font, then enter step 110;
Step 108: utilize the blacking program with this font blacking, then enter step 110;
Step 110: export this font, finish.
Certainly, Figure 20 also can omit step 100, and all fonts are all drawn font with method for drafting of the present invention.
The invention provides a kind of method that produces font, the stroke program is drawn out the single line structure of stroke according to key point, starting point and the end point of stroke, treat that whole font single line structure is completed after, the thickness of adjusting each stroke again gets final product.Advantage of the present invention has: the data volume of required increase is little, about 1.2KB, and the speed that produces font is fast, and the display quality height of little font.In addition, the present invention not only can be applicable to Chinese font, and other structural figures are also applicable.
The above only is the preferred embodiments of the present invention, and all equivalences of carrying out according to claim of the present invention change and revise, and all should belong to covering scope of the present invention.

Claims (7)

1. method that produces font comprises:
Set up a stroke table of comparisons, it comprises a plurality of stroke sign indicating numbers, and a plurality of stroke programs, corresponds to this a plurality of stroke sign indicating numbers, and each stroke sign indicating number has its pairing starting point and end point;
Set up a plurality of stroke description lists, be used for describing a plurality of literal, each stroke description list comprises the stroke sign indicating number corresponding to a literal, and a plurality of key points that correspond to each stroke sign indicating number of this literal;
According to the yi word pattern sign indicating number, obtain stroke description list corresponding to this font sign indicating number; And
According to corresponding to the stroke sign indicating number in the stroke description list of this font sign indicating number, its pairing a plurality of key points, stroke program, starting point and end point are drawn the literal corresponding to this font sign indicating number.
2. the method for claim 1, when the width that also is included in the housing font of a stroke sign indicating number is zero, draw corresponding stroke, and set the starting point of this stroke, and set the end point of this stroke according to last key point of this stroke according to first key point of this stroke.
3. the method for claim 1, when the width that also is included in the pure housing font of a stroke sign indicating number is zero, draw corresponding stroke, and set the starting point of this stroke, and set the end point of this stroke according to last key point of this stroke according to first key point of this stroke.
4. the method for claim 1 is wherein drawn the thickness that comprises each stroke of adjusting this literal corresponding to the literal of this font sign indicating number.
5. method as claimed in claim 4, the thickness of wherein adjusting each stroke of this literal comprises from the past a plurality of directions of the point that each stroke comprised of this literal extends.
6. the point that each stroke was comprised that method as claimed in claim 4, the thickness of wherein adjusting each stroke of this literal comprise with this literal is that filled circles is drawn in the center of circle.
7. method as claimed in claim 4, the thickness of wherein adjusting each stroke of this literal comprises from each stroke of this literal extends to a predetermined direction in gray-scale value mode decrescence.
CNA2006101215487A 2006-08-22 2006-08-22 Method for generating font Pending CN101131687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101215487A CN101131687A (en) 2006-08-22 2006-08-22 Method for generating font

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101215487A CN101131687A (en) 2006-08-22 2006-08-22 Method for generating font

Publications (1)

Publication Number Publication Date
CN101131687A true CN101131687A (en) 2008-02-27

Family

ID=39128957

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101215487A Pending CN101131687A (en) 2006-08-22 2006-08-22 Method for generating font

Country Status (1)

Country Link
CN (1) CN101131687A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010006512A1 (en) * 2008-07-18 2010-01-21 常州华文印刷新技术有限公司 Display method, retrieval method and display device of characters
CN103700363A (en) * 2012-09-27 2014-04-02 文鼎科技开发股份有限公司 Font generation system for display and font generation method for display
CN104699394A (en) * 2013-12-09 2015-06-10 联想(北京)有限公司 Information processing method and electronic equipment
WO2019119443A1 (en) * 2017-12-22 2019-06-27 深圳市柔宇科技有限公司 Handwriting adjustment method and display device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010006512A1 (en) * 2008-07-18 2010-01-21 常州华文印刷新技术有限公司 Display method, retrieval method and display device of characters
CN101630311B (en) * 2008-07-18 2011-05-04 常州华文印刷新技术有限公司 Method and device for displaying characters
CN103700363A (en) * 2012-09-27 2014-04-02 文鼎科技开发股份有限公司 Font generation system for display and font generation method for display
CN104699394A (en) * 2013-12-09 2015-06-10 联想(北京)有限公司 Information processing method and electronic equipment
CN104699394B (en) * 2013-12-09 2018-08-31 联想(北京)有限公司 A kind of information processing method and electronic equipment
WO2019119443A1 (en) * 2017-12-22 2019-06-27 深圳市柔宇科技有限公司 Handwriting adjustment method and display device
CN111201508A (en) * 2017-12-22 2020-05-26 深圳市柔宇科技有限公司 Handwriting adjusting method and display device

Similar Documents

Publication Publication Date Title
CN103310474B (en) A kind of implementation method of original handwriting and system
US20140085311A1 (en) Method and system for providing animated font for character and command input to a computer
CN102156688B (en) Character transforming effect processing method and device
CN100498927C (en) Dot-character retracting method in two-dimension pattern engines and Chinese processing method
US11640685B2 (en) Technology for managing graphic design using metadata relationships
CN103186511A (en) Method and equipment for word formation of Chinese characters, and method for constructing font object library
CN101763234A (en) Method and device for simulating various screen resolutions
CN101131687A (en) Method for generating font
US20170123603A1 (en) Touch display apparatus and wallpaper replacing method thereof
CN104133809B (en) Font style bolding method
US20140344684A1 (en) System for generating unique handwriting style of user and method therefor
JP2017003987A (en) Font deformation method by changing dimensions of at least one partition of frame surrounding character
CN113590000A (en) Handwriting processing method, handwriting processing device and storage medium
CN104238724B (en) Input method and system for electronic equipment based on movement
EP3654164A1 (en) Technology for enabling elastic graphic design
US11138647B2 (en) Method, device, and computer-readable storage medium for managing variations of a graphic design within a framework
KR100933707B1 (en) User handwriting combination system
CN101996309A (en) Method and relevant device for identifying and transforming stroke contour
KR100743175B1 (en) Advertisement writing method using computerized typesetting system
CN102768655A (en) JAVA-based display method of Mongolian
KR101777545B1 (en) Chinese input keyboard
CN102508557A (en) Three-stroke Chinese character input method
CN101000722A (en) Method for realizing Chinese character write dynamic and electronic trace in black in over characters printed in red using vector character
CN107066111B (en) Replaceable character composing system
Lu et al. Elements of Chinese typeface design

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20080227