[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109657203B - Method and system for adjusting font size of font library - Google Patents

Method and system for adjusting font size of font library Download PDF

Info

Publication number
CN109657203B
CN109657203B CN201710947905.3A CN201710947905A CN109657203B CN 109657203 B CN109657203 B CN 109657203B CN 201710947905 A CN201710947905 A CN 201710947905A CN 109657203 B CN109657203 B CN 109657203B
Authority
CN
China
Prior art keywords
processed
character
chinese characters
adjustment
preset
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.)
Active
Application number
CN201710947905.3A
Other languages
Chinese (zh)
Other versions
CN109657203A (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 CN201710947905.3A priority Critical patent/CN109657203B/en
Publication of CN109657203A publication Critical patent/CN109657203A/en
Application granted granted Critical
Publication of CN109657203B publication Critical patent/CN109657203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes

Landscapes

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

Abstract

The invention provides a method and a system for adjusting the font size of a font library. The adjusting method comprises the steps of carrying out first adjustment on Chinese characters to be processed according to a preset scaling principle so that the minimum character frame gap in character frame gaps of the Chinese characters to be processed is equal to a first preset value; determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple; and counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value. The invention effectively solves the problem of small font of the personalized word stock, reduces the subsequent manual adjustment cost and improves the overall beauty and harmony of the personalized word stock.

Description

Method and system for adjusting font size of font library
Technical Field
The invention relates to the technical field of computer word stock software manufacturing, in particular to a word stock word size adjusting method, a word stock word size adjusting system, computer equipment and a computer readable storage medium.
Background
The making process of computer word library includes the following steps: designing a manuscript; scanning and inputting the data into a computer; identifying design words and carrying out digital fitting; character trimming; quality inspection; integrated into a library, etc.
Computer word stock is developed to the present, and word stock products are also concerned by more and more people who love calligraphy and are interested in diversified application of Chinese characters in the information era. In the process of developing new fonts, font manufacturers also feel the important requirement that a font library is applied to professional publishing such as traditional publishing and issuing. Meanwhile, the revolution of information propagation modes brought by the internet era brings a new topic, namely the propagation modes of media such as personal blogs, personalized publications and the like, to the application of computer word banks, and the important propagation carrier, namely the computer font, can serve personalized expression and the highlighting of personal individuality to a greater extent.
The personalized word stock is produced according to the requirements of individual calligraphers and their fan groups, and the individual hand-written characters are converted into the actual personal computer word stock product. Its birth marks "computer word stock" as a "consumer product" and will enter the personalized era. The generation of personalized fonts prompts more font designers, calligraphers and calligraphy enthusiasts to continuously push high-quality Chinese fonts to the society, and enriches various media such as printed publications, websites, television stations and the like. In the age of the high-speed development of the society, the appearance of the personalized word stock shows the self art level through a computer, and the personalized word stock carries out more intuitive communication on a network platform, can highlight personal style, drives the enthusiasm of calligraphy practice, enhances Chinese culture and plays a decisive role in improving the popularization of calligraphy art.
However, the personalized word stock is different from the traditional computer word stock, and the personalized word stock is mainly used for positioning consumer products, so that the requirements of the public are met, the production cost is reduced, and the production period is shortened.
All the characters required by the personalized word stock usually need to be written into the manuscript by the author, for example, the word stock contains the Chinese character standards GB, GBK and the like. The manuscript is scanned and input into a computer, and is directly integrated into a library through digital fitting, then the library is tested, and the like, because the manuscript written by an author is generally written in a word frame, the distance between a word and the word frame is generally larger than that in an actual word library; because the number of written words is large, an author can complete the writing for many times, and the sizes of the written words can be different at different times, so that the word stock directly generated is obviously smaller in word face and non-uniform in word face size.
The size of the character face refers to the full degree of the character structure in the character grid, and determines the width of the character space. The character face of the personalized word stock is small, and the problem that the characters are not uniform is ubiquitous. Aiming at the processing method of the phenomenon font manufacturer, the whole is amplified as much as possible according to the principle that all Chinese characters cannot be out of frames, and then the Chinese characters are stored in a library and tested; if the later-stage characters need further improvement or are in commercial use, part of the character faces of the Chinese characters are found to be small during testing, screening is carried out manually, amplification is carried out independently, or a user writes non-uniform characters again, and the characters are fitted into a character form and then added into a character library again, so that the method is time-consuming and labor-consuming.
Therefore, how to provide a simple and effective method can effectively solve the problem of small font of the personalized word stock, reduce the workload of subsequent font testing and writing, shorten the development period of the personalized word stock, and improve the overall beauty and harmony of the personalized word stock becomes a problem to be solved urgently.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
Therefore, the first aspect of the present invention is to provide a method for adjusting the font size of a font library.
A second aspect of the present invention is to provide a system for adjusting font size of a font library.
A third aspect of the invention is directed to a computer device.
A fourth aspect of the present invention is directed to a computer-readable storage medium.
In view of the above, according to an aspect of the present invention, a method for adjusting font size of a font library is provided, including: performing first adjustment on the Chinese characters to be processed according to a preset scaling principle so as to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value; determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple; and counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
The method for adjusting the font size of the font library provided by the invention has the advantages that the first adjustment is carried out on Chinese characters to be processed according to the preset scaling principle, so that the minimum font frame gap in the font frame gaps of the Chinese characters to be processed is equal to a first preset value, and the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the font frames through the step of first scaling; after the first zooming, the whole character face of the personalized character library is still slightly small, because partial Chinese characters are written in a larger way, firstly, the characters are more complex, and in the other situation, the individual strokes of the Chinese characters are longer, so that the effect of the personalized whole character library is influenced, therefore, after the first zooming is carried out, the adjustment times of the second adjustment are determined according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file in the Chinese characters to be processed after the first zooming is carried out, the Chinese characters to be processed are adjusted for the second time according to the adjustment times, and the minimum area occupied by most of the Chinese characters to be processed in the Chinese characters to be processed is distributed in a larger proportion in the area of character lattices through the second adjustment, so that the Chinese characters to be processed are amplified for the second time; after the Chinese characters are adjusted for the second time, a part of the Chinese characters exceed the character frames, then the character frame gaps of the Chinese characters to be processed after the second adjustment are counted, the frame Chinese characters are determined according to the character frame gaps, the out-frame Chinese characters are adjusted for the third time according to the preset scaling principle, so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value, most of the Chinese characters in the character library are enlarged integrally through the third scaling, the character face of the personalized character library is enlarged, and other most of the Chinese characters are enlarged uniformly except for the part of the larger Chinese characters, so that the integrity is coordinated, the problem that the character face of the personalized character library is small is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the harmony of the personalized character library are improved.
The method for adjusting the font size of the font library can also have the following technical characteristics:
in the above technical solution, preferably, before performing the first adjustment on the chinese character to be processed according to the preset scaling principle, the method further includes: acquiring font data of Chinese characters to be processed in a font library; and preprocessing the font data of the Chinese characters to be processed.
In the technical scheme, before the Chinese characters to be processed are adjusted for the first time according to a preset scaling principle, the font data of the Chinese characters to be processed in a character library are obtained, if the font data is selected, in a ttf character library, the contrast relation between codes and indexes is obtained from a cmap, and the font data of all the Chinese characters are obtained from a glyf; otf, if it is, obtaining the code and index relationship from the cmap, and obtaining the character data of all Chinese characters from the CFF table; the method comprises the steps of carrying out standardized preprocessing on font data of Chinese characters to be processed, and translating the font data to enable the font data to be in a standard character grid with coordinates (0,0) at the lower left part so as to facilitate later-stage processing. Of course, the method is not limited to the ttf or otf font library, and can be applied to other vector font data.
In any of the above technical solutions, preferably, after performing third adjustment on the out-of-frame chinese character according to a preset scaling principle, the method further includes: and updating the font data of the Chinese characters to be processed in the word stock and other data in the word stock according to the Chinese characters to be processed after the third adjustment.
In the technical scheme, after a boxed Chinese character is adjusted for the third time according to a preset scaling principle, font data of the Chinese character to be processed in a word stock and other data in the word stock are updated according to the Chinese character to be processed after the third adjustment, firstly, all Chinese character font outlines are reversely processed during standardization, if font data are obtained from a ttf word stock, the font data after automatic scaling are updated in a glyf table, if the font data are obtained from an otf word stock, the font data after automatic scaling are updated in a CFF table, the minimum area of all font data in the glyf or CFF table is recalculated, if the font data are different from bounding boxes in a head table, updating is carried out, the time variable of the word stock in the head is modified, and then all checksums in the word stock are recalculated and updated. Therefore, the scaling of the personalized word stock and the updating of data are realized.
In any of the above technical solutions, preferably, the first adjustment is performed on the chinese character to be processed according to a preset scaling principle, which specifically includes: counting the character frame gaps of the Chinese characters to be processed; judging whether the frame gap is larger than 0; if the character frame gap is larger than 0, carrying out first amplification on the Chinese characters to be processed according to a preset scaling principle; and if the character frame gap is less than or equal to 0, carrying out first reduction on the Chinese characters to be processed according to a preset scaling principle.
In the technical scheme, in the process of carrying out first adjustment on the Chinese characters to be processed according to a preset scaling principle, firstly, counting character frame gaps of the Chinese characters to be processed, and then judging whether the character frame gaps are larger than 0, if the character frame gaps are larger than 0, the Chinese characters to be processed do not exceed the character frames, and the character face is smaller, carrying out first amplification on the Chinese characters to be processed according to the preset scaling principle, so that the character face reaches the maximum value on the premise that all the processed Chinese characters do not exceed the character frames; if the character frame gap is less than or equal to 0, the situation that the Chinese characters to be processed exceed the character frame is indicated, the Chinese characters to be processed are reduced for the first time according to the preset scaling principle, and the maximum font value of all the processed Chinese characters is achieved on the premise that the Chinese characters do not exceed the character frame.
In any of the above technical solutions, preferably, before determining an adjustment multiple of the second adjustment according to a minimum area occupied by the chinese character to be processed in the first preset sub-level and a minimum area occupied by the chinese character to be processed in the second preset sub-level and performing the second adjustment on the chinese character to be processed according to the adjustment multiple, the method further includes: dividing Chinese characters to be processed, the area of the minimum region of which is more than or equal to 80% of the area of the character grids, into first preset grades; and dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into a second preset step.
In the technical scheme, the adjustment multiple of the second adjustment is determined according to the minimum area occupied by the Chinese character to be processed in the first preset sub-file and the minimum area occupied by the Chinese character to be processed in the second preset sub-file, and before the Chinese character to be processed is adjusted for the second time according to the adjustment multiple, the Chinese character to be processed after the first zooming is firstly sub-files: dividing Chinese characters to be processed, the area of the minimum region of which is more than or equal to 80% of the area of a character grid, into first preset grades, wherein the character face of each grade is large, and all the Chinese characters in an ideal state are in the grade; dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into second preset grading Chinese characters with smaller character faces and larger proportion of the second preset grading Chinese characters in the character library, and hopefully adjusting the Chinese characters in the grade into the first preset grading Chinese characters. The first-time scaled Chinese characters to be processed are divided into a first preset grade and a second preset grade, so that the multiple of the second-time adjustment is calculated according to the Chinese characters in the first preset grade and the second preset grade.
In any of the above technical solutions, preferably, the adjusting multiple of the second adjustment is determined according to the minimum area occupied by the chinese character to be processed in the first preset sub-level and the minimum area occupied by the chinese character to be processed in the second preset sub-level, and the second adjustment is performed on the chinese character to be processed according to the adjusting multiple, and specifically includes: acquiring a minimum area occupied by the Chinese characters to be processed in the first preset grading, and calculating an average value of the minimum area as a first average value; acquiring a minimum area occupied by the Chinese characters to be processed in the second preset grading, and calculating the average value of the minimum area as a second average value; and taking the ratio of the first average value to the second average value as an adjustment multiple of the second adjustment, and performing the second adjustment on the Chinese characters to be processed according to the adjustment multiple.
In the technical scheme, the process of performing the second adjustment on the Chinese characters to be processed specifically comprises the following steps: acquiring a minimum area occupied by the Chinese characters to be processed in the first preset grading, and calculating an average value of the minimum area as a first average value; acquiring a minimum area occupied by the Chinese characters to be processed in the second preset grading, and calculating the average value of the minimum area as a second average value; and taking the ratio of the first average value to the second average value as the adjustment multiple of the second adjustment. Because the minimum area of the most Chinese characters in the refined character is distributed over 80 percent of the character frame, according to the principle, the minimum area of the most Chinese characters in the character library is distributed over 80 percent of the area of the character lattice by grading the Chinese characters to be processed after the first scaling and scaling according to the scaling value calculated by the minimum area of the two grades of Chinese characters, the second amplification of the Chinese characters to be processed is realized, and the second amplification is the unified amplification of the character surface of the whole character library, so the integrity is more harmonious.
In any of the above technical solutions, preferably, the frame gap is a minimum gap between the chinese character to be processed and the frame.
In the technical scheme, the character frame gap is the minimum gap between the Chinese character to be processed and the character frame, the character frame gap is larger than 0, the character frame is not shown, the character frame gap is smaller than 0, the Chinese character exceeds the character frame, and the numerical value is larger and the character face is smaller under the condition that the character frame gap is larger than 0.
According to a second aspect of the present invention, there is provided a system for adjusting font size of a font library, comprising: the first adjusting unit is used for adjusting the Chinese characters to be processed for the first time according to a preset scaling principle so that the minimum character frame gap in character frame gaps of the Chinese characters to be processed is equal to a first preset value; the second adjusting unit is used for determining the adjusting times of the second adjustment according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file, and performing the second adjustment on the Chinese characters to be processed according to the adjusting times; and the third adjusting unit is used for counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
According to the system for adjusting the font size of the font library, provided by the invention, the first adjusting unit adjusts the Chinese characters to be processed for the first time according to the preset scaling principle, so that the minimum font frame gap in the font frame gaps of the Chinese characters to be processed is equal to the first preset value, and through the step of scaling for the first time, the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the font frames; after the first scaling, the whole face of the personalized word stock is still small, because partial Chinese character writing is bigger, firstly, the characters are more complex, in another case, the individual strokes of a Chinese character are long in initial stroke or receiving stroke, which affects the whole effect of individuation, therefore, after the first scaling, the second adjusting unit determines the adjusting multiple of the second adjusting according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level in the Chinese character to be processed after the first scaling, and performs the second adjusting on the Chinese character to be processed according to the adjusting multiple, through the second adjustment, the minimum areas where most Chinese characters are distributed in the character lattices in the Chinese characters to be processed reach a larger proportion, and the Chinese characters to be processed are amplified again; after the second adjustment of the Chinese characters, a part of the Chinese characters are beyond the character frame, then the third adjustment unit counts the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to a first preset value, through the third zooming, most of the Chinese characters in the character library are enlarged as a whole, so that the character face of the personalized character library is enlarged, and because the part of the larger Chinese characters is reduced a little, other most Chinese characters are uniformly amplified, so the integrity is coordinated, the problem that the character face of the personalized character library is small is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the harmony of the personalized character library are improved.
The system for adjusting the font size of the font library according to the invention can also have the following technical characteristics:
in the above technical solution, preferably, the obtaining unit is configured to obtain font data of a Chinese character to be processed in a font library; and the preprocessing unit is used for preprocessing the font data of the Chinese characters to be processed.
In the technical scheme, before the Chinese characters to be processed are adjusted for the first time according to a preset scaling principle, an acquisition unit acquires the font data of the Chinese characters to be processed in a character library, if the font data is selected, in a ttf character library, the contrast relation between codes and indexes is acquired from a cmap, and the font data of all the Chinese characters is acquired from a glyf; otf, if it is, obtaining the code and index relationship from the cmap, and obtaining the character data of all Chinese characters from the CFF table; the preprocessing unit carries out standardized preprocessing on the font data of the Chinese characters to be processed, and translates the font data to enable the font data to be in a standard character grid with lower left coordinates of (0,0) so as to facilitate later processing. Of course, the method is not limited to the ttf or otf font library, and can be applied to other vector font data.
In any of the above technical solutions, preferably, the updating unit is configured to update the font data of the chinese character to be processed in the word stock and other data in the word stock according to the chinese character to be processed after the third adjustment.
In the technical scheme, after the boxed Chinese character is adjusted for the third time according to a preset scaling principle, an updating unit updates the font data of the Chinese character to be processed in a character library and other data in the character library according to the Chinese character to be processed after the third adjustment, firstly, all the font outlines of the Chinese character are reversely processed during standardization, if the font data are obtained from a ttf character library, the font data after the automatic scaling are updated in a glyf table, if the font data are obtained from an otf character library, the font data after the automatic scaling are updated in a CFF table, the minimum area where all the font data in the glyf or CFF table are located is recalculated, if the minimum area is different from bounding boxes in a head table, the updating is carried out, the time variable of the character library in the head is modified, and then all checksums in the character library are recalculated and updated. Therefore, the scaling of the personalized word stock and the updating of data are realized.
In any of the above technical solutions, preferably, the first adjusting unit specifically includes: the statistical unit is used for counting the character frame gaps of the Chinese characters to be processed; a judging unit for judging whether the frame gap is greater than 0; the amplifying unit is used for amplifying the Chinese characters to be processed for the first time according to a preset zooming principle if the character frame gap is larger than 0; and the reducing unit is used for reducing the Chinese characters to be processed for the first time according to a preset scaling principle if the character frame gap is less than or equal to 0.
In the technical scheme, a first adjusting unit carries out a first adjusting process on Chinese characters to be processed according to a preset scaling principle, firstly, a counting unit counts character frame gaps of the Chinese characters to be processed, then a judging unit judges whether the character frame gaps are larger than 0, if the character frame gaps are larger than 0, the Chinese characters to be processed do not exceed the character frames, and the character face is smaller, then an amplifying unit carries out first amplification on the Chinese characters to be processed according to the preset scaling principle, and the character face reaches the maximum value on the premise that all the Chinese characters to be processed do not exceed the character frames; if the character frame gap is less than or equal to 0, which indicates that the Chinese character to be processed exceeds the character frame, the reduction unit reduces the Chinese character to be processed for the first time according to the preset scaling principle, so that the character face reaches the maximum value on the premise that all the processed Chinese characters do not exceed the character frame.
In any of the above technical solutions, preferably, the first dividing unit is configured to divide the chinese character to be processed, whose minimum area is greater than or equal to 80% of the area of the character lattice, into a first preset sub-level; and the second dividing unit is used for dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into a second preset grading.
In the technical scheme, the adjustment multiple of the second adjustment is determined according to the minimum area occupied by the Chinese character to be processed in the first preset sub-file and the minimum area occupied by the Chinese character to be processed in the second preset sub-file, and before the Chinese character to be processed is adjusted for the second time according to the adjustment multiple, the Chinese character to be processed after the first zooming is firstly sub-files: the first dividing unit divides Chinese characters to be processed with the area of the minimum region being more than or equal to 80% of the area of the character grid into a first preset stage, the character face of the stage is large, and all the Chinese characters in an ideal state are in the stage; the second dividing unit divides the Chinese characters to be processed with the minimum area between 60% and 80% of the area of the character grid into second preset grades of Chinese characters with smaller character faces and larger proportion of the Chinese characters in the character library, and hopefully, the Chinese characters in the grade are adjusted to be the first preset grade Chinese characters. The first-time scaled Chinese characters to be processed are divided into a first preset grade and a second preset grade, so that the multiple of the second-time adjustment is calculated according to the Chinese characters in the first preset grade and the second preset grade.
In any of the above technical solutions, preferably, the second adjusting unit specifically includes: the first calculation unit is used for acquiring a minimum area occupied by the Chinese characters to be processed in the first preset grade and calculating an average value of the minimum area as a first average value; the second calculation unit is used for acquiring a minimum area occupied by the Chinese characters to be processed in a second preset grading, and calculating the average value of the minimum area as a second average value; and the confirming unit is used for taking the ratio of the first average value to the second average value as an adjustment multiple of the second adjustment and carrying out the second adjustment on the Chinese character to be processed according to the adjustment multiple.
In the technical scheme, the process of performing the second adjustment on the Chinese characters to be processed by the second adjustment unit specifically comprises the following steps: the first calculation unit acquires a minimum area occupied by the Chinese characters to be processed in the first preset grade, and calculates the average value of the minimum area as a first average value; the second calculation unit acquires a minimum area occupied by the Chinese characters to be processed in a second preset grade, and calculates the average value of the minimum area as a second average value; the confirming unit takes the ratio of the first average value and the second average value as the adjusting multiple of the second adjustment. Because the minimum area of the most Chinese characters in the refined character is distributed over 80 percent of the character frame, according to the principle, the minimum area of the most Chinese characters in the character library is distributed over 80 percent of the area of the character lattice by grading the Chinese characters to be processed after the first scaling and scaling according to the scaling value calculated by the minimum area of the two grades of Chinese characters, the second amplification of the Chinese characters to be processed is realized, and the second amplification is the unified amplification of the character surface of the whole character library, so the integrity is more harmonious.
In any of the above technical solutions, preferably, the frame gap is a minimum gap between the chinese character to be processed and the frame.
In the technical scheme, the character frame gap is the minimum gap between the Chinese character to be processed and the periphery of the character frame, the character frame gap is larger than 0, the character frame is indicated that the Chinese character does not appear, the character frame gap is smaller than 0, the Chinese character exceeds the character frame, and the numerical value is larger and the character face is smaller under the condition that the character frame gap is larger than 0.
According to a third aspect of the present invention, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program: performing first adjustment on the Chinese characters to be processed according to a preset scaling principle so as to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value; determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple; and counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
The invention provides a computer device, which realizes that when a processor executes a computer program: the method comprises the steps of firstly adjusting Chinese characters to be processed according to a preset scaling principle to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value, and realizing that the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the character frames through the step of first scaling; after the first zooming, the whole character face of the personalized character library is still slightly small, because partial Chinese characters are written in a larger way, firstly, the characters are more complex, and in the other situation, the individual strokes of the Chinese characters are longer, so that the effect of the personalized whole character library is influenced, therefore, after the first zooming is carried out, the adjustment times of the second adjustment are determined according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file in the Chinese characters to be processed after the first zooming is carried out, the Chinese characters to be processed are adjusted for the second time according to the adjustment times, and the minimum area occupied by most of the Chinese characters to be processed in the Chinese characters to be processed is distributed in a larger proportion in the area of character lattices through the second adjustment, so that the Chinese characters to be processed are amplified for the second time; after the Chinese characters are adjusted for the second time, a part of the Chinese characters exceed the character frames, then the character frame gaps of the Chinese characters to be processed after the second adjustment are counted, the frame Chinese characters are determined according to the character frame gaps, the out-frame Chinese characters are adjusted for the third time according to the preset scaling principle, so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value, most of the Chinese characters in the character library are enlarged integrally through the third scaling, the character face of the personalized character library is enlarged, and other most of the Chinese characters are enlarged uniformly except for the part of the larger Chinese characters, so that the integrity is coordinated, the problem that the character face of the personalized character library is small is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the harmony of the personalized character library are improved.
According to a fourth aspect of the invention, there is provided a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of: performing first adjustment on the Chinese characters to be processed according to a preset scaling principle so as to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value; determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple; and counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements: the method comprises the steps of firstly adjusting Chinese characters to be processed according to a preset scaling principle to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value, and realizing that the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the character frames through the step of first scaling; after the first zooming, the whole character face of the personalized character library is still slightly small, because partial Chinese characters are written in a larger way, firstly, the characters are more complex, and in the other situation, the individual strokes of the Chinese characters are longer, so that the effect of the personalized whole character library is influenced, therefore, after the first zooming is carried out, the adjustment times of the second adjustment are determined according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file in the Chinese characters to be processed after the first zooming is carried out, the Chinese characters to be processed are adjusted for the second time according to the adjustment times, and the minimum area occupied by most of the Chinese characters to be processed in the Chinese characters to be processed is distributed in a larger proportion in the area of character lattices through the second adjustment, so that the Chinese characters to be processed are amplified for the second time; after the Chinese characters are adjusted for the second time, a part of the Chinese characters exceed the character frames, then the character frame gaps of the Chinese characters to be processed after the second adjustment are counted, the frame Chinese characters are determined according to the character frame gaps, the out-frame Chinese characters are adjusted for the third time according to the preset scaling principle, so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value, most of the Chinese characters in the character library are enlarged integrally through the third scaling, the character face of the personalized character library is enlarged, and other most of the Chinese characters are enlarged uniformly except for the part of the larger Chinese characters, so that the integrity is coordinated, the problem that the character face of the personalized character library is small is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the harmony of the personalized character library are improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow diagram illustrating a method for font resizing in a font library according to one embodiment of the present invention;
FIG. 2 is a diagram illustrating fonts and word boxes in a word stock according to an embodiment of the invention;
FIG. 3 is a diagram illustrating the font resizing effect of the font library according to one embodiment of the present invention;
FIG. 4 is a diagram illustrating the font resizing effect of a font library according to one embodiment of the present invention;
FIG. 5 is a diagram illustrating the font resizing effect of a font library according to one embodiment of the present invention;
FIG. 6 is a flow diagram illustrating a method for font resizing in a font library according to another embodiment of the present invention;
FIG. 7 is a flow diagram illustrating a method for font resizing in a font library according to yet another embodiment of the present invention;
FIG. 8 is a schematic block diagram of a system for font resizing of a font library according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a system for font resizing of a font library according to another embodiment of the present invention;
FIG. 10 shows a schematic block diagram of a computer device of an embodiment of the present invention.
Detailed Description
So that the manner in which the above recited aspects, features and advantages of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to the embodiments thereof which are illustrated in the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described herein, and therefore the scope of the present invention is not limited to the specific embodiments disclosed below.
An embodiment of a first aspect of the present invention provides a method for adjusting font size of a font library, and fig. 1 shows a flow diagram of the method for adjusting font size of a font library according to an embodiment of the present invention:
102, performing first adjustment on the Chinese character to be processed according to a preset scaling principle so as to enable the minimum character frame gap in character frame gaps of the Chinese character to be processed to be equal to a first preset value;
104, determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-file and the minimum area occupied by the Chinese character to be processed in the second preset sub-file, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple;
and 106, counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
The method for adjusting the font size of the font library provided by the invention has the advantages that the first adjustment is carried out on Chinese characters to be processed according to the preset scaling principle, so that the minimum font frame gap in the font frame gaps of the Chinese characters to be processed is equal to a first preset value, and the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the font frames through the step of first scaling; after the first zooming, the whole character face of the personalized character library is still slightly small, because partial Chinese characters are written in a larger way, firstly, the characters are more complex, and in the other situation, the individual strokes of the Chinese characters are longer, so that the effect of the personalized whole character library is influenced, therefore, after the first zooming is carried out, the adjusting times of the second adjusting are determined according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file in the Chinese characters to be processed after the first zooming is carried out, wherein as the schematic diagram of the fonts and the character frames shown in FIG. 2, the inner rectangular frame is the minimum area occupied by the fonts, the outer rectangular frame is the character frame of the fonts in the character library, the second adjusting is carried out on the Chinese characters to be processed according to the adjusting, and the area of the minimum area occupied by most Chinese characters in the character grid reaches a larger proportion through the second adjusting, the Chinese characters to be processed are amplified again; after the Chinese characters are adjusted for the second time, a part of the Chinese characters are bound to exceed the character frames, then the character frame gaps of the Chinese characters to be processed after the second adjustment are counted, the frame Chinese characters are determined according to the character frame gaps, the out-frame Chinese characters are adjusted for the third time according to the preset scaling principle, so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value, and through the third scaling, the schematic diagram of the character face size adjustment effect of the character library shown in the figures 3, 4 and 5 shows the effect of comparing the small four-character style with the system Microsoft elegant black and regular script. The first line is the effect of the existing word stock zooming technology after zooming, the second line is the effect of the invention after automatically adjusting the word face, the third line is the system Microsoft elegant black, and the fourth line is the system regular script. Most of the Chinese characters in the character library are amplified integrally, so that the character face of the personalized character library is enlarged, and the integrity is more coordinated because most of other Chinese characters are amplified uniformly except for the part of the larger Chinese characters, so that the problem that the character face of the personalized character library is smaller is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the compatibility of the personalized character library are improved.
Fig. 6 is a flowchart illustrating a font resizing method for a font library according to another embodiment of the present invention. Wherein, the method comprises the following steps:
step 602, obtaining font data of Chinese characters to be processed in a font library;
step 604, preprocessing the font data of the Chinese characters to be processed;
606, performing first adjustment on the Chinese character to be processed according to a preset scaling principle so as to enable the minimum character frame gap in the character frame gaps of the Chinese character to be processed to be equal to a first preset value;
step 608, determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-file and the minimum area occupied by the Chinese character to be processed in the second preset sub-file, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple;
step 610, counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to a first preset value;
and step 612, updating the font data of the Chinese characters to be processed in the word stock and other data in the word stock according to the Chinese characters to be processed after the third adjustment.
In an embodiment of the present invention, preferably, before performing the first adjustment on the chinese character to be processed according to the preset scaling principle, the method further includes: acquiring font data of Chinese characters to be processed in a font library; and preprocessing the font data of the Chinese characters to be processed.
In the embodiment, before the Chinese characters to be processed are adjusted for the first time according to the preset scaling principle, the font data of the Chinese characters to be processed in the character library are obtained, if the selection is yes, the code and index contrast relation is obtained from the cmap in the ttf character library, and the font data of all the Chinese characters are obtained from the glyf; otf, if it is, obtaining the code and index relationship from the cmap, and obtaining the character pattern data of all Chinese characters from CFf table; the method comprises the steps of carrying out standardized preprocessing on font data of Chinese characters to be processed, and translating the font data to enable the font data to be in a standard character grid with coordinates (0,0) at the lower left part so as to facilitate later-stage processing. Of course, the method is not limited to the ttf or otf font library, and can be applied to other vector font data.
In an embodiment of the present invention, preferably, after performing the third adjustment on the out-of-box chinese character according to the preset scaling rule, the method further includes: and updating the font data of the Chinese characters to be processed in the word stock and other data in the word stock according to the Chinese characters to be processed after the third adjustment.
In the embodiment, after the boxed Chinese character is adjusted for the third time according to the preset scaling principle, the font data of the Chinese character to be processed in the word stock and other data in the word stock are updated according to the Chinese character to be processed after the third adjustment, firstly, the font outline of all the Chinese characters is reversely processed during standardization, if the font data is obtained from the ttf word stock, the font data after the automatic scaling is updated in the glyf table, if the font data is obtained from the otf word stock, the font data after the automatic scaling is updated in the CFF table, the minimum area of all the font data in the glyf or CFF table is recalculated, if the minimum area is different from bounding boxes in the head table, the updating is carried out, the time variable of the word stock in the head is modified, and then all the checksums in the word stock are recalculated and updated. Therefore, the scaling of the personalized word stock and the updating of data are realized.
Fig. 7 is a flowchart illustrating a font resizing method for a font library according to yet another embodiment of the present invention. Wherein, the method comprises the following steps:
step 702, acquiring font data of Chinese characters to be processed in a font library;
step 704, preprocessing the font data of the Chinese characters to be processed;
step 706, counting the character frame gaps of the Chinese characters to be processed;
step 708, determining whether the frame gap is greater than 0, if so, entering step 710, and if not, entering step 712;
step 710, performing first amplification on the Chinese characters to be processed according to a preset scaling principle;
step 712, performing a first reduction on the Chinese characters to be processed according to a preset scaling principle;
714, dividing the Chinese characters to be processed with the area of the minimum region being more than or equal to 80% of the area of the character grid into a first preset grade;
step 716, dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into a second preset grade;
step 718, obtaining a minimum area occupied by the Chinese characters to be processed in the first preset grade, and calculating an average value of the minimum area as a first average value;
step 720, acquiring the minimum area occupied by the Chinese characters to be processed in the second preset grading, and calculating the average value of the minimum area as a second average value;
step 722, taking the ratio of the first average value to the second average value as an adjustment multiple of the second adjustment, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple;
step 724, counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to a first preset value;
and 726, updating the font data of the Chinese characters to be processed in the word stock and other data in the word stock according to the Chinese characters to be processed after the third adjustment.
In an embodiment of the present invention, preferably, the first adjustment of the chinese character to be processed according to the preset scaling principle includes: counting the character frame gaps of the Chinese characters to be processed; judging whether the frame gap is larger than 0; if the character frame gap is larger than 0, carrying out first amplification on the Chinese characters to be processed according to a preset scaling principle; and if the character frame gap is less than or equal to 0, carrying out first reduction on the Chinese characters to be processed according to a preset scaling principle.
In the embodiment, in the process of performing first adjustment on the Chinese characters to be processed according to the preset scaling principle, firstly, counting the character frame gaps of the Chinese characters to be processed, and then judging whether the character frame gaps are larger than 0, if the character frame gaps are larger than 0, the Chinese characters to be processed do not exceed the character frames, and the character face is smaller, performing first amplification on the Chinese characters to be processed according to the preset scaling principle, so that the character face reaches the maximum value on the premise that all the processed Chinese characters do not exceed the character frames; if the character frame gap is less than or equal to 0, the situation that the Chinese characters to be processed exceed the character frame is indicated, the Chinese characters to be processed are reduced for the first time according to the preset scaling principle, and the maximum font value of all the processed Chinese characters is achieved on the premise that the Chinese characters do not exceed the character frame.
In an embodiment of the present invention, preferably, before determining an adjustment multiple of the second adjustment according to a minimum area occupied by the chinese character to be processed in the first preset profile and a minimum area occupied by the chinese character to be processed in the second preset profile, and performing the second adjustment on the chinese character to be processed according to the adjustment multiple, the method further includes: dividing Chinese characters to be processed, the area of the minimum region of which is more than or equal to 80% of the area of the character grids, into first preset grades; and dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into a second preset step.
In this embodiment, the adjustment multiple of the second adjustment is determined according to the minimum area occupied by the Chinese character to be processed in the first preset sub-file and the minimum area occupied by the Chinese character to be processed in the second preset sub-file, and before the Chinese character to be processed is adjusted for the second time according to the adjustment multiple, the Chinese character to be processed after the first scaling is first sub-files: dividing Chinese characters to be processed, the area of the minimum region of which is more than or equal to 80% of the area of a character grid, into first preset grades, wherein the character face of each grade is large, and all the Chinese characters in an ideal state are in the grade; dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into second preset grading Chinese characters with smaller character faces and larger proportion of the second preset grading Chinese characters in the character library, and hopefully adjusting the Chinese characters in the grade into the first preset grading Chinese characters. The first-time scaled Chinese characters to be processed are divided into a first preset grade and a second preset grade, so that the multiple of the second-time adjustment is calculated according to the Chinese characters in the first preset grade and the second preset grade.
In an embodiment of the present invention, preferably, determining an adjustment multiple of the second adjustment according to a minimum area occupied by the chinese character to be processed in the first preset profile and a minimum area occupied by the chinese character to be processed in the second preset profile, and performing the second adjustment on the chinese character to be processed according to the adjustment multiple specifically includes: acquiring a minimum area occupied by the Chinese characters to be processed in the first preset grading, and calculating an average value of the minimum area as a first average value; acquiring a minimum area occupied by the Chinese characters to be processed in the second preset grading, and calculating the average value of the minimum area as a second average value; and taking the ratio of the first average value to the second average value as an adjustment multiple of the second adjustment, and performing the second adjustment on the Chinese characters to be processed according to the adjustment multiple.
In this embodiment, the process of performing the second adjustment on the chinese character to be processed specifically includes: acquiring a minimum area occupied by the Chinese characters to be processed in the first preset grading, and calculating an average value of the minimum area as a first average value; acquiring a minimum area occupied by the Chinese characters to be processed in the second preset grading, and calculating the average value of the minimum area as a second average value; and taking the ratio of the first average value to the second average value as the adjustment multiple of the second adjustment. Because the minimum area of the most Chinese characters in the refined character is distributed over 80 percent of the character frame, according to the principle, the minimum area of the most Chinese characters in the character library is distributed over 80 percent of the area of the character lattice by grading the Chinese characters to be processed after the first scaling and scaling according to the scaling value calculated by the minimum area of the two grades of Chinese characters, the second amplification of the Chinese characters to be processed is realized, and the second amplification is the unified amplification of the character surface of the whole character library, so the integrity is more harmonious.
In one embodiment of the present invention, preferably, the frame gap is the minimum gap between the chinese character to be processed and the gap around the frame.
In this embodiment, the frame gap is the minimum gap between the Chinese character to be processed and the frame, the frame gap is greater than 0, which indicates that the Chinese character is not out of the frame, the frame gap is less than 0, which indicates that the Chinese character exceeds the frame, and when the frame gap is greater than 0, the larger the value is, the smaller the face is.
In a second aspect of the present invention, a system 800 for adjusting font size of a font library is provided, and fig. 8 shows a schematic block diagram of the system 800 for adjusting font size of a font library according to an embodiment of the present invention:
a first adjusting unit 802, configured to perform a first adjustment on a to-be-processed Chinese character according to a preset scaling rule, so that a minimum frame gap among frame gaps of the to-be-processed Chinese character is equal to a first preset value;
a second adjusting unit 804, configured to determine an adjustment multiple of a second adjustment according to a minimum area occupied by the to-be-processed Chinese character in the first preset sub-level and a minimum area occupied by the to-be-processed Chinese character in the second preset sub-level, and perform the second adjustment on the to-be-processed Chinese character according to the adjustment multiple;
the third adjusting unit 806 is configured to count the character-frame gaps of the to-be-processed Chinese characters after the second adjustment, determine the framed Chinese characters according to the character-frame gaps, and perform a third adjustment on the out-framed Chinese characters according to a preset scaling rule, so that a minimum character-frame gap in the character-frame gaps of the out-framed Chinese characters is equal to the first preset value.
According to the system 800 for adjusting the font size of the font library, provided by the invention, the first adjusting unit 802 performs first adjustment on the Chinese characters to be processed according to the preset scaling principle, so that the minimum font frame gap in the font frame gaps of the Chinese characters to be processed is equal to a first preset value, and through the step of first scaling, the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the font frames; after the first zooming, the whole character face of the personalized character library is still small, because partial Chinese characters are written in a large scale, firstly, the characters are complex, and in another situation, the individual strokes of the Chinese characters are long, so that the effect of the personalized whole body is influenced, therefore, after the first zooming is carried out, the second adjusting unit 804 determines the adjusting times of the second adjusting according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file in the Chinese characters to be processed after the first zooming is carried out, wherein as shown in the schematic diagram of the fonts and the character frames shown in fig. 2, the inner rectangular frame is the minimum area occupied by the fonts, the outer rectangular frame is the character frame of the fonts in the character library, the Chinese characters to be processed are adjusted for the second time according to the adjusting times, and then the second adjusting is carried out, the minimum areas where most Chinese characters in the Chinese characters to be processed are distributed in the character grids reach a larger proportion, so that the Chinese characters to be processed are amplified again; after the second adjustment of the chinese characters, a part of the chinese characters inevitably exceeds the frame, then the third adjustment unit 806 counts the frame gaps of the chinese characters to be processed after the second adjustment, determines the frame chinese characters according to the frame gaps, and performs the third adjustment on the out-frame chinese characters according to the preset scaling rule, so that the minimum frame gap in the frame gaps of the out-frame chinese characters is equal to the first preset value, and through the third scaling, as shown in the schematic diagram of the adjustment effect of the font size of the font library shown in fig. 3, fig. 4, and fig. 5, under the small four-font, the effect of the comparison with the systematic microsoft black character and the regular script is achieved. The first line is the effect of the existing word stock zooming technology after zooming, the second line is the effect of the invention after automatically adjusting the word face, the third line is the system Microsoft elegant black, and the fourth line is the system regular script. Most of the Chinese characters in the character library are amplified integrally, so that the character face of the personalized character library is enlarged, and the integrity is more coordinated because most of other Chinese characters are amplified uniformly except for the part of the larger Chinese characters, so that the problem that the character face of the personalized character library is smaller is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the compatibility of the personalized character library are improved.
FIG. 9 shows a schematic block diagram of a system 900 for font resizing in a font library according to another embodiment of the present invention. The system 900 for adjusting the font size of the font library comprises:
a first adjusting unit 902, configured to perform a first adjustment on a to-be-processed Chinese character according to a preset scaling rule, so that a minimum frame gap among frame gaps of the to-be-processed Chinese character is equal to a first preset value;
a second adjusting unit 904, configured to determine an adjustment multiple of a second adjustment according to the minimum area occupied by the to-be-processed Chinese character in the first preset sub-level and the minimum area occupied by the to-be-processed Chinese character in the second preset sub-level, and perform the second adjustment on the to-be-processed Chinese character according to the adjustment multiple;
a third adjusting unit 906, configured to count word-frame gaps of the to-be-processed Chinese characters after the second adjustment, determine frame Chinese characters according to the word-frame gaps, and perform a third adjustment on the out-frame Chinese characters according to a preset scaling rule, so that a minimum word-frame gap in the word-frame gaps of the out-frame Chinese characters is equal to a first preset value;
an obtaining unit 908, configured to obtain font data of a to-be-processed Chinese character in a font library;
a preprocessing unit 910, configured to preprocess the font data of the chinese character to be processed;
an updating unit 912, configured to update the font data of the chinese character to be processed in the font library and other data in the font library according to the chinese character to be processed after the third adjustment;
a first dividing unit 914, configured to divide the chinese characters to be processed, whose minimum area is greater than or equal to 80% of the area of the character lattice, into first preset ranks;
the second dividing unit 916 is configured to divide the chinese characters to be processed, whose minimum area is between 60% and 80% of the area of the character grid, into a second preset step.
The first adjusting unit 902 specifically includes:
a statistic unit 9022, configured to count a frame gap of a Chinese character to be processed;
a judging unit 9024, configured to judge whether a frame gap is greater than 0;
the amplifying unit 9026 is configured to perform first amplification on the Chinese character to be processed according to a preset scaling principle if the frame gap is greater than 0;
and a reduction unit 9028, configured to perform first reduction on the to-be-processed Chinese character according to a preset scaling principle if the frame gap is less than or equal to 0.
The second adjusting unit 904 specifically includes:
a first calculating unit 9042, configured to obtain a minimum region occupied by a Chinese character to be processed in a first preset profile, and calculate an average value of the minimum region as a first average value;
a second calculating unit 9044, configured to obtain a minimum region occupied by the to-be-processed Chinese character in a second preset profile, and calculate an average value of the minimum region as a second average value;
and the confirming unit 9046 is configured to use a ratio of the first average value to the second average value as an adjustment multiple of the second adjustment, and perform the second adjustment on the to-be-processed Chinese character according to the adjustment multiple.
In an embodiment of the present invention, preferably, the obtaining unit 908 is configured to obtain font data of a chinese character to be processed in a font library; the preprocessing unit 910 is configured to preprocess the font data of the chinese character to be processed.
In this embodiment, before the first adjustment of the chinese characters to be processed according to the preset scaling principle, the obtaining unit 908 obtains the font data of the chinese characters to be processed in the font library, if so, the ttf font library obtains the mapping relationship between the codes and the indexes from the cmap, and obtains the font data of all the chinese characters from the glyf; otf, if it is, obtaining the code and index relationship from the cmap, and obtaining the character data of all Chinese characters from the CFF table; the preprocessing unit 910 performs a standardized preprocessing on the font data of the chinese characters to be processed, and translates the font data into a standard character grid with (0,0) coordinates at the bottom left for the convenience of the post-processing. Of course, the method is not limited to the ttf or otf font library, and can be applied to other vector font data.
In an embodiment of the present invention, preferably, the updating unit 912 is configured to update the font data of the chinese character to be processed in the word stock and other data in the word stock according to the chinese character to be processed after the third adjustment.
In this embodiment, after the boxed chinese character is adjusted for the third time according to the preset scaling principle, the updating unit 912 updates the font data of the chinese character to be processed in the font library and other data in the font library according to the chinese character to be processed after the third adjustment, first performs reverse processing on all the font outlines of the chinese characters according to the normalization, if the font data is obtained from the ttf font library, the font data after the automatic scaling is updated in the glyf table, if the font data is obtained from the otf font library, the font data after the automatic scaling is updated in the CFF table, recalculates the minimum area where all the font data in the glyf or CFF table are located, if there is a difference from bounding boxes in the head table, updates, modifies the font library modification time variable in the head, and then recalculates and updates all checksums in the font library. Therefore, the scaling of the personalized word stock and the updating of data are realized.
In an embodiment of the present invention, preferably, the first adjusting unit 902 specifically includes: a statistic unit 9022, configured to count a frame gap of a Chinese character to be processed; a judging unit 9024, configured to judge whether a frame gap is greater than 0; the amplifying unit 9026 is configured to perform first amplification on the Chinese character to be processed according to a preset scaling principle if the frame gap is greater than 0; and a reduction unit 9028, configured to perform first reduction on the to-be-processed Chinese character according to a preset scaling principle if the frame gap is less than or equal to 0.
In this embodiment, in the process of performing the first adjustment on the to-be-processed Chinese character by the first adjustment unit 902 according to the preset scaling principle, first, the statistics unit 9022 performs statistics on the frame gap of the to-be-processed Chinese character, and then the judgment unit 9024 judges whether the frame gap is greater than 0, if the frame gap is greater than 0, it indicates that the to-be-processed Chinese character does not exceed the frame, and the font is small, then the amplification unit 9026 performs the first amplification on the to-be-processed Chinese character according to the preset scaling principle, so that the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the frame; if the frame gap is less than or equal to 0, which indicates that the Chinese characters to be processed exceed the frame, the reduction unit 9028 performs the first reduction on the Chinese characters to be processed according to the preset scaling principle, so that the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the frame.
In an embodiment of the present invention, preferably, the first dividing unit 914 is configured to divide the chinese characters to be processed, whose minimum area is greater than or equal to 80% of the area of the character grid, into a first preset step; the second dividing unit 916 is configured to divide the chinese characters to be processed, whose minimum area is between 60% and 80% of the area of the character grid, into a second preset step.
In this embodiment, the adjustment multiple of the second adjustment is determined according to the minimum area occupied by the Chinese character to be processed in the first preset sub-file and the minimum area occupied by the Chinese character to be processed in the second preset sub-file, and before the Chinese character to be processed is adjusted for the second time according to the adjustment multiple, the Chinese character to be processed after the first scaling is first sub-files: the first dividing unit 914 divides the Chinese characters to be processed with the area of the minimum region being more than or equal to 80% of the area of the character grid into a first preset stage, wherein the character face of the stage is larger, and all the Chinese characters in an ideal state are in the stage; the second dividing unit 916 divides the chinese characters to be processed with the minimum area between 60% and 80% of the area of the character grid into the second preset level, where the character area of the level is smaller and the proportion of the level in the word stock is larger, and we want to adjust the chinese characters in the level to the first preset level chinese characters. The first-time scaled Chinese characters to be processed are divided into a first preset grade and a second preset grade, so that the multiple of the second-time adjustment is calculated according to the Chinese characters in the first preset grade and the second preset grade.
In an embodiment of the present invention, preferably, the second adjusting unit 904 specifically includes: a first calculating unit 9042, configured to obtain a minimum region occupied by a Chinese character to be processed in a first preset profile, and calculate an average value of the minimum region as a first average value; a second calculating unit 9044, configured to obtain a minimum region occupied by the to-be-processed Chinese character in a second preset profile, and calculate an average value of the minimum region as a second average value; and the confirming unit 9046 is configured to use a ratio of the first average value to the second average value as an adjustment multiple of the second adjustment, and perform the second adjustment on the to-be-processed Chinese character according to the adjustment multiple.
In this embodiment, the process of performing the second adjustment on the chinese character to be processed by the second adjusting unit 904 specifically includes: the first calculation unit 9042 obtains a minimum area occupied by the Chinese characters to be processed in the first preset classification, and calculates an average value of the minimum area as a first average value; the second calculation unit 9044 obtains a minimum region occupied by the Chinese characters to be processed in the second preset grade, and calculates an average value of the minimum region as a second average value; the confirming unit 9046 uses the ratio of the first average value to the second average value as the adjustment multiple of the second adjustment. Because the minimum area of the most Chinese characters in the refined character is distributed over 80 percent of the character frame, according to the principle, the minimum area of the most Chinese characters in the character library is distributed over 80 percent of the area of the character lattice by grading the Chinese characters to be processed after the first scaling and scaling according to the scaling value calculated by the minimum area of the two grades of Chinese characters, the second amplification of the Chinese characters to be processed is realized, and the second amplification is the unified amplification of the character surface of the whole character library, so the integrity is more harmonious.
In one embodiment of the present invention, preferably, the frame gap is the minimum gap between the chinese character to be processed and the gap around the frame.
In this embodiment, the frame gap is the minimum gap between the Chinese character to be processed and the frame, the frame gap is greater than 0, which indicates that the Chinese character does not go out of the frame, the frame gap is less than 0, which indicates that the Chinese character exceeds the frame, and when the frame gap is greater than 0, the larger the value is, the smaller the face is.
In embodiments of the third aspect of the present invention, a computer device is provided, and fig. 10 shows a schematic block diagram of a computer device 1000 according to an embodiment of the present invention. Wherein the computer device 1000 comprises:
a memory 1002, a processor 1004, and a computer program stored on the memory 1002 and executable on the processor 1004, the processor 1004 when executing the computer program implementing the steps of: performing first adjustment on the Chinese characters to be processed according to a preset scaling principle so as to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value; determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple; and counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
In the computer device 1000 provided by the present invention, the processor 1004 implements the following when executing the computer program: the method comprises the steps of firstly adjusting Chinese characters to be processed according to a preset scaling principle to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value, and realizing that the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the character frames through the step of first scaling; after the first zooming, the whole character face of the personalized character library is still slightly small, because partial Chinese characters are written in a larger way, firstly, the characters are more complex, and in the other situation, the individual strokes of the Chinese characters are longer, so that the effect of the personalized whole character library is influenced, therefore, after the first zooming is carried out, the adjustment times of the second adjustment are determined according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file in the Chinese characters to be processed after the first zooming is carried out, the Chinese characters to be processed are adjusted for the second time according to the adjustment times, and the minimum area occupied by most of the Chinese characters to be processed in the Chinese characters to be processed is distributed in a larger proportion in the area of character lattices through the second adjustment, so that the Chinese characters to be processed are amplified for the second time; after the Chinese characters are adjusted for the second time, a part of the Chinese characters exceed the character frames, then the character frame gaps of the Chinese characters to be processed after the second adjustment are counted, the frame Chinese characters are determined according to the character frame gaps, the out-frame Chinese characters are adjusted for the third time according to the preset scaling principle, so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value, most of the Chinese characters in the character library are enlarged integrally through the third scaling, the character face of the personalized character library is enlarged, and other most of the Chinese characters are enlarged uniformly except for the part of the larger Chinese characters, so that the integrity is coordinated, the problem that the character face of the personalized character library is small is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the harmony of the personalized character library are improved.
An embodiment of the fourth aspect of the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of: performing first adjustment on the Chinese characters to be processed according to a preset scaling principle so as to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value; determining an adjustment multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level, and performing the second adjustment on the Chinese character to be processed according to the adjustment multiple; and counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to a preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
The present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements: the method comprises the steps of firstly adjusting Chinese characters to be processed according to a preset scaling principle to enable the minimum character frame gap in character frame gaps of the Chinese characters to be processed to be equal to a first preset value, and realizing that the font reaches the maximum value on the premise that all the processed Chinese characters do not exceed the character frames through the step of first scaling; after the first zooming, the whole character face of the personalized character library is still slightly small, because partial Chinese characters are written in a larger way, firstly, the characters are more complex, and in the other situation, the individual strokes of the Chinese characters are longer, so that the effect of the personalized whole character library is influenced, therefore, after the first zooming is carried out, the adjustment times of the second adjustment are determined according to the minimum area occupied by the Chinese characters to be processed in the first preset sub-file and the minimum area occupied by the Chinese characters to be processed in the second preset sub-file in the Chinese characters to be processed after the first zooming is carried out, the Chinese characters to be processed are adjusted for the second time according to the adjustment times, and the minimum area occupied by most of the Chinese characters to be processed in the Chinese characters to be processed is distributed in a larger proportion in the area of character lattices through the second adjustment, so that the Chinese characters to be processed are amplified for the second time; after the Chinese characters are adjusted for the second time, a part of the Chinese characters exceed the character frames, then the character frame gaps of the Chinese characters to be processed after the second adjustment are counted, the frame Chinese characters are determined according to the character frame gaps, the out-frame Chinese characters are adjusted for the third time according to the preset scaling principle, so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value, most of the Chinese characters in the character library are enlarged integrally through the third scaling, the character face of the personalized character library is enlarged, and other most of the Chinese characters are enlarged uniformly except for the part of the larger Chinese characters, so that the integrity is coordinated, the problem that the character face of the personalized character library is small is effectively solved, the subsequent manual adjustment cost is reduced, the development period of the personalized character library is shortened, and the overall attractiveness and the harmony of the personalized character library are improved.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for adjusting the font size of a font library is characterized by comprising the following steps:
performing first adjustment on Chinese characters to be processed according to a preset scaling principle so that a frame gap of the Chinese characters to be processed is equal to a first preset value, wherein the frame gap is the minimum gap between the Chinese characters to be processed and the gaps around the frame;
determining an adjustment multiple of second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset grading and the minimum area occupied by the Chinese character to be processed in the second preset grading, and performing second adjustment on the Chinese character to be processed according to the adjustment multiple;
and counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to the preset scaling principle so that the minimum character frame gap in the character frame gaps of the out-frame Chinese characters is equal to the first preset value.
2. The method for adjusting the font size of a font library according to claim 1, wherein before the first adjustment of the chinese characters to be processed according to the preset scaling principle, the method further comprises:
acquiring font data of the Chinese characters to be processed in a font library;
and preprocessing the font data of the Chinese character to be processed.
3. The method for adjusting the font size of the font library according to claim 2, wherein the first adjustment of the chinese characters to be processed according to a preset scaling principle specifically comprises:
counting the character frame gaps of the Chinese characters to be processed;
judging whether the character frame gap is larger than 0;
if the character frame gap is larger than 0, carrying out first amplification on the Chinese character to be processed according to the preset scaling principle;
and if the character frame gap is less than or equal to 0, carrying out first reduction on the Chinese character to be processed according to the preset scaling principle.
4. The method of claim 1, wherein before determining an adjustment multiple for a second adjustment according to a minimum area occupied by the chinese character to be processed in a first preset sub-level and a minimum area occupied by the chinese character to be processed in a second preset sub-level and performing the second adjustment on the chinese character to be processed according to the adjustment multiple, the method further comprises:
dividing the Chinese characters to be processed with the area of the minimum region being more than or equal to 80% of the area of the character grid into the first preset grades;
and dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into the second preset grades.
5. The method according to claim 4, wherein the second adjustment multiple is determined according to the minimum area occupied by the Chinese character to be processed in the first preset sub-level and the minimum area occupied by the Chinese character to be processed in the second preset sub-level, and the second adjustment is performed on the Chinese character to be processed according to the adjustment multiple, specifically comprising:
acquiring a minimum area occupied by the Chinese characters to be processed in the first preset grade, and calculating an average value of the minimum area as a first average value;
acquiring a minimum area occupied by the Chinese characters to be processed in the second preset grading, and calculating an average value of the minimum area as a second average value;
and taking the ratio of the first average value to the second average value as the adjustment multiple of the second adjustment, and performing the second adjustment on the Chinese characters to be processed according to the adjustment multiple.
6. A system for adjusting the font size of a font library, comprising:
the first adjusting unit is used for adjusting the Chinese characters to be processed for the first time according to a preset scaling principle so that the character frame gap of the Chinese characters to be processed is equal to a first preset value, and the character frame gap is the minimum gap between the Chinese characters to be processed and the gaps around the character frame;
the second adjusting unit is used for determining the adjusting multiple of the second adjustment according to the minimum area occupied by the Chinese character to be processed in the first preset grading and the minimum area occupied by the Chinese character to be processed in the second preset grading, and performing the second adjustment on the Chinese character to be processed according to the adjusting multiple;
and the third adjusting unit is used for counting the character frame gaps of the Chinese characters to be processed after the second adjustment, determining frame Chinese characters according to the character frame gaps, and performing third adjustment on the out-frame Chinese characters according to the preset scaling principle so as to enable the minimum character frame gap in the character frame gaps of the out-frame Chinese characters to be equal to the first preset value.
7. The system for font sizing according to claim 6, further comprising:
the acquisition unit is used for acquiring the font data of the Chinese characters to be processed in the font library;
and the preprocessing unit is used for preprocessing the font data of the Chinese character to be processed.
8. The system for adjusting font size according to claim 7, wherein the first adjusting unit specifically comprises:
the statistical unit is used for counting the character frame gaps of the Chinese characters to be processed;
the judging unit is used for judging whether the frame gap is larger than 0;
the amplifying unit is used for amplifying the Chinese character to be processed for the first time according to the preset scaling principle if the character frame gap is larger than 0;
and the reducing unit is used for reducing the Chinese character to be processed for the first time according to the preset scaling principle if the character frame gap is less than or equal to 0.
9. The system for font sizing according to claim 6, further comprising:
the first dividing unit is used for dividing the Chinese characters to be processed, of which the area of the minimum region is more than or equal to 80% of the area of the character grid, into the first preset grades;
and the second dividing unit is used for dividing the Chinese characters to be processed with the area of the minimum region between 60% and 80% of the area of the character grid into the second preset grades.
10. The system for adjusting font size according to claim 9, wherein the second adjusting unit specifically comprises:
the first calculation unit is used for acquiring a minimum area occupied by the Chinese characters to be processed in the first preset grade and calculating an average value of the minimum area as a first average value;
the second calculation unit is used for acquiring a minimum area occupied by the Chinese characters to be processed in the second preset grading, and calculating an average value of the minimum area as a second average value;
and the confirming unit is used for taking the ratio of the first average value to the second average value as the adjustment multiple of the second adjustment and carrying out the second adjustment on the Chinese character to be processed according to the adjustment multiple.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of font resizing as claimed in any one of claims 1 to 5 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for font resizing as claimed in any one of claims 1 to 5.
CN201710947905.3A 2017-10-12 2017-10-12 Method and system for adjusting font size of font library Active CN109657203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710947905.3A CN109657203B (en) 2017-10-12 2017-10-12 Method and system for adjusting font size of font library

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710947905.3A CN109657203B (en) 2017-10-12 2017-10-12 Method and system for adjusting font size of font library

Publications (2)

Publication Number Publication Date
CN109657203A CN109657203A (en) 2019-04-19
CN109657203B true CN109657203B (en) 2020-12-04

Family

ID=66109772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710947905.3A Active CN109657203B (en) 2017-10-12 2017-10-12 Method and system for adjusting font size of font library

Country Status (1)

Country Link
CN (1) CN109657203B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110196964B (en) * 2019-06-05 2020-12-29 北大方正集团有限公司 Font format conversion method and device
CN111027550B (en) * 2019-12-17 2023-09-08 新方正控股发展有限责任公司 Method and device for adjusting visual center of gravity of word stock
CN111078073B (en) * 2019-12-17 2021-03-23 科大讯飞股份有限公司 Handwriting amplification method and related device
CN111144066B (en) * 2019-12-27 2022-02-18 北大方正集团有限公司 Adjusting method, device and equipment for font of font library and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1099500A (en) * 1993-03-04 1995-03-01 国际商业机器公司 Estimation of baseline, line spacing and character height for handwriting recognition
JP2006277224A (en) * 2005-03-29 2006-10-12 Hitachi Software Eng Co Ltd Handwritten character layout shaping method and electronic board system
WO2007005775A2 (en) * 2005-07-01 2007-01-11 Microsoft Corporation Ink warping for normalization and beautification / ink beautification
CN101393645A (en) * 2008-09-12 2009-03-25 浙江大学 Hand-writing Chinese character computer generation and beautification method
CN102236638B (en) * 2010-04-26 2014-11-19 汉王科技股份有限公司 Method and device for correcting capital and lowercase forms of characters in western language words

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4079366B2 (en) * 2003-06-10 2008-04-23 シャープ株式会社 CHARACTER GENERATION DEVICE, CHARACTER GENERATION METHOD, CHARACTER GENERATION PROGRAM, AND STORAGE MEDIUM
CN1828581B (en) * 2006-04-14 2010-05-26 北京北大方正电子有限公司 Layout method for word content fitting rectangular words frame
CN101013418B (en) * 2007-02-15 2010-05-19 北京大学 Auto-adaptive typesetting method for word in textbox
TW201310261A (en) * 2011-08-22 2013-03-01 Arphic Technology Co Ltd Method of fine-tuning Chinese characters according to font size and Chinese character fine-tuning system thereof
CN103186511B (en) * 2011-12-31 2017-03-08 北京大学 Chinese characters word-formation method and apparatus, the method for construction fontlib

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1099500A (en) * 1993-03-04 1995-03-01 国际商业机器公司 Estimation of baseline, line spacing and character height for handwriting recognition
JP2006277224A (en) * 2005-03-29 2006-10-12 Hitachi Software Eng Co Ltd Handwritten character layout shaping method and electronic board system
WO2007005775A2 (en) * 2005-07-01 2007-01-11 Microsoft Corporation Ink warping for normalization and beautification / ink beautification
CN101393645A (en) * 2008-09-12 2009-03-25 浙江大学 Hand-writing Chinese character computer generation and beautification method
CN102236638B (en) * 2010-04-26 2014-11-19 汉王科技股份有限公司 Method and device for correcting capital and lowercase forms of characters in western language words

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小型个性化字库的设计与实现;陈禹伶等;《兵工自动化》;20080731;第27卷(第7期);第37-39页 *

Also Published As

Publication number Publication date
CN109657203A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN109657203B (en) Method and system for adjusting font size of font library
US20180239995A1 (en) Font Recognition using Text Localization
US9824304B2 (en) Determination of font similarity
CN108255489B (en) Front-end interface code generation method and device, electronic equipment and storage medium
US20070074109A1 (en) Document production system, document production method, program, and storage medium
CN110045894A (en) System and method for dialog box customization
DE102016011173A1 (en) Create summaries of multimedia documents
CN105511792A (en) In-position hand input method and system for form
CN111242691A (en) Method and device for generating advertisement poster, storage medium and terminal equipment
CN106980689B (en) Method for realizing data visualization through voice interaction
CN111428457A (en) Automatic formatting of data tables
KR20160025519A (en) Selecting and editing visual elements with attribute groups
CN117058271A (en) Method and computing device for generating commodity main graph background
CN106339363A (en) PPT report making method and device
US11144717B2 (en) Automatic generation of document layouts
CN117851457A (en) Chart generation method, device, equipment and storage medium
US20230129431A1 (en) One-to-Many Automatic Content Generation
US11763065B2 (en) Font feature selection for text layout
CN109478200B (en) Device and method for generating fonts through meta-fonts by utilizing outline fonts
CN112637633B (en) Program generating method and program generating device
US11651140B2 (en) Font generating device and method for changing partial character style
CN114610308A (en) Application function layout adjusting method and device, electronic equipment and storage medium
CN104112287B (en) Method and device for segmenting characters in picture
CN118227093B (en) Image design visual conveying system and method based on big data
CN113010826B (en) CSS 3-based user liveness analysis method and system

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: 20230609

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 298, founder building, 9 floor

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

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.