CN101944237A - Method for drawing curve text of label - Google Patents

Method for drawing curve text of label Download PDF

Info

Publication number
CN101944237A
CN101944237A CN 201010519129 CN201010519129A CN101944237A CN 101944237 A CN101944237 A CN 101944237A CN 201010519129 CN201010519129 CN 201010519129 CN 201010519129 A CN201010519129 A CN 201010519129A CN 101944237 A CN101944237 A CN 101944237A
Authority
CN
China
Prior art keywords
character
curve
literal
angle
height
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
CN 201010519129
Other languages
Chinese (zh)
Other versions
CN101944237B (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.)
Jiangsu Keda Huifeng Science & Technology Co., Ltd.
Original Assignee
ZHENJIANG KEDA CHUANYUAN COMPUTER NETWORK ENGINEERING 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 ZHENJIANG KEDA CHUANYUAN COMPUTER NETWORK ENGINEERING Co Ltd filed Critical ZHENJIANG KEDA CHUANYUAN COMPUTER NETWORK ENGINEERING Co Ltd
Priority to CN2010105191295A priority Critical patent/CN101944237B/en
Publication of CN101944237A publication Critical patent/CN101944237A/en
Application granted granted Critical
Publication of CN101944237B publication Critical patent/CN101944237B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a method for drawing the curve text of a label, comprising the following steps of: determining the starting height and the termination height of the curve text; merging the curve text to a character string s; determining the rotation direction of the curve text; circularly obtaining each character in the character string s by using a Get function, recording the characters in a one-dimensional array and obtaining an array length; calculating the actual deflection angle of each character according to the starting height, the termination height and the array length; calculating the actual height of each character according to the starting height and the termination height of the text and the array length; calculating the rotation angle of each character according to the rotation direction and the deflection angle; calculating the positioning point of each character according to the center of a circle and the radius of the path arc of the curve text and the deflection angle of each character; drawing on the positioning points one by one according to the height of each character and character parameters; and rotating according to the rotation angle of each character. The method solves the problem of inaccurate positioning of manual operation on drawing the curve text.

Description

