CN1975711A - Method for making word composing along curve - Google Patents

Method for making word composing along curve Download PDF

Info

Publication number
CN1975711A
CN1975711A CNA200610165260XA CN200610165260A CN1975711A CN 1975711 A CN1975711 A CN 1975711A CN A200610165260X A CNA200610165260X A CN A200610165260XA CN 200610165260 A CN200610165260 A CN 200610165260A CN 1975711 A CN1975711 A CN 1975711A
Authority
CN
China
Prior art keywords
literal
line
line segment
along
type
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.)
Granted
Application number
CNA200610165260XA
Other languages
Chinese (zh)
Other versions
CN100589097C (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.)
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN200610165260A priority Critical patent/CN100589097C/en
Publication of CN1975711A publication Critical patent/CN1975711A/en
Application granted granted Critical
Publication of CN100589097C publication Critical patent/CN100589097C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention involves a character typesetting method along curves, belonging to printing and typesetting area. The method described in the invention is: first, use common typesetting rules to lay characters into a rectangular block which is sufficiently high with length equals to the length of a curve; then, transform those characters to the curve through the coordinates mapping, and calculate rotation angles for text output.

Description

A kind of character typesetting method along curves
Technical field
The invention belongs to field of printing and typesetting technology, be specifically related to a kind of character typesetting method along curves.
Background technology
Along with the develop rapidly of printing industry, the raising of people's aesthetic standards, also more and more higher to the requirement of the artistry effect of literal output, setting type along curve is exactly wherein a kind of practical and attractive text composition effect.What is called is set type along curve, allows delegation's literal export by curvilinear path exactly, to reach active lively composing effect.
At present, in the print publishing industry, realize that along the line the composing mainly contains following dual mode:
1. manual adjustment
Usually the designer can draw a curve in advance, then by manual setting, with word output of word of literal, text point, size, the anglec of rotation, color is set then.This has not only increased workload greatly, and can't guarantee the correctness and the aesthetic property of effect.If such as realize the effect of text color gradual change, then can't quantize the color of each literal.
2. adjust automatically
Part print publishing software has been released composing function along the line, can allow literal one by one by the output of certain bar curvilinear path.But this mode is just treated as a solid square with literal, does not consider the composing rule between literal, and the composing effect can not be fully up to expectations.And various special artistic effects further are not provided after simple composing function is provided, and practicality is not high, at last often still need be by manual adjustment.
Therefore, in the present circumstance, also there are not a kind of practical ways to realize along the line the composing, existing mode or waste time and energy, perhaps effect can't be satisfactory.
Summary of the invention
The objective of the invention is at the defective that exists in the prior art, a kind of character typesetting method along curves is provided, can save time, the labour-saving exports literal by curvilinear path, and can realize gratifying text composition effect and the various character art effects of being extended by composing along the line.
For reaching above purpose, the technical solution used in the present invention is: a kind of character typesetting method along curves may further comprise the steps:
1) high according to length of curve and row, construct a rectangular area, literal is drained in this rectangular area according to common composing rule;
2), be mapped to certain position on the curve according to the position of literal in the rectangular area;
3), calculate the anglec of rotation of literal according to the position of literal on curve.
Further, after composing is finished, calculate the change color amount, and calculate the Show Color of each literal, realize the color gradient that the user is provided with according to the literal number.
Further, in the step (1), calculate the change frequency of character script earlier, revise the character script size, set type again, realize the font size gradual change that the user is provided with.
In step (1),, corresponding composing rule is set is horizontally-arranged at the composing effect of arch or ladder; At the composing effect of kite, corresponding composing rule is set is vertical setting of types.
Further, in the step (2), the process of mapping is as follows: according to text point, curve, type-setting mode along the line and literal size, calculate the line segment L of a location literal display position and mistake value of cutting of literal; When type-setting mode along the line is arch form, the literal normal translation row height of section L is along the line deducted the output distance of word in Y-axis; When type-setting mode along the line is kite, that half row of normal translation in the other direction of literal section along the line L is high and in the output distance of Y-axis; When type-setting mode along the line was ladder, to the wide distance of half word of tangential direction translation, again to the wide distance of half word of left, upwards translation row height deducted the output distance of word in Y-axis at last with literal section along the line L.The upper left corner of literal is the outgoing position of literal.
In step (2), the method of calculating the line segment L of a location literal display position is, curve is changed into many broken lines, according to the position of literal on curve, find literal to be positioned at that line segment, this line segment is blocked from the reference position of literal, as the line segment L of location literal display position; Can not hold literal down when the length of line segment L, find next bar line segment L ' of adjacency earlier, go up shared length ratio according to literal at L and L ', calculate the anglec of rotation of L, formula is as follows:
α=α 1+(l 2/w)*(α 21)
Wherein w represents the width of word, l 2The expression word is gone up shared length, α at line segment L ' 1The angle of expression line segment L, α 2The angle of expression line segment L ', α is the anglec of rotation of L.
With the position of intersecting point rotation alpha of line segment L at L and L ', postrotational line segment L " be exactly the line segment of locating the literal display position.
In the step (2), mistake value of cutting of literal is the angle of inclination of the line segment L of location literal display position.
Further, according to type-setting mode along the line, the anglec of rotation of calculation procedure (3) Chinese words.
When type-setting mode along the line was arch form, the anglec of rotation was the angle of inclination negative value of line segment L; When type-setting mode along the line was kite, the anglec of rotation was that the angle of inclination negative value of line segment L adds that (π is a circular constant 3.1415926 to pi/2 ...); When type-setting mode along the line was ladder, the anglec of rotation was always 0.
Effect of the present invention is: adopt method of the present invention, can quickly and easily literal be set type along curvilinear path, and keep real composing effect.On this basis, the user can also be provided with arch, kite, ladder composing effect and character art effects such as mistake is cut, color gradient, font size gradual change.
Description of drawings
Fig. 1 is the process flow diagram of the method for the invention embodiment;
Fig. 2 is set type the along the line arch and the preceding composing design sketch in the rectangular area of setting type;
Fig. 3 is the kite design sketch of setting type along the line;
Fig. 4 is the ladder design sketch of setting type along the line;
Fig. 5 is the font size fade effect figure that sets type along the line;
Fig. 6 is the color gradient design sketch of setting type along the line;
Fig. 7 is that the mistake of setting type is along the line cut design sketch;
Curve changed into the design sketch of broken line when Fig. 8 was composing;
Fig. 9 is amplification (a 250%) synoptic diagram of asking the line segment of location literal display position in the process of typeset along the line;
When being arch form, calculates Figure 10 the design sketch (amplifying 200%) of literal outgoing position and rotation;
When being kite, calculates Figure 11 the design sketch (amplifying 200%) of literal outgoing position and rotation;
When being ladder, calculates Figure 12 the design sketch (amplifying 200%) of literal outgoing position.
Embodiment
Below in conjunction with embodiment and accompanying drawing, the invention will be further elaborated:
As shown in Figure 1, a kind of character typesetting method along curves may further comprise the steps:
1. as shown in Figure 2.Have a relative coordinate system, this coordinate origin is to the right an x axle positive dirction in the upper left corner, is downwards y axle positive dirction.
According to length of a curve 120mm, the high 20mm of word, construct a rectangular area (left side: 0mm, on: 0mm, the right side: 120mm, down: 20mm).Then literal is drained in this rectangular area according to common composing rule.
This rectangular area is an invisible medium object in setting type, and literal enters this zone earlier, and then is mapped on the curve, has just no longer existed after composing is finished.
If the user be provided with kite the composing effect, then before doing common composing rule, the rule of setting type is set is vertical setting of types.
2. common composing according to the position of literal in the rectangular area, is mapped to certain position on the curve after finishing.With second " just " is example:
1) the long 20mm of literal, high 20mm, outgoing position are that (20mm, 0mm), according to curve, type-setting mode along the line at first calculates a line segment L who locatees the literal display position.
A) as shown in Figure 8, curve is changed into many broken lines, each point coordinate of broken line be (0mm, 32.20mm), (5.72mm, 24.69mm), (11.55mm, 18.17mm), (17.47mm, 12.64mm) ...
B) as shown in Figure 9, the x axle outgoing position of " just " word is 20mm, is mapped on the broken line, is the p2 ' (12.87,16.93) of the 3rd line segment of broken line, therefore obtain locating the line segment L2 that literal shows (p2 ', p3).
C) length of line segment L2 is 6.29mm, can't hold " just " word (20mm is wide) down.Therefore need construct a new line segment according to next adjacent bar line segment of L2.Next bar line segment adjacent with L1 be L3 ' (p3, p4).Because the length of L3 ' also can't be held the remainder of " just " word down, therefore along long L3 ', obtains new line segment L3 (p3, p4 ').The angle of L2 is-0.75 (radian), and length is 6.29mm; The angle of L3 is-0.65, and length is 13.71mm.Length ratio according to L2 and L3, the angle of new line segment is-0.68, and at position of intersecting point p3 dextrorotation gyration 0.07, line segment L3 is rotated counterclockwise angle 0.03 at position of intersecting point p3 with line segment L2, (p11 p12) is exactly the line segment of locating the literal display position to postrotational line segment L '.
2) as shown in Figure 7, the user is provided with mistake and cuts effect (effect of literal inclination certain angle).Mistake value of cutting of literal is the angle of inclination of the line segment L of location literal display position, promptly-0.68, therefore when display text, mistake value of cutting of literal is set to-0.68.
3) outgoing position of calculating literal, step is as follows:
A) shown in the left figure among Figure 10, type-setting mode is an arch form.Shown in the middle graph of Figure 10, the literal normal translation row height (20mm) of section L is along the line deducted the length of word in the output distance (0mm) of Y-axis.After the translation, (0.00mm 1.05mm) is the literal outgoing position to the upper left point of literal.
B) shown in the left figure among Figure 11, type-setting mode is a kite.Shown in the middle graph of Figure 11, with the normal translation in the other direction word of literal section along the line L at the outgoing position (0mm) of Y-axis and half capable rise from (10mm), (18.87mm 24.37mm) is the literal outgoing position to the upper left point of literal.
C) shown in the picture left above among Figure 12, type-setting mode is a ladder.Shown in the top right plot among Figure 12, with half word width of tangential direction translation of literal section along the line from (10mm).Shown in the lower-left figure among Figure 12, with literal to half word of left wide (10mm).Shown in the bottom-right graph among Figure 12, upwards translation row height (20mm) deducts the output distance (0mm) of word in Y-axis again.This moment literal upper left point (10.35mm ,-9.68mm), be the literal outgoing position.
3. according to the position of literal on curve, calculate the anglec of rotation of literal.
1) shown in the rightmost figure among Figure 10, type-setting mode along the line is an arch form, and the anglec of rotation is the angle of inclination negative value (0.68) of line segment L.
2) shown in the rightmost figure among Figure 11, type-setting mode along the line is a kite, and the anglec of rotation is that the angle of inclination negative value of line segment L adds pi/2 (2.25).
3) shown in the bottom-right graph among Figure 12, type-setting mode along the line is a ladder, and the anglec of rotation is always 0.
4. as shown in Figure 6, after composing was finished, the user was provided with color gradient, and literal is gradient to 18% gray color from the black of first word.Then calculate the change color amount according to the literal number, and calculate the Show Color of each literal, be respectively " side " (black), " just " (84% gray color), " fly " (67% gray color), " rise " (51% gray color), " wound " (gray color of 34%), " skill " (gray color of 18%).
5. as shown in Figure 5, the user is provided with the font size gradual change, the initial size of font size be (10mm, 10mm), the terminal point size be (30mm, 30mm), gradual manner is unidirectional gradual change, the change frequency of character script is (4mm, 4mm), therefore revise the character script size, set type again.
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 (14)

