At present existing a lot of character font generation systems are the fonts (being called for short the Asia font) that can produce the Asia font.In the language of Asia system, font by many individually independently symbol formed, an Asia font is made up of some symbols wherein, Asia body language may comprise tens or a hundreds of symbol, and forms thousands of or up to ten thousand fonts.For example the symbol of Chinese language number about in the of available approximately 500 is formed the font more than 20,000.
For ease of the following description, the image of a word is called " font " in the performance of mathematics, then is called " font " when being converted on the low resolution space.It below is the skill classification of pointing out Asia font generating technique;
One, in traditional computer technology, font is to store image with the dot matrix data, and the input data of image is to obtain the font of Asia font of hand-written from scanning (for example Brush calligraphy).Because scan-image need just can use later through manually modified, this kind mode is time-consumingly to take a lot of work again, and in addition, the dot matrix image data that directly stores the Asia font needs the memory storage of flood tide.For example font is when storing with 256 * 256 resolution, and then each font needs the memory storage of 65,536 (bits), if multiply by 20,000 Chinese fonts, then stores the Chinese font of a cover and needs 1.3 * 10
9The memory storage of pen (1.3Gbits) or 150 megabit units (150Mbytes), the memory storage of flood tide demand is impossible received in a lot of application like this.
Two, another kind of traditional technology is that the method that adopts line segment to retouch the limit shows font, and this method is widely used in and shows on the X-Y drawing sample or print off font.This method can produce the font of amplification or minification, or is rotated into the font of italic shape.But because the peripheral shape of former font is to form with line segment, its problem is the font from the mathematics performance when being transformed into dot matrix image font, and the aesthetic property of quality can't guarantee.
Three, can to eliminate the method for the existing skill of above-mentioned shortcoming be to belong to peripheral font system to another kind, the method that stores and produce font with this system can be consulted Edison one Wei Sili (Addison-Wesley) books company and was Ah many meters system house (Adobe Systems, a handbook of Inc) being published " Postscript Language Tutorial and Cookbook " in 1985.This kind method is that the peripheral shape of font is represented with the combination of straight-line segment and segment of curve, and its shape is changed into when output as amplifying, dwindle, rotate or other distortion again, obtains high-quality font output.Store because peripheral shape is the mode with figure, not only transform easily, and the memory storage of available relatively small amount stores high-quality font data, but when number of words increased, storage device will increase thereupon.Generally speaking, this kind method relatively is fit to produce the font in the high-quality English system, is to belong to the river method that vacuum metrics stores in Chinese system.
Four, another kind can reduce the character font producing method of storage device again, it is the method that adopts stroke and radical group word, this kind method is that storing data of font is divided into two partly, some is to belong to the indispensable data that basic symbol (stroke or radical) presents its image, and another partly is the coordinate values that presents the essential basic symbol of font image.Because this storing mode that separates is die-offed the storage capacity of font, and can be reached the target of minimum storage device.For example U.S. Patent number 4,897, and the font generating technique of 638 stroke foundation comprises the skeleton data of the form of a stroke or a combination of strokes, the supplemental characteristic of wide data of pen and control shape; And for example U.S. Patent number 4,990, and the font generating technique of 903 stroke foundation is to adopt key point, width and curve break to define the generation of the form of a stroke or a combination of strokes.The font technology of these stroke foundations is applicable to and produces the high image resolution font, the high-quality font of 256 * 256 dot matrixs for example, but when being converted to when hanging down the resolution font, for example 24 * 24 dot matrixs then inadequate (quality degenerates).In other words, the technology of this type is simultaneously and to hold on low, high image resolution space, and the stroke performance that also can produce high image resolution font space will be in low resolution space upper variation, and vice versa.Be the presentation of each font between the font resolution, and the resolution space of font often is difference along with the demand of display or printer, and because the relation that can not and hold can cause the puzzlement in the system operation.And because the relation that can not and hold can cause the puzzlement in the system operation.For example the generation of the font in the display is a kind of method, and it is again another kind of method that the font in the printer produces, and can cause resource waste.This phenomenon can be created in the transfer process of different resolution devices, because when blacking produces dot matrix, under the overwhelming majority's situation, the zone of form of a stroke or a combination of strokes sideline point is can directly not occupy whole pixel (pixel), usually the sideline is the subregion that occupies two adjacent pixels, and because the change in size of different resolutions, can cause the uncertainty that shows form of a stroke or a combination of strokes sideline point, sometimes even marginal point is disappeared and cause in shape distortion, for example accompanying drawing 1 (2) shows the font of No. 4,990,903 24 * 24 dot matrixs that produce of United States Patent (USP), its blacking strategy is that the pixel on the point of sideline all is made as stain, this blacking strategy can avoid the form of a stroke or a combination of strokes to produce the phenomenon of broken string when hanging down resolution, but can produce the phenomenon that the form of a stroke or a combination of strokes broadens.Because fecund is given birth to the result of stain, can cause the stroke image in the font to be extruded into a pile, can not the received low picture point matrix font of separating and produce.Therefore, this method is only applicable to produce the high image resolution font, and is not suitable for high-quality low resolution font, moreover present this technology itself can't provide man-machine interface to remove to produce the dot-matrix character font of low resolution to deviser or user.
Fig. 1 (1) illustrates the synoptic diagram of implementing the inventive method and apparatus system, represents among the figure that when the software operating system that disposes a visual window type, for example (Windows 95 for form 95 with the system of a printer 12 of digital machine 10 couplings of a wide instrument purposes
TM), just can implement method of the present invention fully.The video picture screen of printer 12 and digital machine 10 can print off and show the quality of low resolution (as dot matrix) or high image resolution (as laser), the computer system of other forms, for example network type or large scale system, providing under the condition of compatible windows workspace system, also can be used to implement the present invention.
From following preferential embodiment of the present invention, can understand and make high-quality stroke set and, hanging down the advantage that resolution font space manifests with dot matrix in order to combination font and fine setting font.Fig. 1 (3) illustrates according to the inventive method, produces the example that a kind of phaneroplasm font shows in the low resolution space 14 of 24 * 24 dot matrixs; A kind of font of font is meant the word collection of one group of same modality in the word collection of Asia language, hereinafter to be referred as the font collection.
The system of second embodiment of the present invention narration one cover CAD (computer aided design) instrument provides the user can define stroke set according to this, and the stroke set that is defined is stored in data bank, re-uses this data bank and removes to make up and store the font collection.When a basic strokes presents its form of a stroke or a combination of strokes in a font, contain one section independent brush pen at least, for example the form of a stroke or a combination of strokes of Fig. 1 (3) stroke 17 contains three sections brush pens, and the form of a stroke or a combination of strokes of stroke 18 only contains one section brush pen.The pixel grid 16 that wherein highlights is represented after the form of a stroke or a combination of strokes of computing basic strokes, actual video picture point on the font space, and the pixel grid 16 that highlights is that the amount of exhausting is approached the stain of peripheral form of a stroke or a combination of strokes district 15 at this grid.
Fig. 2 (1) illustrates the method that presents font according to the preferential illustrated invention of embodiment, the method is the step that presents font or symbol with the driving flow process of computer program in Fig. 2 (1), can on the imager of low resolution or high image resolution, show for font or symbol, or on the printer of low resolution or high image resolution, print off.For example certain writer makes file on a file processor, captures font to print off or when being presented on an appointed printer or the imager, just shown in square 82.
When the reference point that stroke prestored (that is key point) of system acquisition font, just shown in square 84, can judge whether each reference point itself is labeled contains hint information.Obtaining of hint information is to prestore when observing each form of a stroke or a combination of strokes that stroke is distributed in font in low resolution font space.If certain key point has not been labeled hint information, then system can be fixed on this key point on the relative position that prestores, and its situation is shown in square 86; But if certain key point is to be labeled when containing hint information, then this key point can be moved to the pixel center that this point is located in low resolution space, and has replaced the coordinate position that prestores, and its situation is shown in square 88.Owing to moved the position of key point, and influenced the calculated value of form of a stroke or a combination of strokes formula, and then changed the form of a stroke or a combination of strokes, therefore can make the purpose of the fine setting form of a stroke or a combination of strokes.At last in native system, it is according to key point position that newly obtains and the width value that prestores that the form of a stroke or a combination of strokes of the font of preferential embodiment presents, substitution form of a stroke or a combination of strokes formula, calculate the characteristic point position on the form of a stroke or a combination of strokes earlier, calculate the form of a stroke or a combination of strokes and brush pen zone thereof by characteristic point position of calculating and the curve values that prestores again, see through the pixel value that the blacking algorithm drives each dot matrix at last, finish the dot matrix of the inventive method in the form of a stroke or a combination of strokes that presents font, its situation is shown in square 92.
Fig. 2 (2) illustrates the schematic flow diagram of the inventive method in second and third embodiment to Fig. 2 (4).The step of process flow diagram is the performance data that is used for producing high image resolution and low resolution font.Fig. 2 (2) illustrates the process of the major parameter that makes up a basic strokes.One group of basic strokes collection is one group of stroke set that is reduced number on the meaning of topological structure, and they are used to represent the generation of each form of a stroke or a combination of strokes in the font collection.At first, font design person obtains type matrix from graph scanning or graphic package, and its situation is shown in square 20.Certainly, as long as the peripheral shape of type matrix image can be provided, the technology for comparison usefulness also can obtain type matrix.Type matrix refers to the font of one group of same font herein, if font is Chinese font, then the type matrix image can be following body: block letter, running hand body, kerria's style of calligraphy, regular script body, the Song typeface, phaneroplasm etc., the font of other language; As various fonts such as the Chinese character of Japanese, hiragana, katakanas.Shown in square 22, font design person is from observing the similar form of a stroke or a combination of strokes on one group of font then, and this observation can be artificial visual scanning, or image analysing computer automatically.For another example shown in the square 24, select a basic strokes to represent one group of form of a stroke or a combination of strokes with similar topological structure, this selects the judgement viewpoint according to font design person, to the appreciation of font aesthetic feeling and the professional knowledge and the training of understanding, determine whether this basic strokes is enough to the form of a stroke or a combination of strokes of representing a group similar by it.The basic strokes that each is selected is to be used as its attribute with some major parameters, and its situation is shown in square 26.Font design teacher is with the parameter of key point as definition basic strokes attribute, presents the topological structure of the form of a stroke or a combination of strokes in the font space.Font design person is according to the topological structure of the similar form of a stroke or a combination of strokes of a group, size, vertically reaches the factors such as variation of level, judges the place that is located in of each key point position.
Fig. 3 (1) more can describe the place that is located in of key point in detail to Fig. 3 (2).Generally speaking, the place of being located in of key point is taken near the initial of the form of a stroke or a combination of strokes and the ending end points, especially can remove the push-and-pull local shape, to realize approaching the place that is located in of each similar form of a stroke or a combination of strokes.In other words, the key point place of being located in of basic strokes chooses, and the parameter of similar form of a stroke or a combination of strokes position on the font space can be provided.
Secondly shown in square 28, the parameter that font design teacher sets a width at least is the attribute of basic strokes, and this width is to set according to the width value changing condition of the similar form of a stroke or a combination of strokes, Fig. 3 (3) to Fig. 3 (4) to the more detailed narration of being set with of width parameter.
Shown in square 30, font design stores the major parameter value of basic strokes, and whether check by the parameter that these are defined that each similar form of a stroke or a combination of strokes all can produce in the font, this examination can perhaps be finished by the image analysing computer software of robotization by the artificial Software tool that cooperates.
Fig. 2 (3) illustrates the step that defines the form of a stroke or a combination of strokes generation of basic strokes by the specify secondary parameter.At first, in the process of setting minor parameter, the form of a stroke or a combination of strokes that font design person selects aforesaid meaning of word basic strokes to use earlier defines minor parameter, its situation is shown in square 32, secondly, font design person comes feature points with the peripheral shape of this stroke, and shown in square 34, its mode is to be located in the place with specifying each unique point and the relation of major parameter (key point and width) in the space to define it.At last, after each unique point all is defined, shown in square 36, define the curve equation between per two adjacent feature points again, to finish the definition of peripheral shape.Wherein the unique point trend (tangential direction) of normally getting peripheral shape has the point on the turning point.In case all basic strokes all as above-mentioned definition after it mainly reaches minor parameter, just shown in square 38, have been finished the definition of basic strokes.The definition of the above basic strokes is to finish by the CAD (computer aided design) tool software of indication of the present invention, and this software will be described in more detail to Fig. 4 (5) at Fig. 4 (1).
Fig. 2 (4) illustrates the user goes to make up font according to the main and minor parameter of the basic strokes that defined step.The type matrix image that the user normally obtains according to scanning is built the font data bank of a cover font, for commercial use when trying.At first, the user is scanned the type matrix image when the background usefulness that compares, and shown in square 42, the new font collection of finishing through structure combines in version low, high image resolution with regard to constituting performance type matrix font; Shown in the square 44 and 46, the user chooses the wherein form of a stroke or a combination of strokes one by one of yi word pattern for another example; Then shown in square 48, the basic strokes of finishing is concentrated looks for an optimal basic strokes to approach this form of a stroke or a combination of strokes to the user from being fabricated again, then shown in square 50, through mobile key point and varying width value, the shape and the width thereof that produce pilot process approach this form of a stroke or a combination of strokes, when approaching fully, the key point position and the width value that obtain at last, just formation produces the property value of the corresponding basic strokes of this form of a stroke or a combination of strokes; Then shown in square 52, when the form of a stroke or a combination of strokes one by one of each font all has corresponding basic strokes, and during the property value (key point position and width value) that obtains after the comparison, just obtain the performance data of whole font collection; At last shown in square 54, these performance data are produced the font collection on low resolution space, observe the form of a stroke or a combination of strokes of these font collection that produced again again, if find to have the part of quality variation, then can be provided at the hint information of low resolution space video picture by the sign of key point, the step of square 54 also can be implemented when feature points and the curve values in the lump by font design person.Describe in detail in will be in Fig. 6 (1) to Fig. 6 (5) relevant for the explanation of user's CAD (computer aided design) instrument.
Fig. 3 (1) is illustrated in the last situation of setting major parameter of CAD (computer aided design) instrument (shown in 64) of a basic strokes to Fig. 3 (4), shown in Fig. 3 (1), font design person obtains the image (shown in 66) of a stroke peripheral shape in the type matrix earlier, peripheral shape image 66 is that font design person thinks and is enough to represent some similar forms of a stroke or a combination of strokes in the type matrix font most, can be used to make up a basic strokes representing these similar forms of a stroke or a combination of strokes.Font design person is in the selectionbar of aid 64, begin to select the instruction 68 of AddKey to set key point, so first key point 70 is disposed in a figure man-machine interface GUI of peripheral image 66, it has title, key frame, button and workspace to appear under the horizontal bar of this instrument, the two-dimentional viewing area shown in 65 and 67.Viewing area 67 is right-hand in the workspace, in order to show amplified images 66, allows the user can be according to amplifying the main and minor parameter that basic strokes is set in video picture 66 on viewing area 65.
The position of the selected key point of font design person's rolling mouse device on viewing area 65, and button determines that this selects, key point can be chosen on the peripheral curve of the form of a stroke or a combination of strokes or outside it, look closely to produce the characteristic of the form of a stroke or a combination of strokes localized variation when it is arranged and determine.Common situation is that key point can be selected in the place of comparison near form of a stroke or a combination of strokes end, for example if basic strokes is when belonging to straight pen, can be selected in usually on the median vertical line of form of a stroke or a combination of strokes end; Otherwise,, can be selected on the horizontal central line of form of a stroke or a combination of strokes end usually if when belonging to horizontal; And if a stroke is when containing horizontal pen and straight pen simultaneously; then can be selected in usually in the form of a stroke or a combination of strokes end of median vertical line and horizontal central line handing-over; key point is located in the selection at place; mainly be for elongation that the form of a stroke or a combination of strokes end that can produce basic strokes is provided, extend or be out of shape usefulness, thereby can produce many differences but the similar form of a stroke or a combination of strokes.Being located in the rule at place so arrange key point, is font design person's a careful selection fully.Shown in Fig. 3 (2), font design person selects to arrange a key point 70 in the thicker end of the form of a stroke or a combination of strokes 66, but each stroke must be furnished with two key points at least.
Secondly, font design person sets the parameter of a reference width at least to each basic strokes, usually stroke width is the distance of getting two reference point (being called fat or thin point again) on its peripheral shape, and in like manner, the choice of fat or thin point is to observe the fat or thin situation of the form of a stroke or a combination of strokes by font design person according to it to be determined.Certainly, fat or thin point should be taken at the place that can show form of a stroke or a combination of strokes wide variety.
Shown in Fig. 3 (3), font design person selects the instruction 72 of Add Thickness to remove to capture the Add Thickness form 74 shown in Fig. 3 (4).On form 74, font design person sets a width value in 76 li in newly-increased width box, it is by set two fat or thin points 78 and 80 on peripheral shape 66 that this width value is obtained, these 2 is that the foundation of molded breadth value is used as in decision after observing form of a stroke or a combination of strokes wide variety by font design person according to it with this distance of 2.
Left as long as determine minor parameter again, that is the position of unique point and the segment of curve between them, the definition of a basic strokes just can be finished.Fig. 4 (1) illustrates the situation of setting the minor parameter of basic strokes with the computer design aids to Fig. 4 (10).At first, font design person selects a form of a stroke or a combination of strokes of making basic strokes, shown in Fig. 4 (1), from the horizontal bar 104 of instrument, select Load Stroke instruction 106, shown in Fig. 4 (2), input basic strokes number, each basic strokes is to represent with the assigned number that prestores, font design person obtains the form of a stroke or a combination of strokes and the aforesaid major parameter of basic strokes with basic strokes number input square 114, and it is presented in the coordinate space of two two dimensions, first coordinate space 108 belongs to figure talk district, second less coordinate space 110 belongs to non-figure talk district, only supplies the video picture usefulness of different resolutions, and these two coordinate spaces all are presented at 107 li of workspaces under the GUI horizontal bar.Shown in Fig. 4 (3), be displayed on two coordinate spaces 108 and 110 li respectively by the form of a stroke or a combination of strokes of the basic strokes that captured, and stroke number is 117, width value is 115, key point is 119, more than be displayed on 107 li of workspaces simultaneously.
Shown in Fig. 4 (3), font design person selects Add Point instruction 116 to specify a unique point form 118 (as Fig. 4-4) from the horizontal bar of cad tools 104, so font design person is with vernier (for example Genius mouse) in first coordinate space 108 li, set a unique point on the peripheral shape that shows the form of a stroke or a combination of strokes, unique point is the turning point that appears at peripheral shape, that is the tangent line of its left and right sides both direction forms significant angle, as 108 unique point 124a in first coordinate of Fig. 4 (4).
Shown in Fig. 4 (4), the x of the unique point 124a that is set and y coordinate values can appear in the coordinate box of unique point form 118, and 124b shows the x coordinate values, and 124c shows the y coordinate values, and font design person begins to set the spatial relationship of it and major parameter.The mode of setting is the number of input key point, and for example in the 0th key point 120 of 126 inputs, both have calculated relationship representation feature point 124a and key point 120, that is have given the coordinate values of key point 120, just can calculate the coordinate values of unique point 124a.Relevant its calculating formula will be narrated it in the following description.
Shown in Fig. 4 (4), font design is just also in 118 li spatial relationships of setting unique point and width of unique point form, for example in 128 input O reference width (its width value is 16), the calculating of representation feature point is relevant with O reference width, and relevant calculating formula will be narrated in the following description.
System can remove to seek a formula that prestores according to the combination of input with reference to key point and width, is used as the formula of calculated characteristics point position.After finding the suitable formula that prestores, system can go to calculate the unique point that is set according to this formula and divide other relative position value at x and y direction, these relative positions can be stored the inside information that is saved as basic strokes, obtain the reference value of characteristic point position so that reverse calculate to be provided.
In the example of Fig. 4 (4), font design person sets a unique point 124a on the peripheral shape of the form of a stroke or a combination of strokes, this point is near key point 120 (number O), and font design person also the reference x of input feature vector point and the key point (key point 120 of number O) and the width (value of number O is 16) of y coordinate.A formula that prestores is looked for by system, the reference number that this formula coincide and imports in the calculating of x and y coordinate.1 and 2 for example following formula can supply calculated characteristics point 124a, and shown in Fig. 4 (4), X is the x coordinate values of unique point, and Y is its y coordinate values, X
KoBe the x coordinate values of key point 120 (number O), Y
KoBe its y coordinate values, and W
oIt is the width value of the reference width of number O.
X
rei=(X-X
ko)/W
o (1)
Y
rei=(Y-Y
ko)/W
o (2)
Following two formula (3) and (4) are font design persons when setting unique point 130, shown in Fig. 4 (5) on, provide and calculate it and use with reference to relative position.
X
rei=(X-X
ko)/(X
ki-X
ko) (3)
Y
rei=(Y-Y
ko)/(Y
ki-Y
ko) (4)
Can find out that 3 and 4 two formulas do not use the reference width value, this is because have two in the reference key point of form 118, therefore, just needn't use the reference relative position that width value comes calculated characteristics point.
In case two adjacent feature points are set all, the producing method of segment of curve just can be tried to achieve according to the reverse reckoning of following calculating formula therebetween.With reference to figure 4 (6), font design person select earlier Add Line instruction 136 start as shown in Figure 4 line segment or the producing method of segment of curve, font design person selects a pair of adjacent feature point 137 and 139 shown in Fig. 4 (7), selected Add Line instruction 136 that line segment 138 is occurred, it is 137 and 139 line, and a movably intermediate controlled point 140 appears in line, by mobile intermediate controlled point 140 in spatial point 108 scopes, shown in Fig. 4 (8), as long as it departs from 139 and 139 lines and will produce a curve, the generation of curve is to produce method according to the secondary Bezier curve.
Following formula adopts the reference relative position value of calculating intermediate controlled point.
If?X
p1=X
p2?then
X
R=X
mid-X
p1 (5)
If?X
p1≠X
p2?then
X
R=(X
mid-(X
p1+X
p2)/2|X
p1-X
p2|?(6)
If?Y
p1=Y
p2?then
Y
R=Y
mid-Y
p1 (7)
If?Y
p1≠Y
p2?then
Y
R=(Y
mid-(Y
p1+Y
p2)/2|Y
p1-Y
p2|?(8)
Wherein, P1 is first unique point, and P2 is second unique point, mid is meant the intermediate controlled point, R is the ratio value with reference to relative position, goes to calculate the foundation of curve shape therebetween in order to provide from two adjacent feature points, and Fig. 5 illustrates the situation that produces curve with formula (5)-(8).
In Fig. 4-(9), intermediate controlled point 140 is to be moved into the position that can produce the peripheral shape of approaching this section form of a stroke or a combination of strokes most, and Fig. 4 (10) illustrates the generation that all unique points and segment of curve have been set to the peripheral shape that can describe the whole form of a stroke or a combination of strokes all.So far, a basic strokes main and less importantly be set all and store, and from the drop down menu 142 of the picture shown in Fig. 4 (10), can choose a resolution wantonly for the basis, show the demonstration situation of font under this resolution that the form of a stroke or a combination of strokes or the form of a stroke or a combination of strokes constitute.
From above explanation, the form of a stroke or a combination of strokes of a basic strokes can be represented by the formula:
S=f
i({K
j}.{W
k}) (9)
Wherein S is the form of a stroke or a combination of strokes, and i is that number is the basic strokes of i, f
iBe the unique point of corresponding number i basic strokes and the computing formula of segment of curve, K
jBe the key point of number j, W
kBe the width of number k, formula f
iBe a kind of algorithm, this algorithm can be accepted the key point position | { K
j| and the reference width value | { W
k| be the data of input end, produce the peripheral shape of the form of a stroke or a combination of strokes, by this, the form of a stroke or a combination of strokes data of font are the form storages according to mathematical notation formula 9.
Fig. 6 (1) illustrates a kind of user's CAD (computer aided design) instrument to Fig. 6 (5), the confession user goes to make up font according to character font producing method as shown in Figure 2, this instrument is the figure man-machine interface that belongs to a kind of visual window type, comprises a workspace, and it contains a font viewing area 176.At first, the user selects a type matrix font for use and is presented on the font viewing area 176, prepares to be broken down into the form of a stroke or a combination of strokes and is built into the action that shows with basic strokes, at this moment, show the stroke that is stored in 178 meetings of the space of workspace, 177 can show the own at present stroke count in construction of users in the space.Secondly, the user specifies a basic strokes in the basic strokes collection of having built up to come a form of a stroke or a combination of strokes of construction font, for example shown in Fig. 6 (2), the user has selected basic strokes 181 (stroke number is 97) to come construction to be shown the horizontal pen 183 of font upper end, the form of a stroke or a combination of strokes that the initial property value of basic strokes 181 (key point position and width value) is produced occurs in viewing area 176, force the shape of drawing horizontal pen 183 through the form of a stroke or a combination of strokes in the middle of changing its property value (mobile key point position and varying width value) generation, for example shown in Fig. 6 (3) and Fig. 6 (4), the user makes the shape of stroke 181 more approach the former form of a stroke or a combination of strokes through the position that changes key point, wherein, leftmost key point is from 39,54 move to 37,35, moving of key point can be through the rolling mouse device or directly imported by keyboard.
Fig. 6 (2) illustrates the user approaches the former form of a stroke or a combination of strokes 183 by the width value that increases basic strokes 181 situation to Fig. 6 (5), shown in Fig. 6 (3), the user is most 16 situations of 12 liftings with width value, when being promoted to width value when being 20, just shown in Fig. 6 (5), this moment, the shape of basic strokes 181 was almost approached most the former form of a stroke or a combination of strokes 183.Make up basic strokes 181 resulting key point positions and width value at last and just be stored in the storer, be used as the data of the form of a stroke or a combination of strokes of this font, can produce this form of a stroke or a combination of strokes for the parameter of substitution basic strokes again and use.The computer aid that above-mentioned use font produces is to realize under the visual window type operating system, but it also can under other operating systems, realize, even can use the image analysing computer technology to reach semi-automatic or full automatic system.And the CAD (computer aided design) instrument that user's font produces also comprises is engaged in the method for setting hint information, and this kind method will be narrated in the following description.
Font design person can promote the quality of font in low resolution space video picture through the fine setting of hint key point, and the fine-tuning form of a stroke or a combination of strokes of hint information is extruded into a pile to avoid each form of a stroke or a combination of strokes, and can keeps the consistance of form of a stroke or a combination of strokes symmetry.In order to set hint information, the user only need specify that key point when the low-res space, needs the action of fine setting, and in other words, the action of setting hint information only needs the key point of being finely tuned is indicated.
Hint information can drive the recomputating of position of key point and correlated characteristic point thereof.A key point that is labeled can be moved to the center of its video picture grid (pixel) earlier, Fig. 7 (1) and Fig. 7 (2) illustrate two kinds of video picture situations that key point is labeled and is not labeled, key point 187a and 188a is neither is labeled in Fig. 7 (1), therefore the peripheral shape of form of a stroke or a combination of strokes 189a is on low resolution space, because peripheral shape covers more than 50% of two row video picture grid respectively, and has occupied two row video picture grid.On the contrary, shown in Fig. 7 (2), key point 187b and 188b all are labeled, they can be moved to the center of video picture grid, at this moment, the peripheral shape of form of a stroke or a combination of strokes 189b occupies the zone of delegation's pixel (back rounds up), so figure 189b can remain on the video picture grid of delegation.
Fig. 8 illustrates storing data by the constructed number 410 phaneroplasm fonts of user's CAD (computer aided design) instrument.Asterisk 191 expressions are labeled the key point of hint information, row 192 is by the tabulation of the unique point of number, row 193 is that they are tabulated with reference to key point (being docile and obedient the preface numbering) at X and Building Y target respectively, the reference width that row 194 is numbered, row 195 is tabulations of the unique point relative position value calculated according to formula (1)~(4), row 196 is by the segment of curve of the number of spinning, and row 197 is tabulations of the adjacent feature point of every section curve head and the tail, row 198 is tabulations of the ratio value of decision segment of curve intermediate controlled point, they are the ratio values of calculating from formula 5~8, row 199 is tabulations of form of a stroke or a combination of strokes partition number, and is last, and row 200 points out that those unique points constitute the end points in brush pen zone.
The key point position that is stored shown in Fig. 8 top is the example that stores according to predetermined resolution bulk, and the key point position is that to be stored in resolution be 256 * 256 font spaces.If font 410 is the resolution spaces that are stored in other sizes, then the key point position can keep the relative position of key point in this font space through the coordinate conversion in space.
The font generating technique is the reverse process process of font constructing technology.The first step is that each key point that is labeled is moved to the center, site from the dot matrix site (pixel) that it is located in, each key that is not labeled just not is moved, characteristic point position just goes calculating to try to achieve according to key point position that newly obtains and width value then, and between every pair of adjacent feature point according to being stored the ratio value of intermediate controlled point, remove to calculate the segment of curve between them, segment of curve is coupled together the peripheral shape that just obtains the form of a stroke or a combination of strokes, at last, with a kind of blacking technology with the area surrounded blacking of form of a stroke or a combination of strokes peripheral shape institute.The blacking technology is whether the predetermined regular deactivation pixel of basis is stain, and the rule that the present invention adopts is a basis; If being contained by form of a stroke or a combination of strokes district, the area of pixel is more than half; Perhaps when if the central point of pixel drops in the form of a stroke or a combination of strokes zone, this pixel blacking that then will export instrument.Certainly, the blacking technology of other forms also can be in order to finish the generation of font.
Fig. 9 illustrates the example of handling back output via method of the present invention, and they are phaneroplasm font each dot-matrix character fonts at 24 * 24 low resolutions.
In case after preferential embodiment of the present invention was disclosed and is described in detail, significantly, the personage who is familiar with this skill just was not difficult to make every change according to spirit of the present invention and scope, realizes the purpose the same with the present invention.