Label curve literal method for drafting
Technical field
The present invention relates to a kind of label method for drafting, relate in particular to a kind of label curve literal method for drafting, belong to printing technology.
Background technology
Along with computing machine popularizing in factory, more and more enterprises uses CAD software to draw, in the sign manufacturing technological process of label factory, the general label figure that will need to make with the CAD mapping software is earlier drawn good in computing machine and preservation, the file layout that then the label graphic file is converted to the laser photocomposing machine compatibility outputs to film setter, and film setter prints the laggard rower board of film to be manufactured.
Prior art has been done some improvement to the label method for drafting, generally be based on the AutoCAD mapping software, draw comment in label and the label with the method for the parameters of input label circular arc, scale mark, scale value, improved work efficiency on the original basis.But having some comments in the label is curve literal, requires to show that along certain circular arc what the font height of curve literal had will seek unification, and the requirement that has from big to small or gradual from small to large variation.Bother very much when drawing the curve literal of highly gradual variation in AutoCAD software, character is drawn one by one one by one, manual again its position of adjusting one by one.So draughtsman's workload is very big when drawing label curve literal at present owing to staff's manual operations, work efficiency is not high.Simultaneously, utilize manual location to cause the curve literal to draw the out of true of position, label is drawn the quality of making and be can not get guaranteeing.
Summary of the invention
The object of the present invention is to provide a kind of label curve literal method for drafting, solving the curve plotting literal needs manual operations to cause that draughtsman's workload is big, work efficiency is not high, and the location causes the curve literal to draw the position out of true by hand, influences the problem of label quality.
Figure 36633DEST_PATH_IMAGE001
Purpose of the present invention is achieved by the following technical programs:
A kind of label curve literal method for drafting may further comprise the steps:
(1) determines and the center of circle, radius, start angle, the termination point of input path, label curve literal place arc;
(2) text style of trade-off curve literal, input text font starting altitude h1, termination height h2;
(3) the curve word content that will draw is inserted among the character string s;
(4) determine the sense of rotation of curve literal, from vertical, to the center of circle, oppositely the center of circle and self-defined selection a kind of;
(5) obtain each character of character string s and record one-dimension array S[n by the circulation of Get function] in, n is the capacity of one-dimension array, and obtains array length length;
(6) calculate the actual deflection angle angle of each character in the array respectively according to start angle, termination point, array length length;
(7) according to initial font height h1, stop the true altitude h[i that height h2, array length length calculate each character in the array respectively];
(8) sense of rotation and the deflection angle according to the front calculates each character S[i respectively] the anglec of rotation and preserve;
(9) the deflection angle angle according to the center of circle, radius and each character of the path arc of curve literal calculates this character actual location point respectively, this anchor point be each character upper left angle point Point2d (x, y);
(10) according to the height h[i of each character], font parameter with the mode of multirow literal character locating put Point2d (x y) draws array S[n one by one on the position] each element S [i];
(11) according to the anglec of rotation parameter of each character each character is rotated corresponding angle respectively, the curve literal is completed.
Purpose of the present invention can also further realize by following technical measures:
A kind of label curve literal method for drafting, the anglec of rotation to center of circle mode in the described step (8) is that deflection angle subtracts 90 degree, oppositely the anglec of rotation of center of circle mode is that deflection angle adds 90 degree, vertical mode and self-defined mode need not be calculated, vertical mode is 90 degree, and self-defined angle is the anglec of rotation.
Compared with prior art, the invention has the beneficial effects as follows: having solved the curve literal that existing label rendering technique rendered fonts height do not wait needs manual operation, curve literal one by one locate coarse technical matters, reduce the drafting time, improved work efficiency, guaranteed the sign manufacturing quality.
Description of drawings
Fig. 1 is an embodiment master drawing of label curve literal;
Fig. 2 process flow diagram of the present invention.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
As shown in Figure 1, the label curve text parameter that present embodiment will be drawn is as follows: curve type path arc central coordinate of circle (0,0), radius 50mm, start angle 220 degree, termination point 320 degree, word content " the professional enterprise of Chinese sign manufacturing ", font is an imitation Song-Dynasty-Style typeface, and sense of rotation is the reverse center of circle, the literal height from 10mm to 20mm equal difference gradual change.
The present invention draws out the label of curve literal automatically for the parameters of curve literal in the energy Identifiaction plates, utilizes ObjectARX2008 to carry out secondary development at AutoCAD2008, has improved existing label method for drafting, and as shown in Figure 2, concrete steps are:
(1) determines and home position, radius, start angle, the termination point of input path, label curve literal place arc, be specially central coordinate of circle (0,0), radius 50mm, start angle 220 degree, termination point 320 degree;
(2) text style of trade-off curve literal is an imitation Song-Dynasty-Style typeface, input text font starting altitude h1=10mm, termination height h2=20mm;
(3) the curve word content that will draw " the professional enterprise of Chinese sign manufacturing " is inserted among the character string s;
(4) determine the sense of rotation of curve literal, from vertical, to the center of circle, oppositely the center of circle and self-defined selection a kind of, present embodiment is the reverse center of circle;
(5) obtain each character of character string s and record one-dimension array S[n by the circulation of Get function] in, n is the capacity of one-dimension array, and obtains array length length, the present embodiment array length is 10;
(6) calculate the actual deflection angle angle of each character in the array respectively according to start angle, termination point, array length length, the deflection angle difference of adjacent two characters is: (termination point-start angle) ÷ (array length-1);
(7) according to initial font height 10mm, stop the true altitude h[i that height 20mm, array length 10 calculate each character in the array respectively], to 20mm equal difference gradual change, the difference of two adjacent literal height is: (20-10) ÷ 9 from 10mm for present embodiment literal height;
(8) sense of rotation and the deflection angle according to the front calculates each character S[i respectively] the anglec of rotation and preserve, the anglec of rotation of the reverse center of circle of present embodiment mode is that deflection angle adds 90 degree;
(9) the deflection angle angle according to the center of circle, radius and each character of the path arc of curve literal calculates this character actual location point respectively, this anchor point be actually each character upper left angle point Point2d (x, y);
(10) according to the height h[i of each character], font parameter with the mode of multirow literal among the CAD character locating put Point2d (x y) draws array S[n one by one on the position] each element S [i];
(11) according to the anglec of rotation parameter of each character each character is rotated corresponding angle respectively, the curve literal is completed.
Next can carry out the drafting of label other parts, carry out color separation and makeup again, use film setter to print to publish picture after the plate-making flow process is finished and print.
In addition to the implementation, the present invention can also have other embodiments, and all employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop in the protection domain of requirement of the present invention.