1. character typesetting method along curves may further comprise the steps:
(1) high according to length of curve and row, construct a rectangular area, literal is drained in this rectangular area according to common composing rule;
(2), be mapped to certain position on the curve according to the position of literal in the rectangular area;
(3), calculate the anglec of rotation of literal according to the position of literal on curve.
2. a kind of character typesetting method along curves as claimed in claim 1 is characterized in that: after composing is finished, calculate the change color amount according to the literal number, and calculate the Show Color of each literal, realize the color gradient that the user is provided with.
3. a kind of character typesetting method along curves as claimed in claim 1 or 2 is characterized in that: in step (1), calculate the change frequency of character script earlier, revise the character script size, set type, realize the font size gradual change that the user is provided with.
4. a kind of character typesetting method along curves as claimed in claim 1 or 2 is characterized in that: in step (1), at the composing effect of arch or ladder, corresponding composing rule is set is horizontally-arranged; At the composing effect of kite, corresponding composing rule is set is vertical setting of types.
5. a kind of character typesetting method along curves as claimed in claim 1 or 2, it is characterized in that: in the step (2), the process of mapping is as follows: according to text point, curve, type-setting mode along the line and literal size, calculate the line segment L of a location literal display position and mistake value of cutting of literal; Then, according to type-setting mode along the line, with literal section along the line L translation respective distance, the starting point of line segment L is the literal outgoing position.
6. a kind of character typesetting method along curves as claimed in claim 5 is characterized in that: when type-setting mode along the line is arch form, the literal normal translation row height of section L is along the line deducted the output distance of word in Y-axis.
7. a kind of character typesetting method along curves as claimed in claim 5 is characterized in that: when type-setting mode along the line is kite, that half row of normal translation in the other direction of literal section along the line L is high and in the output distance of Y-axis.
8. a kind of character typesetting method along curves as claimed in claim 5, it is characterized in that: when type-setting mode along the line is ladder, with literal section along the line L to the wide distance of half word of tangential direction translation, to the wide distance of half word of left, upwards translation row height deducts the output distance of word in Y-axis at last again.
9. a kind of character typesetting method along curves as claimed in claim 5, it is characterized in that: the method for calculating the line segment L of a location literal display position is, curve is changed into many broken lines, according to the position of literal on curve, find literal to be positioned at that line segment, this line segment is blocked from the reference position of literal, as the line segment L of location literal display position.
10. a kind of character typesetting method along curves as claimed in claim 9, it is characterized in that: when the length of line segment L can not hold to descend literal, find next bar line segment L ' of adjacency earlier, go up shared length ratio at L and L ' according to literal, calculate the anglec of rotation of L, formula is as follows:
α=α 1+(l 2/w)*(α 21)
Wherein w represents the width of word, l 2The expression word is gone up shared length, α at line segment L ' 1The angle of expression line segment L, α 2The angle of expression line segment L ', α is the anglec of rotation of L;
With the position of intersecting point rotation alpha of line segment L at L and L ', postrotational line segment L " be exactly the line segment of locating the literal display position.
11. a kind of character typesetting method along curves as claimed in claim 5 is characterized in that: mistake value of cutting of literal is the angle of inclination of the line segment L of location literal display position.
12. a kind of character typesetting method along curves as claimed in claim 5 is characterized in that: according to type-setting mode along the line, the anglec of rotation of calculation procedure (3) Chinese words, when type-setting mode along the line was arch form, the anglec of rotation was the angle of inclination negative value of line segment L.
13. a kind of character typesetting method along curves as claimed in claim 5, it is characterized in that: according to type-setting mode along the line, the anglec of rotation of calculation procedure (3) Chinese words, when type-setting mode along the line was kite, the anglec of rotation was that the angle of inclination negative value of line segment L adds pi/2.
14. a kind of character typesetting method along curves as claimed in claim 5 is characterized in that: according to type-setting mode along the line, the anglec of rotation of calculation procedure (3) Chinese words, when type-setting mode along the line was ladder, the anglec of rotation was always 0.
CN200610165260A 2006-12-15 2006-12-15 A kind of character typesetting method along curves Expired - Fee Related CN100589097C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610165260A CN100589097C (en) 2006-12-15 2006-12-15 A kind of character typesetting method along curves

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610165260A CN100589097C (en) 2006-12-15 2006-12-15 A kind of character typesetting method along curves

