Word stock design method based on computer

文档序号:1296844 发布日期:2020-08-07 浏览:8次 中文

阅读说明:本技术 一种基于计算机的字库设计方法 (Word stock design method based on computer ) 是由 伍曙光 孙淑伟 韩金宝 陶天毅 宋春雨 于 2020-04-15 设计创作,主要内容包括:本发明提供一种基于计算机的字库设计方法,包括如下步骤:a.对所有汉字字型进行细化处理,得到汉字结构数据库和汉字笔画数据库;b.读取设计师的设计文件,对设计师设计好的所有字型进行细化处理,得到第一样字结构数据库和样字笔画数据库;c.应用计算机分析处理汉字结构数据库和第一样字结构数据库,得到一个训练模型;d.应用训练模型将汉字结构变换成样字结构并存储为第二样字结构数据库;e.应用计算机分析处理第二样字结构数据库、汉字笔画数据库和样字笔画数据库,得到符合设计师风格的所有汉字字型的字库。本发明解决了字库设计周期长、工作繁琐、效率低下、成本很高、不标准化等问题。(The invention provides a computer-based word stock design method, which comprises the following steps: a. thinning all Chinese character patterns to obtain a Chinese character structure database and a Chinese character stroke database; b. reading a design file of a designer, and refining all fonts designed by the designer to obtain a first font structure database and a font stroke database; c. analyzing and processing the Chinese character structure database and the first character structure database by using a computer to obtain a training model; d. applying a training model to convert the Chinese character structure into a character-like structure and storing the character-like structure as a second character-like structure database; e. and analyzing and processing the second sample character structure database, the Chinese character stroke database and the sample character stroke database by using a computer to obtain a character library of all Chinese character types according with the style of a designer. The invention solves the problems of long word stock design period, fussy work, low efficiency, high cost, non-standardization and the like.)

1. A computer-based word stock design method is characterized by comprising the following steps:

step a, thinning all Chinese character patterns by using a computer to obtain a Chinese character structure database and a Chinese character stroke database;

b, reading a design file of a designer by using a computer, and refining all fonts designed by the designer to obtain a first font structure database and a font stroke database;

c, analyzing and processing the Chinese character structure database and the first character structure database by using a computer to obtain a training model;

d, converting the Chinese character structure into a character-like structure by applying a training model and storing the character-like structure as a second character-like structure database;

and e, analyzing and processing the second sample character structure database, the Chinese character stroke database and the sample character stroke database by using a computer to obtain a character library of all Chinese character types according with the style of a designer.

2. The computer-based word stock design method of claim 1, wherein step a comprises:

step a1. extracts the single-pixel skeleton information of each Chinese character and stores it as Chinese character structure database.

3. The computer-based word stock design method of claim 2, wherein step a further comprises:

and step a2, extracting the stroke and stroke order information of each Chinese character and storing the stroke and stroke order information as a Chinese character stroke database.

4. The computer-based word stock design method of claim 2, wherein the single-pixel skeleton information is structural information of a font.

5. The computer-based word stock design method of claim 1, wherein the design file includes a font design data file storing typeface information of typefaces designed by designers and a configuration file storing ranges of chinese characters involved in the word stock.

6. The computer-based word stock design method of claim 1, wherein step b comprises:

and b1, extracting single-pixel skeleton information of the font designed by the designer and storing the single-pixel skeleton information as a first font structure database.

7. The computer-based word stock design method of claim 6, wherein step b comprises:

step b2. extracts strokes and stroke order information for the font designed by the designer for storage as a typeface stroke database.

8. The computer-based word stock design method of claim 1, wherein in step c, for each Chinese character corresponding to the single-pixel skeleton information in the first character structure database, the corresponding single-pixel skeleton information in the Chinese character structure database is extracted and respectively recorded as the skeleton information of the sample character and the skeleton information of the standard Chinese character, and a training model is obtained by analyzing and learning the process of converting the skeleton information of the standard Chinese character into the skeleton information of the sample character by using a computer.

9. The computer-based word stock design method of claim 5, wherein in the step d, a single pixel skeleton corresponding to each Chinese character within a Chinese character range in the configuration file is extracted from a Chinese character structure database, the training model is applied to the extracted single pixel skeleton to obtain a single pixel skeleton conforming to the style of a designer, and the transformed single pixel skeleton information is stored as a second word structure database.