Claims (2)

1. a label curve literal method for drafting is characterized in that, may further comprise the steps:
(1) determines and the center of circle, radius, start angle, the termination point of input path, label curve literal place arc;
(2) text style of trade-off curve literal, input text font starting altitude h1, termination height h2;
(3) the curve word content that will draw is inserted among the character string s;
(4) determine the sense of rotation of curve literal, from vertical, to the center of circle, oppositely the center of circle and self-defined selection a kind of;
(5) obtain each character of character string s and record one-dimension array S[n by the circulation of Get function] in, n is the capacity of one-dimension array, and obtains array length length;
(6) calculate the actual deflection angle angle of each character in the array respectively according to start angle, termination point, array length length;
(7) according to initial font height h1, stop the true altitude h[i that height h2, array length length calculate each character in the array respectively];
(8) sense of rotation and the deflection angle according to the front calculates each character S[i respectively] the anglec of rotation and preserve;
(9) the deflection angle angle according to the center of circle, radius and each character of the path arc of curve literal calculates this character actual location point respectively, this anchor point be each character upper left angle point Point2d (x, y);
(10) according to the height h[i of each character], font parameter with the mode of multirow literal character locating put Point2d (x y) draws array S[n one by one on the position] each element S [i];
(11) according to the anglec of rotation parameter of each character each character is rotated corresponding angle respectively, the curve literal is completed.
2. label curve literal method for drafting as claimed in claim 1, it is characterized in that, the anglec of rotation to center of circle mode in the described step (8) is that deflection angle subtracts 90 degree, oppositely the anglec of rotation of center of circle mode is that deflection angle adds 90 degree, vertical mode and self-defined mode need not be calculated, vertical mode is 90 degree, and self-defined angle is the anglec of rotation.
CN2010105191295A 2010-10-26 2010-10-26 Method for drawing curve text of label Expired - Fee Related CN101944237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105191295A CN101944237B (en) 2010-10-26 2010-10-26 Method for drawing curve text of label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105191295A CN101944237B (en) 2010-10-26 2010-10-26 Method for drawing curve text of label

Publications (2)

Publication Number Publication Date
CN101944237A true CN101944237A (en) 2011-01-12
CN101944237B CN101944237B (en) 2012-01-04

Family

ID=43436217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105191295A Expired - Fee Related CN101944237B (en) 2010-10-26 2010-10-26 Method for drawing curve text of label

Country Status (1)