Publications (2)

Publication Number Publication Date
CN1975711A true CN1975711A (en) 2007-06-06
CN100589097C CN100589097C (en) 2010-02-10

Family

ID=38125784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610165260A Expired - Fee Related CN100589097C (en) 2006-12-15 2006-12-15 A kind of character typesetting method along curves

Country Status (1)

Country Link
CN (1) CN100589097C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521212A (en) * 2011-12-22 2012-06-27 北京新媒传信科技有限公司 Method and system for text display change
CN101944078B (en) * 2009-07-06 2013-01-23 佳能株式会社 Typesetting method and device thereof
CN104410798A (en) * 2014-11-07 2015-03-11 北京东方艾迪普科技发展有限公司 Text feature parameter processing method and equipment
CN104516866A (en) * 2013-09-26 2015-04-15 北大方正集团有限公司 Text along-line typesetting method
WO2016020929A1 (en) * 2014-08-08 2016-02-11 Hewlett-Packard Development Company, L.P. Truncation point selection
CN107291669A (en) * 2016-03-30 2017-10-24 北京天威诚信电子商务服务有限公司 The electronic composition method and device that a kind of word is divided equally along oval circular arc
CN107544737A (en) * 2017-08-24 2018-01-05 网易(杭州)网络有限公司 Method for information display, medium, system and computing device
CN107608671A (en) * 2017-08-22 2018-01-19 北京京东尚科信息技术有限公司 A kind of method and apparatus for realizing text color gradual change
CN113221510A (en) * 2021-04-20 2021-08-06 北京邮电大学 Special-shaped character typesetting input device and method based on touch control and sound control

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101944078B (en) * 2009-07-06 2013-01-23 佳能株式会社 Typesetting method and device thereof
CN102521212A (en) * 2011-12-22 2012-06-27 北京新媒传信科技有限公司 Method and system for text display change
CN104516866A (en) * 2013-09-26 2015-04-15 北大方正集团有限公司 Text along-line typesetting method
CN104516866B (en) * 2013-09-26 2017-10-20 北大方正集团有限公司 The method of typesetting along word
WO2016020929A1 (en) * 2014-08-08 2016-02-11 Hewlett-Packard Development Company, L.P. Truncation point selection
CN104410798A (en) * 2014-11-07 2015-03-11 北京东方艾迪普科技发展有限公司 Text feature parameter processing method and equipment
CN107291669A (en) * 2016-03-30 2017-10-24 北京天威诚信电子商务服务有限公司 The electronic composition method and device that a kind of word is divided equally along oval circular arc
CN107608671A (en) * 2017-08-22 2018-01-19 北京京东尚科信息技术有限公司 A kind of method and apparatus for realizing text color gradual change
CN107544737A (en) * 2017-08-24 2018-01-05 网易(杭州)网络有限公司 Method for information display, medium, system and computing device
CN107544737B (en) * 2017-08-24 2020-08-04 网易(杭州)网络有限公司 Information display method, medium, system and computing device
CN113221510A (en) * 2021-04-20 2021-08-06 北京邮电大学 Special-shaped character typesetting input device and method based on touch control and sound control