10. The computer-based word stock design method of claim 9, wherein in step e, for each Chinese character within the range of Chinese characters in the configuration file, corresponding single-pixel skeleton information and required stroke information are extracted from the second typeface structure database and the typeface stroke database, respectively, and the extracted strokes are sequentially filled into the extracted single-pixel skeleton according to stroke order information defined in the Chinese character stroke database, wherein each stroke filling is controlled by a computer to select the most appropriate stroke information for filling.

Technical Field

The invention relates to the technical field of word stock, in particular to a word stock design method based on a computer.

Background

Chinese character library design standard: GB2312-80 is a national standard released in 1980, and 6763 Chinese characters are collected; GBK is 'Chinese character coding expansion specification' published in 1995, contains all Chinese characters of GB2312-80, and collects 20902 characters; 8105 Chinese characters are collected in a general Chinese character standard table published by the country in 2013.

At present, each Chinese character needs to be designed one by one and then is transcoded into a character library, the design of a set of character libraries takes more than half a year, even one or two years, and the design of some traditional character libraries even takes two or three years. When a font designer is making a font, each Chinese character often needs to be designed and corrected, for example, each stroke of the character is independently designed, or the designed stroke structure is properly cut and deformed and then reused, and then the designed stroke, radical or radical is dragged to a proper position, if the obtained character is not beautiful enough, the stroke needs to be redesigned and the dragging process needs to be repeated. This makes the entire process of making fonts cumbersome, resulting in a large amount of time and effort required to design a complete set of word stocks.

The common existing solution is that the common stroke structure of Chinese characters is designed in advance, and the elements such as the initial position of the stroke, the angle of the bending part and the like are specified, and all the characters designed later are formed by splicing the designed stroke structures or the appropriate deformation of the stroke structures. Although the overall design efficiency and the aesthetic property are improved to a certain extent by adopting the method, a complete word stock is designed because a large amount of manual intervention is not available, and the work is still time-consuming and labor-consuming.

In addition, at present, attempts for reducing the workload of designing the Chinese characters based on a computer exist, but the attempts are only to solve a certain link in the process of designing the Chinese characters, a designer still needs to carry out a large amount of design work in the early stage, and the final generated result still needs to be adjusted and optimized by the designer one by one, so that the design period is long, the work is tedious, the efficiency is low, a large amount of time is needed for the designer to work, the cost is very high, and the workload of the designer is not reduced greatly. And the final result has randomness, does not accord with the standardized requirement of word stock design, and the final result still needs a designer to adjust and optimize in a large quantity.

Disclosure of Invention

The invention provides a computer-based word stock design method, which solves the problems of long word stock design period, fussy work, low efficiency, high cost, non-standardization and the like.

In order to solve the technical problems, the technical scheme adopted by the invention is as follows: a computer-based word stock design method comprises the following steps:

step a, thinning all Chinese character patterns by using a computer to obtain a Chinese character structure database and a Chinese character stroke database;

b, reading a design file of a designer by using a computer, and refining all fonts designed by the designer to obtain a first font structure database and a font stroke database;

c, analyzing and processing the Chinese character structure database and the first character structure database by using a computer to obtain a training model;

d, converting the Chinese character structure into a character-like structure by applying a training model and storing the character-like structure as a second character-like structure database;

and e, analyzing and processing the second sample character structure database, the Chinese character stroke database and the sample character stroke database by using a computer to obtain a character library of all Chinese character types according with the style of a designer.

Preferably, step a includes:

step a1. extracts the single-pixel skeleton information of each Chinese character and stores it as Chinese character structure database.

Preferably, step a further comprises:

and step a2, extracting the stroke and stroke order information of each Chinese character and storing the stroke and stroke order information as a Chinese character stroke database.

Preferably, the single-pixel skeleton information is structural information of a font.

Preferably, the design file comprises a font design data file and a configuration file, wherein the font design data file stores typeface information designed by a designer, and the configuration file stores Chinese character ranges related to the word stock.

Preferably, step b comprises:

and b1, extracting single-pixel skeleton information of the font designed by the designer and storing the single-pixel skeleton information as a first font structure database.

Preferably, step b comprises:

step b2. extracts strokes and stroke order information for the font designed by the designer for storage as a typeface stroke database.

