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

Method for drawing curve text of label Download PDF

Info

Publication number
CN101944237B
CN101944237B CN2010105191295A CN201010519129A CN101944237B CN 101944237 B CN101944237 B CN 101944237B CN 2010105191295 A CN2010105191295 A CN 2010105191295A CN 201010519129 A CN201010519129 A CN 201010519129A CN 101944237 B CN101944237 B CN 101944237B
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.)
Expired - Fee Related
Application number
CN2010105191295A
Other languages
Chinese (zh)
Other versions
CN101944237A (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 make with the CAD mapping software is earlier drawn good in computing machine and is preserved, and the label graphic file is converted to the compatible file layout of laser photocomposing machine output to film setter then, 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; Method with the parameters of input label circular arc, scale mark, scale value is drawn the comment in label and the label, has 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 in AutoCAD software, drawing the curve literal of highly gradual variation, 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 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.
The object of the invention is achieved through following technical scheme:
A kind of label curve literal method for drafting may further comprise the steps:
(1) definite and input label curve literal belongs to the center of circle, radius, start angle, the termination point of path 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) confirm the sense of rotation of curve literal, from vertical, to the center of circle, the reverse center of circle and self-defined selection a kind of;
(5) obtain each character of character string s through Get function circulation and record among the one-dimension array S [n], 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) calculate the anglec of rotation of each character S [i] respectively according to said sense of rotation and deflection angle angle 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) (x y) draws each element S [i] of array S [n] one by one on the position to put Point2d with the mode of multirow literal in character locating according to the height h [i] of each character, font parameter;
(11) according to the anglec of rotation parameter of each character each character is rotated corresponding angle respectively, the curve literal is completed.
The object of the invention can also further realize through following technical measures:
A kind of label curve literal method for drafting; The anglec of rotation to center of circle mode in the said step (8) is that deflection angle subtracts 90 degree; The anglec of rotation of reverse center of circle mode is that deflection angle adds 90 degree; Vertical mode and self-defined mode need not be calculated, and 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
Below in conjunction with accompanying drawing and specific embodiment the present invention is described further.
As shown in Figure 1, the label curve text parameter that present embodiment will be drawn is following: 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 ability Identifiaction plates, utilizes ObjectARX2008 to be directed against AutoCAD2008 and carries out secondary development, has improved existing label method for drafting, and as shown in Figure 2, concrete steps are:
(1) definite and input label curve literal belongs to home position, radius, start angle, the termination point of path arc, is 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) confirm the sense of rotation of curve literal, from vertical, to the center of circle, the reverse 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 through Get function circulation and record among the one-dimension array S [n], n is the capacity of one-dimension array, and obtains array length length, and 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) calculate the anglec of rotation of each character S [i] respectively according to said sense of rotation and deflection angle angle 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) (x y) draws each element S [i] of array S [n] one by one on the position to put Point2d with the mode of multirow literal among the CAD in character locating according to the height h [i] of each character, font parameter;
(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 other part of label, carry out color separation and makeup again, use film setter to print to publish picture after the plate-making flow process is accomplished and print.
Except that the foregoing description, 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) definite and input label curve literal belongs to the center of circle, radius, start angle, the termination point of path 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) confirm the sense of rotation of curve literal, from vertical, to the center of circle, the reverse center of circle and self-defined selection a kind of;
(5) obtain each character of character string s through Get function circulation and record among the one-dimension array S [n], 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) calculate the anglec of rotation of each character S [i] respectively according to said sense of rotation and deflection angle angle 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) (x y) draws each element S [i] of array S [n] one by one on the position to put Point2d with the mode of multirow literal in character locating according to the height h [i] of each character, font parameter;
(11) according to the anglec of rotation parameter of each character each character is rotated corresponding angle respectively, the curve literal is completed.
2. a kind of 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 said step (8) is that deflection angle subtracts 90 degree, and the anglec of rotation of reverse center of circle mode is that deflection angle adds 90 degree, and 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 CN101944237A (en) 2011-01-12
CN101944237B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112070082B (en) * 2020-08-24 2023-04-07 西安理工大学 Curve character positioning method based on instance perception component merging network

Family Cites Families (4)

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

Also Published As

Publication number Publication date
CN101944237A (en) 2011-01-12

Similar Documents

Publication Publication Date Title
CN109033571A (en) Automatic Drawing module and drawing practice based on CAD
CN102509511B (en) Rapid map making system based on GIS (Geographic Information System) data
CN104571977A (en) Report printing method and system based on HTML (Hyper Text Markup Language) template
CN101944237B (en) Method for drawing curve text of label
CN103136184A (en) Automatic typesetting method and automatic typesetting device
CN108090037A (en) Automatic composing method and device
CN105511818A (en) Voucher template generating method, and device and system
CN102073768A (en) Automatic arch dam pouring block plotting device and plotting method
CN102184300B (en) Label rectangular graph computer drawing method
CN108891130B (en) Bar code printing system
CN105921888B (en) It is a kind of to seek the method that is cut by laser again of side skew using CCD
CN108038281A (en) Shipborne equipment pedestal engineering drawing generating method
CN103761769A (en) Method for engraving three-dimensional landform
CN101916316B (en) Scutcheon scale value drawing method
EP2746912A1 (en) Method and system for generating control instruction according to change of glyph outline
CN116611165A (en) CATIA-based equipment base quick labeling method and system
CN107918648B (en) Method for establishing plane design template library and searching template
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
CN113408247A (en) Code conversion and data processing method in hydraulic engineering measurement
CN102442047A (en) Label processing method for board combination
CN101872467A (en) Special scale computer drawing method for scutcheon
CN108108339B (en) A kind of method and device of the boundary PDF and grid lines mark
CN102508823A (en) Method and system for making tables
CN208333276U (en) A kind of portable dress designing ruler

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120104

Termination date: 20181026