Also Published As

Publication number Publication date
CN100589097C (en) 2010-02-10

Similar Documents

Publication Publication Date Title
CN1975711A (en) Method for making word composing along curve
CN101075349A (en) Method for demonstrating cartoon effect in SVG
CN1828580B (en) Rectangular array words frame layout method for fitting word content
CN100435139C (en) Method for aligning unit lattice specific symbol
CN103353863A (en) Text template generating method
CN101064007A (en) Digital correction method for geometric distortion of form image
CN1558340A (en) Typesetting method
CN101021841B (en) Method for automatic adding slur control line format filling in Uigur type-setting
CN101031023A (en) Method and system for processing image
CN101183358A (en) Typesetting method and apparatus
CN1604074A (en) Method for determining words reading sequence for columned serial words pages with mutually exclusive pattern and characters
CN101577068A (en) Method and device for allocating facet element mark based on visual center
CN1920811A (en) Character typesetting method
CN1737809A (en) Finger knitting auxiliary method using computer drawing
CN102173180A (en) Manufacturing method of high-definition gravure wood grain printing plate roller
CN109740141A (en) A method of typesetting beautification is carried out to text based on canvas
CN100580663C (en) Method and apparatus for automatic typesetting
CN101937569A (en) Character laydown method and system
CN1821995A (en) Typesetting method suitable for straight side literal frame of literal content
CN101140567B (en) Method and system for realizing typeset horizontally to portion words in vertical typeset words stream
CN1536821A (en) Equipment capable of making equipment logging interface implement hynamic arrangement and its method
CN104516866B (en) The method of typesetting along word
CN1121005C (en) Chinese character coding input method for computer
CN1104790A (en) Enlargement of characters by sample function curves
CN1525396A (en) A distortion correction method for lens imaging

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

Granted publication date: 20100210

Termination date: 20191215

CF01 Termination of patent right due to non-payment of annual fee