Preferably, in step c, for the chinese character corresponding to each single-pixel skeleton information in the first sample structure database, extracting the corresponding single-pixel skeleton information in the chinese character structure database, respectively writing the single-pixel skeleton information and the standard chinese character skeleton information, and analyzing and learning the process of transforming from the standard chinese character skeleton information to the sample chinese character skeleton information by using a computer to obtain a training model.

Preferably, in step d, the single-pixel skeleton corresponding to each chinese character in the range of the chinese character in the configuration file is extracted from the chinese character structure database, the training model is applied to the extracted single-pixel skeleton to obtain a single-pixel skeleton conforming to the style of the designer, and the converted single-pixel skeleton information is stored as the second character structure database.

Preferably, in step e, for each Chinese character in the Chinese character range in the configuration file, corresponding single-pixel skeleton information and required stroke information are extracted from the second sample character structure database and the sample character stroke database respectively, the extracted strokes are sequentially filled into the extracted single-pixel skeleton according to stroke order information defined in the Chinese character stroke database, and each stroke filling is controlled by a computer to select the most appropriate stroke information for filling.

Preferably, step e comprises:

step e1., for each character filled with strokes, the computer is used to adjust the character stroke angle, the middle palace, the character weight, the visual center, etc.

E2. the overall style of the character library is beautified by computer, including the common phrases and the Chinese characters in the sentences, to ensure the overall style of the character library to be harmonious and uniform.

Step e3. shows the word stock to the designer through the interactive interface, and the designer can choose to continue fine tuning to obtain the word stock of all Chinese character types conforming to the style of the designer.

Preferably, the chinese character structure database stores structure information of standard chinese characters, i.e., a skeleton structure of each chinese character.

Preferably, the first typeface structure database stores structural information of typefaces designed by designers, i.e., a skeleton structure of typefaces conforming to the styles of designers.

Preferably, the second character pattern structure database stores the structure information of all character patterns corresponding to all Chinese characters in the Chinese character range in the configuration file after the training model transformation.

Preferably, the Chinese character stroke database stores the writing order of strokes of Chinese characters, and records which stroke is written by the first stroke of Chinese characters, for example, the first stroke of a character is a point.

Preferably, the writing sequence of the complex strokes in the Chinese character stroke database is stored, and the strokes such as the horizontal folding hook and the like need to be continuously disassembled and then stored.

Preferably, the typeface stroke database stores the specific shape of each stroke of the typeface and records the geometric characteristics of each stroke of the typeface, including the basic strokes of a reserve point, a horizontal stroke, a vertical stroke, a left-falling stroke, a right-falling stroke and the like.

Preferably, in the step e, since the stroke order of the Chinese characters with different design styles has no difference, that is, the stroke order information of the same Chinese character in the Chinese character stroke database and the sample character stroke database is the same, when the strokes are filled, the stroke order information in the Chinese character stroke database and the sample character stroke database can be in one-to-one correspondence, thereby ensuring the accuracy and the filling efficiency of the strokes filling.

Compared with the prior art, the invention has the following beneficial effects: by the invention, a font designer only needs to design 50 to 100 characters, the computer automatically analyzes and learns the style of the designed characters, and other over ten thousands characters which accord with the style of the font design of the designer are automatically designed, thereby greatly simplifying the design flow of the font library, greatly reducing the workload of the font designer, and improving the overall design efficiency of the font library by tens of times. By the computer, the word stock design is simpler. The word stock design efficiency is greatly improved, and the word stock design time is saved.

Most of the work of the invention is completed by the computer, the word stock designer only needs to design 50 to 100 style words, and the computer automatically generates other words to be designed, so that the work of the word stock design becomes more efficient and simpler. Based on machine learning, the invention can design the fonts more standard, standard and beautiful on the basis of the style fonts designed by the font library designers, and the design quality of the font library is greatly improved.

Drawings

FIG. 1 is a schematic diagram illustrating steps of a computer-based word stock design method according to the present invention.

FIG. 2 is a schematic diagram of the computer-based word stock design method of the present invention.

Detailed Description

The technical solutions of the present invention are further described in detail below with reference to the accompanying drawings, but the scope of the present invention is not limited to the following.

In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.

The present invention will be further described with reference to the following examples, which are intended to illustrate only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, other embodiments used by those skilled in the art without any creative effort belong to the protection scope of the present invention.

Referring to fig. 1-2, an alternative embodiment of the present invention is shown for illustrative purposes only and is not limited thereto.

11页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:阅读信息的处理方法、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!