CN108288297A - Word method and apparatus are done based on skeleton line - Google Patents

Word method and apparatus are done based on skeleton line Download PDF

Info

Publication number
CN108288297A
CN108288297A CN201710014397.3A CN201710014397A CN108288297A CN 108288297 A CN108288297 A CN 108288297A CN 201710014397 A CN201710014397 A CN 201710014397A CN 108288297 A CN108288297 A CN 108288297A
Authority
CN
China
Prior art keywords
character
component
font
information
group
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
CN201710014397.3A
Other languages
Chinese (zh)
Other versions
CN108288297B (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.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
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 Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201710014397.3A priority Critical patent/CN108288297B/en
Publication of CN108288297A publication Critical patent/CN108288297A/en
Application granted granted Critical
Publication of CN108288297B publication Critical patent/CN108288297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention provides a kind of doing word method and apparatus based on skeleton line, wherein this method includes:Basic character set is obtained, basic character concentration includes at least one character;According to each character of basic character set, part library is built, part library includes at least one component, each component includes component skeleton line information;According to the style of font to be developed, select similar with the style of font to be developed group of character matrix plate, group character matrix plate includes the character group word information that will automatically generate character, each character group word information includes building block information, and building block information describes component and component information converting;According to the component skeleton line information in part library and the building block information in group character matrix plate, by the character set that each character transformation in group character matrix plate is font to be developed.Character producing efficiency is improved, reduction is done the word time, and word cost is done in reduction;The problem of ensureing font pen shape style, improving stroke deformation so that result character library font style is more unified.

Description

Word method and apparatus are done based on skeleton line
Technical field
The present invention relates to word-base technology processing technology field more particularly to a kind of word method and dress are done based on skeleton line It sets.
Background technology
With information-based continuous development, the demand to Chinese character information increasingly increases, and Chinese character is in a computer with character library Mode stores.The quantity total amount of Chinese character is huge, and a character library generally at least needs to include 6763 most common Chinese characters, partial words Library manufacturer needs a character library receipts number of words to reach word more than 27000 to better meet with word.In order to meet font increasingly The big market demand, we improve and do word efficiency by various modes.
Most of automatic mosaic method in the prior art using directly being zoomed in and out to component character contour data, And then the mosaic processing of fresh character is completed, profile can be caused to will appear different degrees of deformation during scaling in this way, in order to The deformation during scaling is avoided, our usual processing modes are the sub-portions that the same font component can provide multiple and different sizes Part, Fig. 1 is the part library provided in the prior art, as shown in Figure 1, constructing the part library of a redundancy.
However in the prior art, if the quality requirement of character library is relatively high, it is necessary to structure includes enough subassembly, The workload for thus greatly increasing font exploitation, influences font development efficiency, while also pen shape can not be avoided to deform completely The problem of.
Invention content
The present invention provide it is a kind of word method and apparatus are done based on skeleton line, to solve the problems of the prior art.
What it is an aspect of the present invention to provide a kind of based on skeleton line does word method, including:
Basic character set is obtained, basic character concentration includes at least one character;
According to each character of basic character set, part library is built, wherein part library includes at least one component, each A component includes component skeleton line information, and component skeleton line information includes at least one stroke, each stroke includes the first stroke Touch width and skeleton line coordinate points;
According to the style of font to be developed, similar with the style of font to be developed group of character matrix plate is selected, wherein group type matrix Plate includes the character group word information that will automatically generate character, each character group word information includes building block information, described Building block information describes component and component information converting;
According to the component skeleton line information in part library and the building block information in group character matrix plate, character matrix plate will be organized In each character transformation be font to be developed character set.
In method as described above, each character according to basic character set builds part library, including:
Each component for extracting composition character is concentrated from basic character, with component parts library.
In method as described above, building block information includes:Component information converting;
Building block information in the component skeleton line information and group character matrix plate according in part library, will organize word Each character transformation of template is the character set of font to be developed, including:
The component skeleton line information that each component of current character is obtained from part library, believes according to the transformation in group character matrix plate Breath is handled for each component, and each component in part library is transformed on the target component of font to be developed, will Each character transformation in group character matrix plate is the character set of font to be developed.
In method as described above, each component by part library transforms on the target component of font to be developed, Including:
By the skeleton line coordinate points P0 (x0, y0) of each stroke of the component in part library, it is converted into the mesh of font to be developed On the profile point P (x, y) for marking each stroke of component, wherein (x, y)=(x0, y0) * Mat2+ (XOffset, YOffset), Mat2 is the parameter informations such as scaling, the rotation of a two-dimensional transform matrix description component, and XOffset indicates the offset of X-direction, YOffset indicates the offset of Y-direction;
By the first style of writing width of each stroke of the component in part library, it is transformed to each of the target component of font to be developed Second style of writing width of stroke, wherein the second style of writing widthW is the first style of writing width, and x is that component laterally scales Ratio, y are component longitudinal direction scaling.
In method as described above, in the component skeleton line information according in part library and group character matrix plate Building block information, by each character transformation in group character matrix plate be font to be developed character set after, further include:
The character set of basic character set and font to be developed is integrated, constitutes and integrates character set;
It is modified to integrating character set, to constitute revised integration character set.
Another aspect of the present invention be to provide it is a kind of word device is done based on skeleton line, including:
Acquisition module, for obtaining basic character set, basic character concentration includes at least one character;
Module is built, for each character according to basic character set, builds part library, wherein part library includes at least One component, each component include component skeleton line information, and component skeleton line information includes at least one stroke, each pen Picture includes the first style of writing width and skeleton line coordinate points;
Selecting module selects similar with the style of font to be developed group of type matrix for the style according to font to be developed Plate, wherein group character matrix plate includes the character group word information that will automatically generate character, each character group word information includes composition Component information, the building block information describe component and component information converting;
Conversion module, for being believed according to the component skeleton line information in part library and the building block in group character matrix plate Breath, by the character set that each character transformation in group character matrix plate is font to be developed.
In device as described above, the structure module is specifically used for:
Each component for extracting composition character is concentrated from basic character, with component parts library.
In device as described above, building block information includes:Component information converting;
The conversion module, is specifically used for:
The component skeleton line information that each component of current character is obtained from part library, believes according to the transformation in group character matrix plate Breath is handled for each component, and each component in part library is transformed on the target component of font to be developed, will Each character transformation in group character matrix plate is the character set of font to be developed.
In device as described above, the conversion module is specifically used for:
The component skeleton line information that each component of current character is obtained from part library, believes according to the transformation in group character matrix plate Breath is handled for each component, by the skeleton line coordinate points P0 (x0, y0) of each stroke of the component in part library, transformation To the profile point P (x, y) of each stroke of the target component of font to be developed, wherein (x, y)=(x0, y0) * Mat2+ (XOffset, YOffset), Mat2 are the parameter informations such as scaling, the rotation of a two-dimensional transform matrix description component, XOffset Indicate that the offset of X-direction, YOffset indicate the offset of Y-direction;
By the first style of writing width of each stroke of the component in part library, it is transformed to each of the target component of font to be developed Second style of writing width of stroke, wherein the second style of writing widthW is the first style of writing width, and x is that component laterally scales Ratio, y are component longitudinal direction scaling.
In device as described above, further include:
Module is integrated, is used in the conversion module according to the component skeleton line information and group character matrix plate in part library In building block information, by each character transformation in group character matrix plate be font to be developed character set after, by basic character The character set of collection and font to be developed is integrated, and is constituted and is integrated character set;It is modified to integrating character set, is corrected with constituting Integration character set afterwards.
The solution have the advantages that:By obtaining basic character set, basic character concentration includes at least one character;Root According to each character of basic character set, part library is built, wherein part library includes at least one component, each component includes Component skeleton line information, component skeleton line information include at least one stroke, each stroke includes the first style of writing width and bone Stringing coordinate points;According to the style of font to be developed, similar with the style of font to be developed group of character matrix plate is selected, wherein group Character matrix plate includes the character group word information that will automatically generate character, each character group word information includes building block information, Building block information describes component and component information converting;According to the component skeleton line information and group type matrix in part library Building block information in plate, by the character set that each character transformation in group character matrix plate is font to be developed.To design and produce Less chinese character puts into less manpower, improves character producing efficiency, reduces and do the word time, reduce do word at This;Simultaneously as directly carrying out a group word using the skeleton line of primitive part and stroke brush stroke data, font pen shape wind both ensure that Lattice, while also improving the problem of stroke deforms during existing automatic mosaic so that result character library font style is more unified, The working efficiency for improving character library exploitation, ensure that the final mass of finished product character library.
Description of the drawings
Fig. 1 is the part library provided in the prior art;
Fig. 2 is the flow chart for doing word method based on skeleton line that the embodiment of the present invention one provides;
Fig. 3 is the glyph skeleton line for doing character micro-in word method based on skeleton line that the embodiment of the present invention one provides Schematic diagram;
Fig. 4 is showing for the font style of writing for doing character micro-in word method based on skeleton line that the embodiment of the present invention one provides It is intended to;
Fig. 5 is the flow chart provided by Embodiment 2 of the present invention that do word method based on skeleton line;
Fig. 6 is the skeleton line of component " Ren " and " Quan " provided by Embodiment 2 of the present invention that do in word method based on skeleton line With the schematic diagram of style of writing information;
Fig. 7 is the automatic effect signal for doing word provided by Embodiment 2 of the present invention that do in word method based on skeleton line Figure;
Fig. 8 is the structural schematic diagram for doing word device based on skeleton line that the embodiment of the present invention three provides;
Fig. 9 is the structural schematic diagram for doing word device based on skeleton line that the embodiment of the present invention four provides.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 2 is the flow chart for doing word method based on skeleton line that the embodiment of the present invention one provides, as shown in Fig. 2, this reality The method for applying example includes:
Step 101 obtains basic character set, and basic character concentration includes at least one character.
In the present embodiment, specifically, obtaining basic character set, on the basis, character concentration includes at least one character. Each character includes character code, glyph skeleton line and font style of writing information.The basis character set is to build part library below Basis, the font style of the basis character set will be the font style of final character library.
Specifically, Adobe illustrator Software for Design can be used to make basic character set, font design determines Font style determines that exploitation font is GB2312 character set, the corresponding basic character set of basic character set GB2312 character set;If Each character that basic character is concentrated is counted and makes, wherein character code is encoded using Unicode, and Fig. 3 is that the present invention is implemented The schematic diagram for the glyph skeleton line for doing character micro-in word method based on skeleton line that example one provides, as shown in figure 3, character The glyph skeleton line of micro-, Fig. 4 are the word for doing character micro-in word method based on skeleton line that the embodiment of the present invention one provides The schematic diagram of shape style of writing, as shown in figure 4, character micro-font style of writing.
Step 102, each character according to basic character set build part library, wherein part library includes at least one portion Part, each component include component skeleton line information, and component skeleton line information includes at least one stroke, each stroke includes First style of writing width and skeleton line coordinate points.
In the present embodiment, specifically, according to each character of basic character set, part library is built;Wherein, it is wrapped in part library At least one component is included, each component includes component identification code, component skeleton line information, each component is by least one pen Draw and constitute, to which, component skeleton line information includes at least one stroke, each stroke include style of writing number, style of writing width and Skeleton line coordinate points.
Step 103, according to the style of font to be developed, select similar with the style of font to be developed group of character matrix plate, In, group character matrix plate includes the character group word information that will automatically generate character, each character group word information includes building block Information, building block information describe component and component information converting.
In the present embodiment, it specifically, according to the style of font to be developed, selects similar with the style of font to be developed Group character matrix plate, wherein group character matrix plate includes the character group word information that will automatically generate character, each character group word packet Character code, building block information are included, building block information describes component and component information converting, such as offset parameter letter Breath, zooming parameter information, rotation parameter information.
Wherein building block information includes component identification code, component information converting.Component information converting describes the character In the parameter informations such as offset, scaling and the rotation of component, be specifically expressed as follows, construct a two-dimensional transform matrix:Mat2 =A11A12A21A22 indicates corresponding X-direction for indicating the rotation, inclination and scale transformation of component using XOffset Translation transformation, YOffset indicate the translation transformation of corresponding Y-direction.
For example, selection blackbody model library is similar with the style of font to be developed group of character matrix plate.Blackbody model library It include the character spelling template other than the basic character set of GB2312 character set removal.Each character spelling template includes that character is compiled Code, the component coding of composition character and corresponding transformation data, the transformation data are component information converting.The component sequence of character It is described from left to right, from top to bottom according to the structure of Chinese character, the component information converting of component describes the offset of the component, scaling Information.The Template Information of character micro-is described as follows table 1.
The Template Information of 1 character micro-of table
Step 104, according in part library component skeleton line information and group character matrix plate in building block information, will Each character transformation in group character matrix plate is the character set of font to be developed.
In the present embodiment, specifically, according to the component skeleton line information and step 103 in part library in step 102 Building block information in middle group of character matrix plate, to which the character set that each character transformation in character matrix plate is font to be developed will be organized.
For the present embodiment by obtaining basic character set, basic character concentration includes at least one character;According to basic character Each character of collection builds part library, wherein part library includes at least one component, each component includes component skeleton line Information, component skeleton line information include at least one stroke, each stroke includes the first style of writing width and skeleton line coordinate points; According to the style of font to be developed, similar with the style of font to be developed group of character matrix plate is selected, wherein group character matrix plate includes will The character group word information of character is automatically generated, each character group word information includes building block information, building block information Describe component and component information converting;According to the component skeleton line information in part library and the composition portion in group character matrix plate Part information, by the character set that each character transformation in group character matrix plate is font to be developed.To design and produce less Chinese Character Symbol, puts into less manpower, improves character producing efficiency, reduce and do the word time, reduce and do word cost;Simultaneously as A group word directly is carried out using the skeleton line of primitive part and stroke brush stroke data, both ensure that font pen shape style, while also changing The problem of stroke deforms during existing automatic mosaic has been apt to it so that result character library font style is more unified, improves character library The working efficiency of exploitation ensure that the final mass of finished product character library.
Fig. 5 is the flow chart provided by Embodiment 2 of the present invention that do word method based on skeleton line, in the base of embodiment one On plinth, as shown in figure 5, step 102 the method for the present embodiment specifically includes:
Each component for extracting composition character is concentrated from basic character, with component parts library.
In the present embodiment, specifically, each component for extracting composition character is concentrated from basic character, with component parts library. The part library obtained from will include multiple components.Each component includes:Component identification code, component skeleton line information, component Skeleton line information includes at least one stroke, each stroke includes the first style of writing width, style of writing information and skeleton line coordinates Point.
Specifically, the component for splitting all characters automatically can be concentrated from ready-made basic character, then carry out phase Merge like property, the character of each font retains a component, forming member library.To which each component includes:Component identification code, Glyph skeleton line, style of writing and the first style of writing width.
For example, Fig. 6 be component " Ren " provided by Embodiment 2 of the present invention that do in word method based on skeleton line and The schematic diagram of the skeleton line and style of writing information of " Quan ".Information such as the following table 2 of component " Ren " and " Quan ".
The information of 2 component of table " Ren " and " Quan "
Building block information includes:Component information converting, component information converting include the offset ginseng of the component in character Number information, zooming parameter information, rotation parameter information;
Step 104, it specifically includes:
The component skeleton line information that each component of current character is obtained from part library, believes according to the transformation in group character matrix plate Breath is handled for each component, and each component in part library is transformed on the target component of font to be developed, will Each character transformation in group character matrix plate is the character set of font to be developed.
Wherein, each component in part library is transformed on the target component of font to be developed, including:
By the skeleton line coordinate points P0 (x0, y0) of each stroke of the component in part library, it is converted into the mesh of font to be developed On the profile point P (x, y) for marking each stroke of component, wherein (x, y)=(x0, y0) * Mat2+ (XOffset, YOffset), Mat2 is the parameter informations such as scaling, the rotation of a two-dimensional transform matrix description component, and XOffset indicates the offset of X-direction, YOffset indicates the offset of Y-direction;
By the first style of writing width of each stroke of the component in part library, it is transformed to each of the target component of font to be developed Second style of writing width of stroke, wherein the second style of writing widthW is the first style of writing width, and x is that component laterally scales Ratio, y are component longitudinal direction scaling.
In the present embodiment, specifically, group character matrix plate includes the character group word information that will automatically generate character, each Character group word information includes character code, building block information, wherein building block information includes component identification code, component change Information is changed, component information converting includes offset parameter information, zooming parameter information, the rotation parameter letter of the component in character Breath, constructs two-dimensional transform matrix Mat2=A11A12A21A22, for indicating the rotation of component, inclining according to component information converting Oblique and scale transformation, corresponding translation transformation is indicated with XOffset and YOffset.
Then, according to part library, group character matrix plate, the character set of font to be developed is generated.It specifically includes:It is obtained from part library The component skeleton line information for taking each component of current character is carried out according to the information converting in group character matrix plate for each component Processing, each component in part library is transformed on the target component of font to be developed, and each character that will be organized in character matrix plate becomes It is changed to the character set of font to be developed.The character that the character set of font to be developed includes, with the group character matrix plate in step 103 Character is consistent.
Specifically, each component in part library is transformed to and is divided into two parts on the target component of font to be developed.One Part is the transformation of skeleton line, is converted to each coordinate points of skeleton line, by each stroke of the component in part library Skeleton line coordinate points P0 (x0, y0) is converted on the profile point P (x, y) of each stroke of the target component of font to be developed, In, (x, y)=(x0, y0) * Mat2+ (XOffset, YOffset), Mat2 are the contractings of a two-dimensional transform matrix description component The parameter informations such as put, rotate, can obtain (x, y)=(x0+x0*XScale, y0+y0*YScale)+(XOffset, YOffset), XScale indicates that the scale value of X-direction, YScale indicate that the scale value of Y-direction, XOffset indicate the inclined of X-direction It moves, YOffset indicates the offset of Y-direction.Another part is the transformation of style of writing, and the style of writing of font works as pen there are certain width When picture skeleton line zooms in and out variation, need corresponding style of writing width being carried out at the same time scale transformation, the transformation of font style of writing width Computational methods it is as follows:If component transverse direction scaling is x, component longitudinal direction scaling is y, by each of the component in part library First style of writing width of stroke is transformed to the second style of writing width of each stroke of the target component of font to be developed Wherein, w is the first style of writing width.Fig. 7 does doing automatically in word method to be provided by Embodiment 2 of the present invention based on skeleton line The effect diagram of word, as shown in fig. 7, top half is effect after skeleton line transformation, lower half portion is the increase in style of writing transformation Treated finally does word effect.
After step 104, further include:
Step 201 integrates the character set of basic character set and font to be developed, constitutes and integrates character set;To whole It closes character set to be modified, to constitute revised integration character set.
In the present embodiment, specifically, finally, the character set of basic character set and font to be developed is integrated, structure At integration character set.It is then possible to which character carries out hand inspection one by one, it is found that problematic character is manually modified, finally Font data is formed into a complete character library, obtains revised integration character set.
By this programme, original the problem of doing component scaling deformation in word scheme can be improved, it is only necessary to design and produce few The Chinese character of amount;Simultaneously as component can be zoomed in and out arbitrarily, and will not be deformed, such prototype part can only make one Secondary, multiple without making simultaneously, which reduces the quantity that initial designs make character, improve work efficiency, no Influence the final mass of finished product character library.
For the present embodiment by obtaining basic character set, basic character concentration includes at least one character;According to basic character Each character of collection builds part library, wherein part library includes at least one component, each component includes component skeleton line Information, component skeleton line information include at least one stroke, each stroke includes the first style of writing width and skeleton line coordinate points; According to the style of font to be developed, similar with the style of font to be developed group of character matrix plate is selected, wherein group character matrix plate includes will The character group word information of character is automatically generated, each character group word information includes building block information, building block information Describe component and component information converting;According to the component skeleton line information in part library and the composition portion in group character matrix plate Part information, by the character set that each character transformation in group character matrix plate is font to be developed;By basic character set and font to be developed Character set integrated, constitute integrate character set;It is modified to integrating character set, to constitute revised integration character Collection.To design and produce less chinese character, less manpower is put into, improves character producing efficiency, is reduced when doing word Between, it reduces and does word cost;Simultaneously as directly carrying out a group word using the skeleton line of primitive part and stroke brush stroke data, both It ensure that font pen shape style, while also improving the problem of stroke deforms during existing automatic mosaic so that result character library Font style is more unified, improves the working efficiency of character library exploitation, ensure that the final mass of finished product character library.
Fig. 8 is the structural schematic diagram for doing word device based on skeleton line that the embodiment of the present invention three provides, as shown in figure 8, Device provided in this embodiment, including:
Acquisition module 31, for obtaining basic character set, basic character concentration includes at least one character;
Module 32 is built, for according to each character of basic character set, building part library, wherein part library include to A few component, each component includes component skeleton line information, and component skeleton line information includes at least one stroke, each Stroke includes the first style of writing width and skeleton line coordinate points;
Selecting module 33 selects similar with the style of font to be developed group of word for the style according to font to be developed Template, wherein group character matrix plate includes the character group word information that will automatically generate character, each character group word information includes group At component information, building block information describes component and component information converting;
Conversion module 34, for according to the component skeleton line information in part library and the building block in group character matrix plate Information, by the character set that each character transformation in group character matrix plate is font to be developed.
Word device can perform that the embodiment of the present invention one provides to the doing based on skeleton line of the present embodiment based on skeleton line Word method is done, realization principle is similar, and details are not described herein again.
For the present embodiment by obtaining basic character set, basic character concentration includes at least one character;According to basic character Each character of collection builds part library, wherein part library includes at least one component, each component includes component skeleton line Information, component skeleton line information include at least one stroke, each stroke includes the first style of writing width and skeleton line coordinate points; According to the style of font to be developed, similar with the style of font to be developed group of character matrix plate is selected, wherein group character matrix plate includes will The character group word information of character is automatically generated, each character group word information includes building block information, building block information Describe component and component information converting;According to the component skeleton line information in part library and the composition portion in group character matrix plate Part information, by the character set that each character transformation in group character matrix plate is font to be developed.To design and produce less Chinese Character Symbol, puts into less manpower, improves character producing efficiency, reduce and do the word time, reduce and do word cost;Simultaneously as A group word directly is carried out using the skeleton line of primitive part and stroke brush stroke data, both ensure that font pen shape style, while also changing The problem of stroke deforms during existing automatic mosaic has been apt to it so that result character library font style is more unified, improves character library The working efficiency of exploitation ensure that the final mass of finished product character library.
Fig. 9 is the structural schematic diagram for doing word device based on skeleton line that the embodiment of the present invention four provides, in embodiment three On the basis of, as shown in figure 9, device provided in this embodiment, builds module 32, is specifically used for:
Each component for extracting composition character is concentrated from basic character, with component parts library.
Building block information includes:Component information converting;
Conversion module 34, is specifically used for:
The component skeleton line information that each component of current character is obtained from part library, believes according to the transformation in group character matrix plate Breath is handled for each component, and each component in part library is transformed on the target component of font to be developed, will Each character transformation in group character matrix plate is the character set of font to be developed.
Specifically, conversion module 34 are specifically used for:
The component skeleton line information that each component of current character is obtained from part library, believes according to the transformation in group character matrix plate Breath is handled for each component, by the skeleton line coordinate points P0 (x0, y0) of each stroke of the component in part library, transformation To the profile point P (x, y) of each stroke of the target component of font to be developed, wherein (x, y)=(x0, y0) * Mat2+ (XOffset, YOffset), Mat2 are the parameter informations such as scaling, the rotation of a two-dimensional transform matrix description component, XOffset Indicate that the offset of X-direction, YOffset indicate the offset of Y-direction;
By the first style of writing width of each stroke of the component in part library, it is transformed to each of the target component of font to be developed Second style of writing width of stroke, wherein the second style of writing widthW is the first style of writing width, and x is that component laterally scales Ratio, y are component longitudinal direction scaling.
Further include:
Module 41 is integrated, is used in conversion module 34 according to the component skeleton line information and group character matrix plate in part library In building block information, by each character transformation in group character matrix plate be font to be developed character set after, by base word The character set of symbol collection and font to be developed is integrated, and is constituted and is integrated character set;It is modified to integrating character set, is repaiied with constituting Integration character set after just.
The present embodiment based on skeleton line do word device can perform it is provided by Embodiment 2 of the present invention based on skeleton line Word method is done, realization principle is similar, and details are not described herein again.
For the present embodiment by obtaining basic character set, basic character concentration includes at least one character;According to basic character Each character of collection builds part library, wherein part library includes at least one component, each component includes component skeleton line Information, component skeleton line information include at least one stroke, each stroke includes the first style of writing width and skeleton line coordinate points; According to the style of font to be developed, similar with the style of font to be developed group of character matrix plate is selected, wherein group character matrix plate includes will The character group word information of character is automatically generated, each character group word information includes building block information, building block information Describe component and component information converting;According to the component skeleton line information in part library and the composition portion in group character matrix plate Part information, by the character set that each character transformation in group character matrix plate is font to be developed;By basic character set and word to be developed The character set of body is integrated, and is constituted and is integrated character set;It is modified to integrating character set, to constitute revised integration character Collection.To design and produce less chinese character, less manpower is put into, improves character producing efficiency, is reduced when doing word Between, it reduces and does word cost;Simultaneously as directly carrying out a group word using the skeleton line of primitive part and stroke brush stroke data, both It ensure that font pen shape style, while also improving the problem of stroke deforms during existing automatic mosaic so that result character library Font style is more unified, improves the working efficiency of character library exploitation, ensure that the final mass of finished product character library.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features; And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of doing word method based on skeleton line, which is characterized in that including:
Basic character set is obtained, basic character concentration includes at least one character;
According to each character of basic character set, part library is built, wherein part library includes at least one component, each portion Part includes component skeleton line information, and component skeleton line information includes at least one stroke, each stroke includes that the first style of writing is wide Degree and skeleton line coordinate points;
According to the style of font to be developed, similar with the style of font to be developed group of character matrix plate is selected, wherein group character matrix plate packet The character group word information of character will be automatically generated by including, each character group word information includes building block information, the composition Component information describes component and component information converting;
It, will be in group character matrix plate according to the component skeleton line information in part library and the building block information in group character matrix plate Each character transformation is the character set of font to be developed.
2. according to the method described in claim 1, it is characterized in that, each character according to basic character set, builds component Library, including:
Each component for extracting composition character is concentrated from basic character, with component parts library.
3. according to the method described in claim 1, it is characterized in that, building block information includes:Component information converting;
Building block information in the component skeleton line information and group character matrix plate according in part library, will organize character matrix plate Each character transformation be font to be developed character set, including:
The component skeleton line information that each component of current character is obtained from part library, according to the information converting needle in group character matrix plate Each component is handled, each component in part library is transformed on the target component of font to be developed, word will be organized Each character transformation in template is the character set of font to be developed.
4. according to the method described in claim 3, it is characterized in that, each component by part library transforms to word to be developed On the target component of body, including:
By the skeleton line coordinate points P0 (x0, y0) of each stroke of the component in part library, it is converted into the target portion of font to be developed On the profile point P (x, y) of each stroke of part, wherein (x, y)=(x0, y0) * Mat2+ (XOffset, YOffset), Mat2 are The parameter informations such as scaling, the rotation of one two-dimensional transform matrix description component, XOffset indicate the offset of X-direction, YOffset Indicate the offset of Y-direction;
By the first style of writing width of each stroke of the component in part library, it is transformed to each stroke of the target component of font to be developed The second style of writing width, wherein the second style of writing widthW is the first style of writing width, and x is component transverse direction pantograph ratio Example, y are component longitudinal direction scaling.
5. according to claim 1-4 any one of them methods, which is characterized in that in the component skeleton according in part library Building block information in line information and group character matrix plate, by the word that each character transformation in group character matrix plate is font to be developed After symbol collection, further include:
The character set of basic character set and font to be developed is integrated, constitutes and integrates character set;
It is modified to integrating character set, to constitute revised integration character set.
6. a kind of doing word device based on skeleton line, which is characterized in that including:
Acquisition module, for obtaining basic character set, basic character concentration includes at least one character;
Module is built, for each character according to basic character set, builds part library, wherein part library includes at least one Component, each component include component skeleton line information, and component skeleton line information includes at least one stroke, each stroke packet Include the first style of writing width and skeleton line coordinate points;
Selecting module selects similar with the style of font to be developed group of character matrix plate for the style according to font to be developed, In, group character matrix plate includes the character group word information that will automatically generate character, each character group word information includes building block Information, the building block information describe component and component information converting;
Conversion module is used for according to the component skeleton line information in part library and the building block information in group character matrix plate, will Each character transformation in group character matrix plate is the character set of font to be developed.
7. device according to claim 6, which is characterized in that the structure module is specifically used for:
Each component for extracting composition character is concentrated from basic character, with component parts library.
8. device according to claim 6, which is characterized in that building block information includes:Component information converting;
The conversion module, is specifically used for:
The component skeleton line information that each component of current character is obtained from part library, according to the information converting needle in group character matrix plate Each component is handled, each component in part library is transformed on the target component of font to be developed, word will be organized Each character transformation in template is the character set of font to be developed.
9. device according to claim 8, which is characterized in that the conversion module is specifically used for:
The component skeleton line information that each component of current character is obtained from part library, according to the information converting needle in group character matrix plate Each component is handled, by the skeleton line coordinate points P0 (x0, y0) of each stroke of the component in part library, is converted into and waits for It develops on the profile point P (x, y) of each stroke of the target component of font, wherein (x, y)=(x0, y0) * Mat2+ (XOffset, YOffset), Mat2 is the parameter informations such as scaling, the rotation of a two-dimensional transform matrix description component, and XOffset indicates X-direction Offset, YOffset indicate Y-direction offset;
By the first style of writing width of each stroke of the component in part library, it is transformed to each stroke of the target component of font to be developed The second style of writing width, wherein the second style of writing widthW is the first style of writing width, and x is component transverse direction pantograph ratio Example, y are component longitudinal direction scaling.
10. according to claim 6-9 any one of them devices, which is characterized in that further include:
Integrate module, for the conversion module according in part library component skeleton line information and group character matrix plate in Building block information, be by each character transformation in group character matrix plate font to be developed character set after, by basic character set and The character set of font to be developed is integrated, and is constituted and is integrated character set;It is modified to integrating character set, it is revised to constitute Integrate character set.
CN201710014397.3A 2017-01-09 2017-01-09 Character making method and device based on skeleton line Active CN108288297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710014397.3A CN108288297B (en) 2017-01-09 2017-01-09 Character making method and device based on skeleton line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710014397.3A CN108288297B (en) 2017-01-09 2017-01-09 Character making method and device based on skeleton line

Publications (2)

Publication Number Publication Date
CN108288297A true CN108288297A (en) 2018-07-17
CN108288297B CN108288297B (en) 2020-10-16

Family

ID=62819343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710014397.3A Active CN108288297B (en) 2017-01-09 2017-01-09 Character making method and device based on skeleton line

Country Status (1)

Country Link
CN (1) CN108288297B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0684582A2 (en) * 1994-05-16 1995-11-29 Bayer Corporation Method and apparatus for font data storage and retrieval
CN1169569A (en) * 1996-05-28 1998-01-07 夏普公司 Character pattern generating apparatus capable of easily generating characters of plurality of different fonts
CN1217524A (en) * 1997-11-18 1999-05-26 夏普公司 Character-picture generator, character generating method and storage medium thereof
CN103136769A (en) * 2011-12-02 2013-06-05 北京三星通信技术研究有限公司 Method and device of generation of writing style font of user
CN103425627A (en) * 2012-05-21 2013-12-04 文鼎科技开发股份有限公司 Method for generating stroke and method for generating font

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0684582A2 (en) * 1994-05-16 1995-11-29 Bayer Corporation Method and apparatus for font data storage and retrieval
CN1169569A (en) * 1996-05-28 1998-01-07 夏普公司 Character pattern generating apparatus capable of easily generating characters of plurality of different fonts
CN1217524A (en) * 1997-11-18 1999-05-26 夏普公司 Character-picture generator, character generating method and storage medium thereof
CN103136769A (en) * 2011-12-02 2013-06-05 北京三星通信技术研究有限公司 Method and device of generation of writing style font of user
CN103425627A (en) * 2012-05-21 2013-12-04 文鼎科技开发股份有限公司 Method for generating stroke and method for generating font

Also Published As

Publication number Publication date
CN108288297B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN107610200B (en) Character library rapid generation method based on characteristic template
CN106384094A (en) Chinese word stock automatic generation method based on writing style modeling
US8605095B2 (en) Generating vector output from a physical simulation of a bristle brush
CN107644006A (en) A kind of Chinese script character library automatic generation method based on deep neural network
JP3019202B2 (en) Font type conversion method using center axis conversion
CN102750337B (en) Producing method and device for font
US20130181995A1 (en) Handwritten character font library
CN112100742A (en) Map processing method and device based on three-dimensional model of ship structure and storage medium
CN108319578B (en) Method for generating medium for data recording
CN110956678B (en) Font processing method and device
CN109615671A (en) A kind of character library sample automatic generation method, computer installation and readable storage medium storing program for executing
CN106056055B (en) Brahma-sutra Tibetan hand script Chinese input equipment sample generating method based on component combination
CN112765935B (en) Character appearance personalized processing method and system
CN109726989B (en) Electronic system for hand-written ticket
Hu et al. Parameterizable fonts based on shape components
CN110211032A (en) Generation method, device and the readable storage medium storing program for executing of chinese character
KR101565719B1 (en) Method and system for generating control instruction according to change of glyph outline
CN115841671B (en) Handwriting skeleton correction method, system and storage medium
CN108288297A (en) Word method and apparatus are done based on skeleton line
CN101819683A (en) Method for reconstructing Chinese character font
CN114861595B (en) Vector line transformation-based individual font generation method
CN109697275A (en) Character library generation method and device
CN101957837B (en) Method for accessing stroke vector font
Gao et al. Automatic generation of chinese vector fonts via deep layout inferring
Lian et al. Cvfont: Synthesizing chinese vector fonts via deep layout inferring

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230613

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District, Cheng Fu Road, No. 298, Zhongguancun Fangzheng building, 9 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.