Country Link
CN (1) CN101944237B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184300A (en) * 2011-05-23 2011-09-14 镇江科大船苑计算机网络工程有限公司 Label rectangular graph computer produced drawing method
CN110648381A (en) * 2019-09-30 2020-01-03 北京金山安全软件有限公司 Character string display method and device, terminal equipment and storage medium
CN112070082A (en) * 2020-08-24 2020-12-11 西安理工大学 Curve character positioning method based on instance perception component merging network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0657307A1 (en) * 1993-12-06 1995-06-14 Fiskars Inc. Measuring and drawing instrument
EP1807625B1 (en) * 2004-09-20 2008-11-12 Maso Process-Pumpen GmbH Vane pump consisting a two-part stator
CN101625712A (en) * 2009-08-12 2010-01-13 镇江科大船苑计算机网络工程有限公司 Computer plotting system and computer plotting method for making signssigns
CN101833600A (en) * 2010-04-15 2010-09-15 镇江科大船苑计算机网络工程有限公司 Sign manufacturing computer drawing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0657307A1 (en) * 1993-12-06 1995-06-14 Fiskars Inc. Measuring and drawing instrument
EP1807625B1 (en) * 2004-09-20 2008-11-12 Maso Process-Pumpen GmbH Vane pump consisting a two-part stator
CN101625712A (en) * 2009-08-12 2010-01-13 镇江科大船苑计算机网络工程有限公司 Computer plotting system and computer plotting method for making signssigns
CN101833600A (en) * 2010-04-15 2010-09-15 镇江科大船苑计算机网络工程有限公司 Sign manufacturing computer drawing method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184300A (en) * 2011-05-23 2011-09-14 镇江科大船苑计算机网络工程有限公司 Label rectangular graph computer produced drawing method
CN102184300B (en) * 2011-05-23 2012-12-05 镇江科大船苑计算机网络工程有限公司 Label rectangular graph computer drawing method
CN110648381A (en) * 2019-09-30 2020-01-03 北京金山安全软件有限公司 Character string display method and device, terminal equipment and storage medium
CN112070082A (en) * 2020-08-24 2020-12-11 西安理工大学 Curve character positioning method based on instance perception component merging network
CN112070082B (en) * 2020-08-24 2023-04-07 西安理工大学 Curve character positioning method based on instance perception component merging network

Also Published As

Publication number Publication date
CN101944237B (en) 2012-01-04

Similar Documents

Publication Publication Date Title
CN109033571A (en) Automatic Drawing module and drawing practice based on CAD
CN102831259B (en) Automatic generation method of drawing for three-dimensional concrete structural reinforcement
CN104571977A (en) Report printing method and system based on HTML (Hyper Text Markup Language) template
CN101046892B (en) Graphics-rendering apparatus
CN108090037B (en) Automatic typesetting method and device
CN101944237B (en) Method for drawing curve text of label
CN103136184A (en) Automatic typesetting method and automatic typesetting device
CN110321542A (en) Method for batch drawing of survey drawings by using excel editing CAD (computer-aided design) commands
CN108986638A (en) A kind of method of sea chart thematic map rapid drafting
CN110246203A (en) A method of digital line is drawn based on striograph and draws topographic map
CN105921888B (en) It is a kind of to seek the method that is cut by laser again of side skew using CCD
CN102184300B (en) Label rectangular graph computer drawing method
CN102073768A (en) Automatic arch dam pouring block plotting device and plotting method
CN108038281A (en) Shipborne equipment pedestal engineering drawing generating method
CN116611165B (en) CATIA-based equipment base quick labeling method and system
CN101916316B (en) Scutcheon scale value drawing method
EP2746912A1 (en) Method and system for generating control instruction according to change of glyph outline
CN209534583U (en) A kind of Pattern plate ruler for landscape design
CN101916318B (en) Scale value outline overstriking drawing method of sign plate
CN109903358A (en) A kind of world natural heritage declares the method for drafting of graph
CN115841671A (en) Calligraphy character skeleton correction method, system and storage medium
CN104484314A (en) Producing method of font library special for Chinese vertical-typeset ancient books and calligraphy
CN102982198B (en) Computer drawing method for centrifugal label calibration tail
Pather The Innovative Use of Vector-based Tactile Graphics Design Software to Automate the Production of Raised-line Tactile Graphics in Accordance with BANA's Newly Adopted Guidelines and Standards for Tactile Graphics, 2010.
CN108108339B (en) A kind of method and device of the boundary PDF and grid lines mark

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
C56 Change in the name or address of the patentee

Owner name: JIANGSU KEDA HUIFENG TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: ZHENJIANG KEDA CHUANYUAN COMPUTER NETWORK ENGINEERING CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 212003 Zhenjiang City, Jiangsu province dream Creek Road, No. 2

Patentee after: Jiangsu Keda Huifeng Science & Technology Co., Ltd.

Address before: 212003 Zhenjiang City, Jiangsu province dream Creek Road, No. 2

Patentee before: Zhenjiang Keda Chuanyuan Computer Network Engineering Co., Ltd.

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

Granted publication date: 20120104

Termination date: 20181026

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