CN100435140C - A align method at junction of no serif font stroke - Google Patents
A align method at junction of no serif font stroke Download PDFInfo
- Publication number
- CN100435140C CN100435140C CNB2006101147418A CN200610114741A CN100435140C CN 100435140 C CN100435140 C CN 100435140C CN B2006101147418 A CNB2006101147418 A CN B2006101147418A CN 200610114741 A CN200610114741 A CN 200610114741A CN 100435140 C CN100435140 C CN 100435140C
- Authority
- CN
- China
- Prior art keywords
- stroke
- font
- joint
- serif
- ordinate
- 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
Links
Images
Landscapes
- Controls And Circuits For Display Device (AREA)
Abstract
This invention relates to a align method of character shape and stroke combination without underlay in computer word information process field, wherein, the invention adopts force align type on stokes combination to ensure shape correct display; if there are crossing between two or more strokes, the crossing outline are connected with one line outline for aligning.
Description
Technical field
The invention belongs to computing machine font field of information processing, be specifically related to a kind of alignment schemes of not having serif font stroke joint.
Background technology
Font is made up of basic stroke, and basic stroke is the most basic element of forming Chinese character, as horizontal, vertical, left-falling stroke, point etc.Chinese character pattern has a variety of styles, is called different fonts, and common font has the Song typeface, black matrix, imitation Song-Dynasty-Style typeface and regular script etc., the difference of the different manifestations of font on stroke and CONSTRUCTED SPECIFICATION.Serif is one of key character of performance different fonts, and specifically, serif is meant that being added in the font chief editor draws the extra modification elements in two ends (shown in 2 among Fig. 1 and 3), and serif shape difference is often represented two kinds of different fonts.The for example Song typeface of serif is arranged, it is characterized in that perpendicular pen is thicker, horizontal pen is thinner, and U.S. of classic elegance is arranged; Sans serif is black matrix for example, and all stroke weight are all the same, are rich in sense of the times.Characteristics such as sans serif is succinct owing to its font, screen display is effective were widely used in computer system in recent years.
TrueType is a kind of character library descriptor format that most computer operating systems such as present Windows, OS/2, UNIX, Linux are all supported, it adopts quadratic b-spline curve to describe font.Adopt the character library of TrueType form to be called the TrueType character library.TrueType character library form provides the font description method of composite glyph, and the font of various needs all forms by existing font stack combinations.TrueType also provides operational order, can operate certain point in the font, reach the effect that needs, for example: " phase " word is made up of " wood " and " order " two radicals, if this two radicals are arranged in the character library, just can form " phase " word with these two radicals by the mode of combined characters.Piece together different words with radical, radical has certain convergent-divergent, and serif behind the convergent-divergent (vigour of style in writing) can deform, and can remain unchanged with the distance that operational order is controlled between the point of serif part, so just can guarantee the radical convergent-divergent after the vigour of style in writing indeformable.
In low profile edge systems such as handheld device, owing to be subjected to the restriction of system storage capacity, often to adopt the little character library of data volume, this just need generate composite glyph as much as possible with few stroke of trying one's best.Be subjected to the restriction of screen resolution, the dot matrix number of the screen display font of handheld device is generally less, and font may cause very little error owing to reason such as becoming doubly when accepting or rejecting when showing, for the font that serif is arranged, the bonding part of its stroke junction can be included in the serif profile, the abutment has between certain buffer zone, can not cause the dislocation of joint owing to small error, to the not significantly influence of display effect of font, still, for sans serif, its stroke joint must reach strict aligned, otherwise, even very little error also can produce inconsistent phenomenon clearly, as depicted in figs. 1 and 2.
At present, no serif font all is to adopt to be communicated with the stroke that profile is described handing-over, so just is difficult to accomplish the repeated use of stroke, can not effectively reduce the word-base data amount.Simultaneously, when stroke is reused, need carry out when using in different words with unicursal just can using after the variation of proper proportion, could improve reusability, still, the connection profile of complexity can cause the variation of stroke weight when change times, influence the font quality.
Characteristics such as sans serif is succinct owing to its font, screen display is effective are used more and more widely, but are existed above-mentioned shortcoming also to make it demonstrate tangible weak point in the prior art.
Summary of the invention
At the defective that exists in the prior art, the purpose of this invention is to provide a kind of alignment schemes of not having serif font stroke joint, this method can realize that stroke changes ratio in the corresponding adjustment of its direction when being combined into word, can not influence the meticulous of stroke, outline line to the stroke joint aligns simultaneously, thereby realize the correct various fonts that show, inconsistent phenomenon can not occur; And can realize the repeated use of stroke, and reduced the data processing amount of font, can access quality height, Hanzi font library that data volume is little.
For reaching above purpose, the technical solution used in the present invention is: a kind of alignment schemes of not having serif font stroke joint may further comprise the steps:
(1) generate character library: the font in the described character library is no serif font, and font is formed by unit construction, and parts are formed by stroke combination;
(2) the stroke joint to no serif font and parts in the character library aligns, the method that adopts is: if two or more different stroke has handing-over, its junction contour edge has and joins and belong to collinear outline line, then the horizontal ordinate of the node of the outline line that should be alignd in the stroke junction or ordinate are made as equal, make it remain in collinear state, the node of described outline line is meant the end points of this outline line.。
Further, in the step (1), described stroke is the figure of being described by coordinate points by TrueType font form, described parts are figures of being described by one group of stroke by TrueType composite glyph form, described font is by TrueType composite glyph form, the figure of being described by or one group of parts or stroke.
Further, when the stroke joint of no serif font in the character library and parts is alignd, specifically adopt following method:
1) if when the level of two different strokes or vertical wheel profile are located on the same line and partially overlap in the stroke junction, when then two levels or vertical wheel profile being alignd, the ordinate or the horizontal ordinate of four nodes at two outline line two ends of appointment are identical;
2) if when the level of different strokes or vertical wheel profile are located on the same line and partially overlap in the stroke junction more than two, then all outline lines of stroke junction all need alignment, select a node to do reference point, other node aligns with reference point.
Further, when the ordinate of four nodes at two outline line two ends of appointment or horizontal ordinate are identical in the step 1), at first specify the ordinate or the horizontal ordinate of one of them node when rasterisation, to point to nearest lattice point, specify the ordinate of other three nodes or horizontal ordinate identical then with the ordinate or the horizontal ordinate of first node.
Further, the node of the outline line that should have the greatest impact to font with position in the outline line that joins when the outline line of stroke junction is alignd is a reference point, and the node of other outline line aligns with this reference point.
Further, in the step (2), when the no serif font stroke joint in the character library is alignd, earlier stroke " folding " is split as " horizontal stroke ", " erecting " or " horizontal stroke ", " left-falling stroke ", aligns in the stroke junction then.
Further, in the step (2), when the stroke joint of no serif font in the character library and parts is alignd, for reusing more radical in the Chinese character, adopt the method for pre-combiner, promptly earlier become parts, and then become Chinese character pattern with unit construction with stroke combination.
Effect of the present invention is: adopt method of the present invention can access quality height, Hanzi font library that data volume is little, can guarantee the correct demonstration of font, and the outline strokes that causes by error can avoid screen display time dislocation, simultaneously, this method can also be used the most basic stroke combination font, stroke is done ratio in its direction and is changed when the group word, can not influence the thickness and the quality of stroke.
Description of drawings
Fig. 1 is no serif Chinese character and the synoptic diagram that the handing-over of serif Chinese-character stroke is arranged;
Fig. 2 is the character library font display effect contrast synoptic diagram after not having to align and align, and lastrow is the character library that does not have alignment, and next line is the character library after the alignment;
Fig. 3 does not have font stroke profile dislocation place of alignment to amplify the dot matrix synoptic diagram that shows;
Fig. 4 is that the synoptic diagram that shows is amplified in the font stroke profile junction after the alignment;
Fig. 5 is an instruction functions schematic flow sheet of setting four some alignment;
Fig. 6 is that the synoptic diagram that shows is amplified in the font stroke profile junction that many line segments are on the same straight line;
Fig. 7 is the schematic flow sheet of the specific embodiment of the invention.
Description of reference numerals:
1, the stroke junction of no serif word, the strict alignment of outline line.
2, serif word stroke junction is arranged, joint has buffering in serif.
3, the serif in the font stroke.
4-5, do not have the instruction the word display result in the handing-over dislocation place.
6-7, outline strokes.
The node of 8-17, character contour line.
Embodiment
The invention will be further described below in conjunction with the drawings and the specific embodiments:
As shown in Figure 7, a kind of alignment schemes of not having serif font stroke joint may further comprise the steps:
(1) generate character library by no serif glyph group one-tenth: the font in the character library is formed by unit construction, and parts are formed by stroke combination; Described stroke is the figure of being described by coordinate points by TrueType font form; Described parts are figures of being described by one group of stroke by TrueType composite glyph form; Described font is by TrueType composite glyph form, the figure of being described by or one group of parts or stroke;
(2) the no serif font in the character library and the stroke joint of parts are alignd;
When the no serif font stroke joint in the character library is alignd, if two or more different strokes have handing-over, its junction contour edge has to join and have and belongs to collinear outline line, then the ordinate of the end points of the outline line that should be alignd in the stroke junction or horizontal ordinate are made as equal, and the node of the outline line that should have the greatest impact to font with position in the outline line of junction when the stroke junction alignd is a reference point, the node of other outline line aligns to reference point, so that these outline lines remain in collinear state, specifically adopt following method:
1) if when the level of two different strokes or vertical wheel profile are located on the same line and partially overlap in the stroke junction in parts or the font, when then two levels or vertical line segment being alignd, adopt the ordinate or the horizontal ordinate of four nodes of specifying two outline line two ends identical, concrete grammar is to specify the ordinate or the horizontal ordinate of one of them node to point to nearest lattice point when rasterisation, specifies the ordinate of other three nodes or horizontal ordinate identical with the ordinate or the horizontal ordinate of first node; As shown in Figure 4, because stroke 6 and stroke 7 handing-over, the outline line that need allow node 8 and node 9 constitute aligns with the outline line that node 10 and node 11 constitute, when carrying out the alignment of this outline line being benchmark to the coordinate parameters that finally font had the greatest impact, allow the coordinate figure of other point equate with this point coordinate value, as shown in Figure 4, because the Y coordinate of the outline line that node 8 and node 9 constitute is bigger to the font influence, therefore be reference point with node 8, the ordinate at node 8 places is a reference coordinate, and the coordinate parameters of other point is identical with the coordinate parameters of this reference point to get final product;
As shown in Figure 5, node 8,9,10,11 is added the instruction following (supposing that the sequence number of node in font is identical with number in the figure) of alignment mark:
// aligned instruction function
1 PUSHB[0] // aligned instruction function sequence number is 1
FDEF // definition aligned instruction function sequence number is 1
// function content, flow process is seen Fig. 5
ENDF
// call function n
SPVTCA[0]
9?10?11?8?PUSHB[3]
1?PUSHB[0]
CALL
2) as shown in Figure 6, if when the level of different strokes or vertical wheel profile are located on the same line and partially overlap in the stroke junction more than two, then all outline lines of stroke junction all need alignment.Many the outline line alignment is similar with two line segment alignment, selects a node to do reference point, and other point aligns with reference point.Among Fig. 6,12-17 is the node of outline line, because the Y coordinate of node 13 and 16 outline lines that constitute is bigger to the font influence, is reference point so select node 13 or 16, and other nodes 12,14,15,17 align with node 13 or 16.
In the present embodiment, when the stroke joint of no serif font in the character library and parts is alignd, in order to reduce the data volume of outline strokes, keep the font quality, stroke " folding " is split as " horizontal stroke ", " erecting " or " horizontal stroke ", " left-falling stroke ", and align in the stroke junction, can avoid complicated stroke to cause that the change of stroke weight causes the reduction of font quality when becoming times like this.
In the present embodiment, when the stroke joint of no serif font in the character library and parts is alignd, in order to reduce the data volume of character library, for reusing more radical (by " Jin " word) in the Chinese character, adopt the method for pre-combiner, promptly earlier become parts with stroke combination, as cast aside by stroke, horizontal and perpendicular carry etc. be combined into by the parts " Jin "; And then become Chinese character pattern with unit construction, as being combined into " iron " word, can improve repeat usage like this by " Jin " is other.For example, in actual character library, use more several parts: " Lv " used 860 times, and " wood " has used 666 times, and " Rolling " used 651 times,
Has used 439 times on the side.If the not pre-combination of these parts all use original stroke to be combined into these parts in each word, only these several parts will increase more than 8,000 time stroke and quote, and the word-base data amount is increased a lot.
As shown in Figure 3 and Figure 4, for no serif font stroke joint align before and the alignment after display effect be clearly.
Method of the present invention is not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other embodiment, belongs to technological innovation scope of the present invention equally.
Claims (8)
1. alignment schemes of not having serif font stroke joint may further comprise the steps:
(1) generate character library: the font in the described character library is no serif font, and font is formed by unit construction, and parts are formed by stroke combination;
(2) the stroke joint to no serif font and parts in the character library aligns, the method that adopts is: if two or more different stroke has handing-over, its junction contour edge has and joins and belong to collinear outline line, then the horizontal ordinate of the node of the outline line that should be alignd in the stroke junction or ordinate are made as equal, make it remain in collinear state, the node of described outline line is meant the end points of this outline line.
2. a kind of alignment schemes of not having serif font stroke joint as claimed in claim 1, it is characterized in that: in the step (1), described stroke is the figure of being described by coordinate points by TrueType font form, described parts are figures of being described by one group of stroke by TrueType composite glyph form, described font is by TrueType composite glyph form, the figure of being described by or one group of parts or stroke.
3. a kind of alignment schemes of not having serif font stroke joint as claimed in claim 1 is characterized in that: when the stroke joint of no serif font in the character library and parts is alignd, specifically adopt following method:
1) if when the level of two different strokes or vertical wheel profile are located on the same line and partially overlap in the stroke junction, when then two levels or vertical wheel profile being alignd, specify the ordinate or the horizontal ordinate of four nodes at two outline line two ends identical;
2) if when the level of different strokes or vertical wheel profile are located on the same line and partially overlap in the stroke junction more than two, then all outline lines of stroke junction all need alignment, select a node to do reference point, other node aligns with reference point.
4. a kind of alignment schemes of not having serif font stroke joint as claimed in claim 3, it is characterized in that: when the ordinate of four nodes at two outline line two ends of appointment or horizontal ordinate are identical in the step 1), at first specify the ordinate or the horizontal ordinate of one of them node when rasterisation, to point to nearest lattice point, specify the ordinate of other three nodes or horizontal ordinate identical then with the ordinate or the horizontal ordinate of first node.
5. a kind of alignment schemes of not having serif font stroke joint as claimed in claim 3, it is characterized in that: the node of the outline line that should have the greatest impact to font with position in the outline line that joins when the outline line of stroke junction is alignd is a reference point, and the node of other outline line aligns with this reference point.
6. a kind of alignment schemes of not having serif font stroke joint as claimed in claim 1 or 2, it is characterized in that: in the step (2), when the stroke joint of no serif font in the character library and parts is alignd, earlier stroke " folding " is split as " horizontal stroke ", " erecting " or " horizontal stroke ", " left-falling stroke ", aligns in the stroke junction then.
7. a kind of alignment schemes of not having serif font stroke joint as claimed in claim 1 or 2, it is characterized in that: in the step (2), when the no serif font stroke joint in the character library is alignd, for reusing more radical in the Chinese character, adopt the method for pre-combiner, promptly earlier become parts, and then become Chinese character pattern with unit construction with stroke combination.
8. a kind of alignment schemes of not having serif font stroke joint as claimed in claim 5, it is characterized in that: in the step (2), when the stroke joint of no serif font in the character library and parts is alignd, earlier stroke " folding " is split as " horizontal stroke ", " erecting " or " horizontal stroke ", " left-falling stroke ", aligns in the stroke junction then; For reusing more radical in the Chinese character, adopt the method for pre-combiner, promptly earlier become parts, and then become Chinese character pattern with unit construction with stroke combination.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101147418A CN100435140C (en) | 2006-11-22 | 2006-11-22 | A align method at junction of no serif font stroke |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2006101147418A CN100435140C (en) | 2006-11-22 | 2006-11-22 | A align method at junction of no serif font stroke |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1952924A CN1952924A (en) | 2007-04-25 |
CN100435140C true CN100435140C (en) | 2008-11-19 |
Family
ID=38059270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2006101147418A Expired - Fee Related CN100435140C (en) | 2006-11-22 | 2006-11-22 | A align method at junction of no serif font stroke |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100435140C (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100476799C (en) * | 2007-06-15 | 2009-04-08 | 中国科学院软件研究所 | Method for detecting standard property of grapheme in character library |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1103970C (en) * | 1995-10-12 | 2003-03-26 | 夏普公司 | Character pattern generator |
CN1159666C (en) * | 2002-03-29 | 2004-07-28 | 上海汉峰信息科技有限公司 | Curved font described with stroke center line as datum for embedding application |
-
2006
- 2006-11-22 CN CNB2006101147418A patent/CN100435140C/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1103970C (en) * | 1995-10-12 | 2003-03-26 | 夏普公司 | Character pattern generator |
CN1159666C (en) * | 2002-03-29 | 2004-07-28 | 上海汉峰信息科技有限公司 | Curved font described with stroke center line as datum for embedding application |
Also Published As
Publication number | Publication date |
---|---|
CN1952924A (en) | 2007-04-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100435139C (en) | Method for aligning unit lattice specific symbol | |
CN104461519B (en) | A kind of flow chart dynamic generation and the method for control of authority | |
CN102147790B (en) | Text type-setting method and type-setting engine | |
CN102830947A (en) | Report printing control implemented based on report printing template format | |
CN101968814A (en) | Dot matrix font manufacturing method | |
CN100435140C (en) | A align method at junction of no serif font stroke | |
CN103488441B (en) | The implementation method that a kind of Arabic is printed on POS machine | |
CN100552670C (en) | A kind of method of automatic discriminating digit document type page | |
CN106406560A (en) | Method and system for outputting vector fonts of mechanical engineering characters in desktop operation system | |
CN101996309B (en) | Method and relevant device for identifying and transforming stroke contour | |
CN103489268B (en) | A kind of Arabic display packing for POS platform | |
CN101286146A (en) | Typesetting method and system | |
CN101957837B (en) | Method for accessing stroke vector font | |
CN101996192B (en) | Word stock combining method and system | |
CN103559271A (en) | Method for generating bitmap font library with gray level | |
US5883637A (en) | Kerning method and a typographic apparatus utilizing same | |
CN101944237B (en) | Method for drawing curve text of label | |
CN112380826A (en) | Formatted electronic form generation method based on text file | |
CN105425979A (en) | Method for realizing robot anthropomorphic writing | |
CN207044878U (en) | Type printing letter disk | |
CN102254204A (en) | Coding and decoding method for graphemic code | |
CN101219621A (en) | Method for zooming Chinese character image | |
CN203831930U (en) | Digital printing structure applicable to small-size rotary printing machine and digital rotary printing machine | |
CN111459423A (en) | Method for determining optimal borrowing position of printing plate combination by using pixel collision method | |
CN101419638B (en) | Formed punch parts, and system and method for generating holes corresponding to the formed punch parts on punch template |
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 | ||
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: 20081119 Termination date: 20191122 |