CN110110258A - A kind of method, apparatus and electronic equipment of text conversion - Google Patents

A kind of method, apparatus and electronic equipment of text conversion Download PDF

Info

Publication number
CN110110258A
CN110110258A CN201810101179.8A CN201810101179A CN110110258A CN 110110258 A CN110110258 A CN 110110258A CN 201810101179 A CN201810101179 A CN 201810101179A CN 110110258 A CN110110258 A CN 110110258A
Authority
CN
China
Prior art keywords
font
information
text
character string
default
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.)
Pending
Application number
CN201810101179.8A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810101179.8A priority Critical patent/CN110110258A/en
Publication of CN110110258A publication Critical patent/CN110110258A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML 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/109Font handling; Temporal or kinetic typography

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

This application discloses a kind of method, apparatus of text conversion and electronic equipments.Wherein, the method for the text conversion, comprising: parsing vector graphics file obtains text information;According to text information described in default font matching, the text information corresponding font information in the default font is obtained;The font information is zoomed in and out into deformation, obtains the information that draws a design of the text information;Using the information that draws a design, the text information in the vector graphics file is replaced.Using the above method by the way that the character string in SVG is fabricated to image, character string will be needed to use hereof to substitute using the image, SVG text in any system that can show SVG can be shown according to what appearance described in it was not changed completely, solves the problems, such as the compatibility under different system environments, and since image is vector, it can arbitrarily change size.

Description

A kind of method, apparatus and electronic equipment of text conversion
Technical field
This application involves field of computer technology, and in particular to a kind of method of text conversion.This programme further relates to one kind The device and a kind of electronic equipment of text conversion.
Background technique
The content of webpage (English name: Web) page includes the information such as text, Streaming Media and picture, and wherein picture includes By Background, illustration and icon etc..However, the content of Web page in some cases needs to do some variations, such as not When with showing identical Web page in the terminal of resolution ratio, in order to normally show, scalable vector graphics are generally used (English: Scalable Vector Graphics, abbreviation: SVG) picture, can solve display problem by SVG very well.
But SVG can be rendered in the software on not homologous ray, if lacking SVG<text>label institute in the system of rendering SVG The resemblance of specified font, text importing will change, or even can lack invisible.Such as: be fitted without at one " The system of Mircosoft Yahei " font renders SVG, then it is silent will not to show or be illustrated as system for the text under the font The text placeholder recognized.
It can be seen that in the prior art, in SVG file character string be all be described by<text>label, and Character string in SVG under different system environments can because font missing, and can not be accurately according to sample described in it Son is shown.
Summary of the invention
The application provides a kind of method of text conversion, to solve the above problem in the prior art.In addition the application mentions The device and a kind of electronic equipment of a kind of text conversion are supplied.
This application provides a kind of method of text conversion, the method for the text conversion, comprising:
It parses vector graphics file and obtains text information;
According to text information described in default font matching, the text information corresponding word in the default font is obtained Shape information;
The font information is zoomed in and out into deformation, obtains the information that draws a design of the text information;
Using the information that draws a design, the text information in the vector graphics file is replaced.
Preferably, the text information, comprising: character string, the font type of the character string and the character string Font attribute.
Preferably, the text information according to default font matching, obtains the text information in the predetermined word Corresponding font information in body, comprising:
According to the font type of character string described in the text information, corresponding word is matched in the default font Body;
The character string in the text information is encoded;
Based on the character string after coding, the font information of the corresponding character string is obtained in the font.
Preferably, in the font type for executing the character string according to the text information, in the predetermined word When matching the step of corresponding font in body, comprising:
If the font type of the character string, matching is less than corresponding font in the default font, then by the word After symbol string is converted according to preset mode, the font class of the character string according to the text information is executed again Type, the step of matching corresponding font in the default font.
Preferably, the step of executing acquisition text information corresponding font information in the default font Before, comprising:
The default font is parsed, the font information of each character in the default font is obtained.
Preferably, the font information, comprising: vector value and character pixels amount.
Preferably, described that the font information is zoomed in and out into deformation, the information that draws a design of the text information is obtained, Include:
Vector value in the font information is zoomed in and out into deformation;
The vector value of the font information after scaling is drawn into the font as in the vector graphics file The information that draws a design of information.
Preferably, the font attribute of the character string, comprising: font size.
Preferably, the vector value by the font information zooms in and out deformation, comprising:
According to the character pixels amount in the font size of the character string, with the font information, amount of zoom is obtained;
Based on the amount of zoom, deformation is zoomed in and out to the vector value of the font information.
Preferably, described to be based on the amount of zoom, what it is to the font information is that vector value zooms in and out deformation, comprising:
To each start-stop point in the vector value of the font information, deformation is zoomed in and out according to the amount of zoom.
Preferably, the font attribute of the character string, further includes: coordinate information;
Correspondingly, it is described to the font information be the step of vector value zooms in and out deformation after, comprising:
According to the coordinate information, the vector value for scaling the deformed font information is deviated.
Preferably, it is described obtain the text information draw a design information the step of after, comprising:
The coordinate information is deviated based on the amount of zoom, obtains the location information for drawing the font information.
Preferably, the font information, further includes: word is wide;
Correspondingly, described deviate the coordinate information based on the amount of zoom, obtains and draw the font information Location information, comprising:
Based on the amount of zoom, deformation is zoomed in and out to the word width of the font information;
It is wide to the word for scaling the deformed font information to deviate according to the coordinate information.
Preferably, the text information in the replacement vector graphics file, comprising:
To carry the information that draws a design described in the location information, the text in the vector graphics file is replaced Information.
Preferably, the font attribute of the character string, further includes: font color;
Correspondingly, the text information in the replacement vector graphics file, comprising:
To carry the information that draws a design described in the font color, the text in the vector graphics file is replaced Information.
Preferably, the vector graphics file, comprising: svg file.
Preferably, the parsing vector graphics file obtains text information, comprising:
The text label or text style label in the vector graphics file are parsed, the text information is obtained.
Correspondingly, present invention also provides a kind of device of text conversion, the device of the text conversion, comprising:
Resolution unit obtains text information for parsing vector graphics file;
Font matching unit obtains the text information described for the text information according to default font matching Corresponding font information in default font;
Drawing unit obtains the letter that draws a design of the text information for the font information to be zoomed in and out deformation Breath;
Replacement unit replaces the text envelope in the vector graphics file for the information that draws a design described in use Breath.
Preferably, the resolution unit obtains the word of character string, the character string specifically for parsing vector graphics file The font attribute of body type and the character string.
Preferably, the font matching unit, comprising:
Font matching subelement, for the font type of the character string according to the text information, described default Corresponding font is matched in font;
Coded sub-units, for encoding the character string in the text information;
Font obtains subelement, for obtaining the corresponding word in the font based on the character string after coding Accord with the font information of string.
Preferably, the font obtains subelement, specifically for based on the character string after coding, in the font Obtain the vector value and character pixels amount of the corresponding character string.
Preferably, the drawing unit, comprising:
Scaling deformation subelement, for the font information to be zoomed in and out deformation;
Subelement is drawn, for the vector value of the deformed font information will to be scaled, as in the vector graphics In file, the information that draws a design of the font information is drawn.
The application also provides a kind of electronic equipment, the electronic equipment, comprising:
Processor;
Memory, for storing text conversion program, described program executes as follows when reading execution by the processor Operation: parsing vector graphics file obtains text information;According to text information described in default font matching, the text envelope is obtained Breath corresponding font information in the default font;The font information is zoomed in and out into deformation, obtains the text information The information that draws a design;Using the information that draws a design, the text information in the vector graphics file is replaced.
Compared with prior art, the application has the following advantages:
The method, apparatus and electronic equipment of a kind of text conversion provided by the present application, by parsing vector graphics file Obtain text information;According to text information described in default font matching, it is right in the default font to obtain the text information The font information answered;Deformation is zoomed in and out based on the font information, obtains the information that draws a design of the text information;It uses The information that draws a design replaces the text information in the vector graphics file.The technical solution is by will be in SVG Character string be fabricated to image, will need to use character string hereof and be substituted using the image, SVG can be opened up any Show in the system of SVG, shown text can be shown according to what appearance described in it was not changed completely, be solved The problem of compatibility under different system environments, and since image is vector, it can arbitrarily change size.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application can also be obtained according to these attached drawings other for those of ordinary skill in the art Attached drawing.
Fig. 1 shows the flow chart of the method for the text conversion provided according to an embodiment of the present application;
Fig. 2 shows the schematic diagrames of the text conversion provided according to an embodiment of the present application;
Fig. 3 shows the schematic diagram of the scaling and migration process that provide according to an embodiment of the present application;
Fig. 4 shows drawing path of the definition provided according to an embodiment of the present application for drawing the font information Schematic diagram;
Fig. 5 shows the schematic diagram of the device of the text conversion provided according to an embodiment of the present application;
Fig. 6 shows the schematic diagram of the electronic equipment provided according to an embodiment of the present application.
Specific embodiment
It is with reference to the accompanying drawing and specific real in order to be more clearly understood that the above objects, features, and advantages of the application Mode is applied the application is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
Many details are explained in the following description in order to fully understand the application.But the application can Implemented with being much different from other way described herein, those skilled in the art can be in the feelings without prejudice to the application intension Similar popularization is done under condition, therefore, the application is not limited by following public specific implementation.
Embodiments herein provides a kind of method of text conversion;The embodiment of the present application is related to a kind of text turn simultaneously The device and a kind of electronic equipment changed.It is described in detail one by one in the following embodiments.
Currently, SVG is marked in the software rendering on not homologous ray if lacking SVG<text>in the system of rendering SVG The specified font of label, the resemblance of text importing will change, or even can lack invisible.Such as: do not pacify at one Dress " system of Mircosoft Yahei " font renders SVG, then the text under the font will not show or be illustrated as be The text placeholder for default of uniting.It can be seen that in the prior art, in SVG file character string be all by<text>label into Capable description, and the character string in SVG understands the missing because of font under different system environments, and can not be accurately according to it Described appearance is shown.For this problem, in the embodiment of the present application, by the way that the character string in SVG is fabricated to Image will be needed to use hereof character string and be substituted using the image, and allow SVG in any system that can show SVG Upper text can be shown according to what appearance described in it was not changed completely, be solved simultaneous under different system environments The problem of capacitive.
Before the specific steps of detailed description the present embodiment, SVG file and font work that first the technical program is related to Brief description.
The SVG file is scalable vector graphics.It is a kind of language with XML definition, for describing two-dimentional arrow Amount and vector/grid graph.SVG directly can describe image with code, can be schemed with any word processing tool open SVG Picture is made image have interactive function by changing section code, and can be inserted at any time in HTML through browser and see It sees.SVG provides the Drawing Object of 3 seed types: vector graphics is (vectorgraphicshape for example: by straight line and curve group At path), image (image), text (text).Drawing Object such as can also be grouped, add pattern, transformation, combination at the behaviour Make, feature set includes nested transformation (nestedtransformations), shear path (clippingpaths), alpha illiteracy Plate (alphamasks), filtering effects (filtereffects), template object (templateobjects) and other extensions (extensibility)。
In SVG file, have<text>,<path>and<tspan>label.Wherein,<path>label is can in SVG The label in path is defined with series of orders.It uses<path>when label, just as controlling a paintbrush with the mode of instruction, Such as: mobile paintbrush draws a line, lifts paintbrush after drawing a curve to a certain coordinate position.Using following when defining path Instruction:
M=moveto (M X, Y): paintbrush is moved to specified coordinate position;
L=lineto (L X, Y): straight line is drawn to specified coordinate position;
C=curveto (C X1, Y1, X2, Y2, ENDX, ENDY): shellfish matches curve three times;
Q=quadratic Belzier curve (Q X, Y, ENDX, ENDY): secondary shellfish matches curve;
Z=closepath (): Turn Off Path.
<text>label is used to define the label that text is shown in SVG, and<tspan>label is used in<text>, is used The fine tuning on position or pattern is carried out with the text for being included to it.
The font, be describe in computer systems it is a certain set text external form feature data, usually with In system files, common format has openType, trueType, svg etc. for specific format storage.Font- can be passed through Family attribute provides the font family of element, the value of font-family attribute be for some element type family title or/ And the precedence table that class Praenomen claims.Browser will use its identifiable first value.
When setting font title, Chinese can be directly write.But it is mismatched at document No. (GB2312, UTF-8 etc.) When can generate the mistake of messy code.To this end it is possible to use, Unicode coding avoids these mistakes to write font name.Such as: Font-family: " 5FAE 8F6F 96C5 9ED1 ", expression set font as " Microsoft is refined black ".
Unicode:(Chinese: Unicode, international code, Unicode, single code) it is a Xiang Ye in computer science Boundary mark is quasi-.It arrange to most writing system in the world, coding, allows computer with more simple mode To be presented and handle text.
Embodiments herein provides a kind of method of text conversion, and the method for the text conversion is by will be in SVG Character string be fabricated to image, will need to use character string hereof and be substituted using the image, and realize and allow SVG any Can show in the system of SVG, text can be shown according to what appearance described in it was not changed completely.The text The embodiment of the method for word conversion is as follows:
Fig. 1 and Fig. 2 is please referred to, which respectively show the methods of the text conversion provided according to an embodiment of the present application Flow chart;And show the schematic diagram of the text conversion provided according to an embodiment of the present application;
The method of the text conversion, comprising:
Step S101, parsing vector graphics file obtain text information.
In the present embodiment, the parsing vector graphics file obtains text information, can realize in the following way: logical Resolver is crossed, the vector graphics file is parsed, corresponding text information is obtained from the vector graphics file.
It should be noted that the text information, refers to character or document without format information.Such as: in notepad Character be plain text because it is without the information such as font, font size, paragraph format.The text information in the present embodiment It is interior, it may include the character string of a character or multiple characters.
In the present embodiment, the vector graphics file can be svg file.
In the specific implementation, if the vector graphics file is svg file, by xml resolver, svg file is parsed Text label (<text>label) or text style label (<tspan>label), obtain included character string, and retouch State the font type and font attribute of the character string.
In the present embodiment, the text information of acquisition includes: character string, the font type of the character string and institute State the font attribute of character string.
Illustrate below by a specific example, the parsing vector graphics file obtains the realization of text information Journey.
SVG is used to define the figure based on vector for network.Character string is retouched by<text>label in SVG It states, the font of character string is described by the font-family of<text>.Following code specifies a font The passage of " Microsoft YaHei ":
After creating<svg>element,<tspan>element placed in the position of (0,31), the inside includes Content is the text of character string " Microsoft is refined black ", because x and y are absolute fixs, character string " Microsoft is refined black " is just moved The left edge in coordinate system is arrived.
It should be noted that SVG text can be wrapped up with<tspan>label, to do whole control to them, about aobvious Show and positions, the correlation etc. between text fragments.Text in<tspan>is arranged according to inline sequence and they are direct As being shown in text element.
And after parsing above-mentioned SVG file by xml resolver, by parsing<tspan>label of svg file to obtain To the text of character string " Microsoft is refined black ", the font- of svg file is got by parsing<text>label of svg file Family, it may be assumed that the font type Microsoft for describing the character string is refined black.
Step S103 obtains the text information in the default font according to text information described in default font matching In corresponding font information.
In the present embodiment, the text information according to default font matching, obtains the text information described Corresponding font information in default font, can realize in the following way: by the default font one by one with the text envelope Breath is matched, and determines corresponding with the text information default font, and from the determining default font, obtain and The corresponding font information of the text information.
It should be noted that the font information, comprising: vector value and character pixels amount.
Wherein, the character pixels amount, refers to: in current font, the unitsPerEm (units- of each character Per-em), it may be assumed that specify " unit " quantity that each em is included, these units can be by other descriptions using indicating Various length.
Em is for describing relative to the font size applied in currentElement, so it is also relative length unit.One As browser font size be defaulted as 16px, then 1em==16px;If currently inartificial to the font size of text in row Setting, then relative to the default font size of browser.
It should be noted that many developers replace pixel using em unit, be used to avoid that text can not be adjusted in IE This problem of, 1em are equal to current font size, if the font-size of an element is 16 pixels, for this yuan Element, 1em are equal to 16 pixels.When setting font size, em must be worth can the opposite font size change with father's element.
The vector value is the vector value for the font that font is used to distinguish each kinds of characters font Nei.The arrow Magnitude is for describing how different fonts are shown.
Continue to use above-mentioned specific example below to illustrate, the text information according to default font matching obtains institute State the realization process of text information corresponding font information in the default font.
After parsing SVG file by xml resolver, by parsing<tspan>label of svg file to get word The text of symbol string " Microsoft is refined black " gets the font- of svg file by parsing<text>label of svg file Family, it may be assumed that describe the character string font type Microsoft it is refined it is black after, the text envelope according to default font matching Breath, obtains the text information corresponding font information in the default font, specifically comprises the following steps:
Step S103-1, according to the font type of character string described in the text information, in the default font With corresponding font.
In the present embodiment, the font type of the character string according to the text information, in the predetermined word Corresponding font is matched in body, can be realized in the following way: after parsing SVG file by xml resolver, being got The font-family of svg file matches corresponding font in the default font.
Specifically, then matching the default font since the font-family for getting svg file is that Microsoft is refined black When, it is exactly to find the refined surplus body of Microsoft in the default font.
In the present embodiment, the default font, includes at least: one of opentype, trueType, svg.
It should be noted that the refined surplus body of Microsoft is a kind of font for supporting ClearType technology.It belongs to opentype Type (suffix is identical as TrueType type font) belongs to sans serif and black matrix in font design.
As a preferred embodiment, executing step S103-1 character string according to the text information Font type, when matching corresponding font in the default font, if the font type of the character string, in the predetermined word Matching after then being converted the character string according to preset mode, executes step less than corresponding font again in body The font type of S103-1 character string according to the text information matches corresponding font in the default font.
It should be understood that due to needing to obtain corresponding font from the default font, so in the character string Font type when matching is less than corresponding font in the default font, is needed the character string through certain way Font type is converted into that the font of the default font can be matched.
Step S103-2 encodes the character string in the text information.
In the present embodiment, the character string by the text information encodes, can be using such as lower section Formula is realized: after xml resolver parses SVG file, the character string got in<tspan>label of SVG file being compiled Code, is converted to corresponding Unicode for the character string.
Such as: after xml resolver parses SVG file, the character string that will be got in<tspan>label of SVG file " Microsoft is refined black " each of character encoded, by the character " micro- " be converted to corresponding Unicode be u5fae u000d\u000a;By the character " soft " be converted to corresponding Unicode be u8f6f u000d u000a;By the word Symbol " refined " be converted to corresponding Unicode be u96c5 u000d u000a;The word " black " is converted to corresponding Unicode be u9ed1 u000d u000a.
Step S103-3 obtains the word of the corresponding character string based on the character string after coding in the font Shape information.
In the present embodiment, the character string based on after coding obtains the corresponding character in the font The font information of string can be realized in the following way: in the corresponding font being matched in step S103-1, with step The Unicode obtained in S103-2 is matched, and the font information that the character string is corresponded in the font is obtained.
Such as: the corresponding font being matched in step S103-1 be Microsoft it is refined black, then with u5fae u000d U000a is inquired in the refined surplus body of the Microsoft, and matching corresponding character is " micro- ", and obtains character " micro- " Font information.
As a preferred embodiment, corresponding font information is obtained from the default font due to being, so Before the step of executing acquisition text information corresponding font information in the default font, need to get The intracorporal whole font informations of the predetermined word, specifically comprise the following steps: to parse the default font, described in acquisition The font information of each character in default font.
In the present embodiment, described that the default font is parsed, it can realize in the following way: pass through correspondence The parsing library of the default font parses the default font.
Such as: the type of openType and trueType can be used openType.js and be parsed, the type of SVG Font is directly read by XML parser.
In the present embodiment, the font information for obtaining each character in the default font, can be using such as lower section Formula is realized: being directed to each of default font font, is obtained each character in the default font UnitsPerEm and the corresponding font (Glyph) of each character (charCode).
It should be noted that in the default font that will acquire the font information of each character as font set, with JSON format is stored.
The default font is parsed with an example below, obtains the font of each character in the default font The realization process of information is illustrated.
There are 2 kinds of fonts in the default font: " Microsoft is refined black " and " font 2 " (" font 2 " be it is arbitrary its His font), the key for each font is the font-family of current font.First character section in each font For the unitsPerEm of the font;All fonts (glyphs) that second field font includes;Key is current in font The unicode value of the corresponding character of font, the first character section of value are the vector value path of font, and second field is should The wide advanceWidth of the word of font.
Such as: the font-family of first character body is that Microsoft is refined black, and the first character section in the font is the font UnitsPerEm:2048;The font 1 that second field font includes, in the refined surplus body of the Microsoft which refers to Chinese character one;Key in font 1 be 1 it is corresponding Unicode: u0031;The vector value path of font 1 is M320 865L2020 865L2020 689L320 689L320 865Z;The word width of font 1 is 65.
The font information is zoomed in and out deformation by step S105, obtains the information that draws a design of the text information.
In the present embodiment, described that the font information is zoomed in and out into deformation, obtain the drafting road of the text information Diameter can be realized in the following way: the vector value in the font information being zoomed in and out deformation, obtains the text information The information that draws a design.
Specifically, described zoom in and out deformation for the font information, the information that draws a design of the text information is obtained, Include the following steps:
Vector value in the font information is zoomed in and out into deformation;
The vector value of the font information after scaling is drawn into the font as in the vector graphics file The information that draws a design of information.
It should be understood that it is of different sizes due to the font information and the font of the vector graphics file, so root According to the size relation of the font information and the font of the vector graphics file, contract to the vector value of the font information Put deformation.
It should be noted that the information that draws a design is to zoom in and out deformation according to the vector value of the font information Afterwards, the drafting font for being used to draw the font information of acquisition.It in the present embodiment, is by by the character string system in SVG It is made image, it may be assumed that each text is changed into image to show, so the information that draws a design is to describe how to draw The drawing path of image.
In the present embodiment, the font attribute of the character string parsed from the vector graphics file, comprising: word Body size.
Due in the font attribute of the character string including the font size of the character string, and have in the font information The character pixels amount of each character in the font, so passing through the character pixels amount of font information, the word with the character string Relationship between body size, so that it may get the amount of zoom between character pixels amount and the font size of the character string, then The vector value by the font information zooms in and out, and specifically comprises the following steps:
According to the character pixels amount in the font size of the character string, with the font information, amount of zoom is obtained;
Based on the amount of zoom, the vector value of the font information is zoomed in and out.
In the specific implementation, the font size according to the character string, with the character pixels in the font information Amount obtains amount of zoom, by the font size of the character string divided by the character pixels amount in the font information, obtains amount of zoom scale。
Continue to use above-mentioned specific example below to illustrate.
Referring to FIG. 4, showing the schematic diagram of the scaling and migration process that provide according to an embodiment of the present application.
SVG is used to define the figure based on vector for network.Character string is retouched by<text>label in SVG It states, the font of character string is described by the font-family of<text>.Following code specifies a font " Microsoft YaHei ", the passage that font size is 204:
Since the font size of the character string is 204, the character pixels amount in the font information is 2048, so will The font size 204 of the character string obtains amount of zoom scale0.1 divided by the character pixels amount 2048 in the font information.
It is described to be based on the amount of zoom after getting the amount of zoom scale, to the vector value of the font information Deformation is zoomed in and out, can be realized in the following way: to each start-stop point in the vector value of the font information, according to institute It states amount of zoom and zooms in and out deformation.
It continues to use above-mentioned specific example below to illustrate, to each start-stop point in the vector value of the font information, presses The realization process zoomed in and out according to the amount of zoom.
Referring to FIG. 4, it illustrates the definition provided according to an embodiment of the present application for drawing the font information The schematic diagram of drawing path.
The vector value path of the font information is 689 L320 of M320 865L2020 865L2020 689L320 When 865Z, refer to: the font information starts from position (320,865) and draws straight line in-position (2020,865), draws later straight Line in-position (2020,689), then straight line in-position (320,689) are drawn, finally in (320,865) Turn Off Path.
And it is based on the amount of zoom, to each start-stop point in the vector value of the font information, according to the amount of zoom It is to be directed to the amount of zoom scale0.1 every in the vector value of the font information when realization process zoomed in and out One start-stop point zooms in and out, it may be assumed that (320,865) * scale0.1;(2020,865) * scale0.1;(2020,689) * scale0.1;(320,689) * scale0.1;(320,865) * scale0.1 finally obtains the font information after scaling Drawing path is<path>: 86 L202 of M32 86L202,68 L32,86 L32 86Z.
Since the character string in the vector graphics file may have initial position in a coordinate system, so parsing When the vector graphics file, the font attribute of the character string, it is also possible to including coordinate information.So described to the word Shape information is after vector value zooms in and out deformation, it is also necessary to according to the coordinate information, to the font information after scaling Drawing path deviated.
It should be understood that if character string in the vector graphics file in a coordinate system at initial position (0,0), The drawing path of the font information after scaling can not then be deviated.
Specifically, can be used using the definition of following algorithm when defining the drawing path for drawing the font information In the drawing path for drawing the font information:
Wherein, cmd.x refers to the x-axis coordinate in the vector value of the font information;Cmd.y refers to the font information In vector value is for y-axis coordinate;Command M is for paintbrush to be moved to specified coordinate position;L is instructed to draw straight line to finger Fixed coordinate position;Instruction C is for drawing shellfish match curve three times;Instruction Q is for drawing secondary shellfish match curve;Instructing Z is For Turn Off Path.
It is 865 L2020 of M320,865 L2020,689 L320 689 in the vector value path of the font information When L320 865Z, since the vector value path of the font information has one group of M instruction, three groups of L instructions, so in execution When stating algorithm, need to bring one group of M instruction into M (x, y)=(x+ (cmd.x*scale), y+(- cmd.y*scale)), by three 3 L (x, y)=(x+ (cmd.x*scale), y+ (- cmd.y*scale)) is brought in group L instruction into respectively, obtains definition for drawing Make the drawing path of the font information.
It should be understood that instruction Q and instruction C are used when being for drawing shellfish match curve three times and secondary shellfish match curve Instruction, in the above example due to having only used straight line instruction L when drawing, so above-metioned instruction Q and instruction C is not used. When using instruction Q and instruction C, it is only necessary to bring in instruction Q and instruction C corresponding parameter into, repeat no more again.
Since the character string in the vector graphics file may have initial position in a coordinate system, so described After defining the drawing path for drawing the font information, the coordinate information is deviated based on the amount of zoom, is obtained Take the location information for drawing the font information.
It in the present embodiment, further include that word is wide, so being based on the amount of zoom to the seat due to the font information Mark information is deviated, and when obtaining the location information for drawing the font information, needs to be implemented following steps:
Based on the amount of zoom, the word width of the font information is zoomed in and out;
According to the coordinate information, the wide diameter of word of the font information after scaling is deviated.
Specifically, can be obtained using following algorithm when obtaining the location information for drawing the font information and draw institute State the location information of font information:
(nx, ny)=(x+advanceWidth*scale, y)
Wherein, (nx, ny) is the location information for drawing the font information;AdvanceWidth refers to the font information Word it is wide;(x, y) refers to the initial position message of character string in a coordinate system.
Such as: the word width of the font information is 650, is carried out based on the amount of zoom scale0.1 wide to the word 650 After scaling, the word width is 65, further according to the coordinate information (0,31) to the wide diameter of word of the font information after scaling into Line displacement, obtaining and drawing the location information of the font information is (65,31).
Step S107 replaces the text information in the vector graphics file using the information that draws a design.
In the present embodiment, described by the information that draws a design, replace the text in the vector graphics file Information can be realized in the following way: with the drawing path<path>, replace the institute in the vector graphics file svg State text information<text>.
As a preferred embodiment, alsoing specify due to when drawing the font information and drawing the font The location information of information, so being when executing the step of the text information in the replacement vector graphics file To carry the drawing path of the location information, the text information in the vector graphics file is replaced.
As a preferred embodiment, due to parsing in the text information that the vector graphics file is got, also With the font color for describing character string in the text information, so in executing the replacement vector graphics file When the step of the text information, it is the drawing path to carry the font color, replaces the vector graphics file In the text information.
Such as: defining the drawing path for drawing the font information is 86 L202 of M32 86L202,68 L32 86 L32 86Z, and in the vector graphics file, the font color for describing character string in the text information is #2A2E35 (ten Senary color code #2a2e35 is the navy shade of darkness), then carry the font color the drawing path be < Path Fill=" #2a2e35 " d=" 86 L202 of M32 86L202,68 L32,86 L32 86Z "></path>, and with< Path fill:#2a2e35d=" 86 L202 of M32 86L202,68 L32,86 L32 86Z "></path>tag replacement institute State<text id=" Microsoft is refined black " font-size=" 204 "><tspan x=" 0 " y=" 31 ">in vector graphics file Microsoft is refined black</tspan></text>label.
In the above-described embodiment, a kind of method of text conversion is provided, it is corresponding with the method for above-mentioned text conversion , present invention also provides a kind of devices of text conversion.Since the embodiment of device is substantially similar to the embodiment of method, institute To describe fairly simple, the relevent part can refer to the partial explaination of embodiments of method.Installation practice described below is only It is only illustrative.The Installation practice of the text conversion is as follows:
Referring to FIG. 5, it illustrates the schematic diagrames of the device of the text conversion provided according to an embodiment of the present application.
The device of the text conversion, comprising: resolution unit 401, font matching unit 403, drawing unit 405 and Replacement unit 407;
The resolution unit 401 obtains text information for parsing vector graphics file;
The font matching unit 403 obtains the text information for the text information according to default font matching The corresponding font information in the default font;
The drawing unit 405 obtains the drafting of the text information for the font information to be zoomed in and out deformation Pattern-information;
The replacement unit 407, for using the institute replaced the information that draws a design in the vector graphics file State text information.
Optionally, the resolution unit 401 is specifically used for parsing vector graphics file and obtains character string, the character string Font type and the character string font attribute.
Optionally, the font matching unit 403, comprising: font matching subelement, coded sub-units and font obtain Subelement;
The font matching subelement, for the font type of the character string according to the text information, described Corresponding font is matched in default font;
The coded sub-units, for encoding the character string in the text information;
The font obtains subelement, for obtaining corresponding institute in the font based on the character string after coding State the font information of character string.
Optionally, the font matching unit 403, further includes: conversion subunit;
The conversion subunit, if the font type for the character string, matching is less than right in the default font The font answered after then being converted the character string according to preset mode, triggers the font matching subelement.
Optionally, the device of the text conversion, further includes: font resolution unit;
The font resolution unit, for corresponding in the default font in the execution acquisition text information Before font information, the default font is parsed, obtains the font information of each character in the default font.
Optionally, the font obtains subelement, specifically for based on the character string after coding, in the font Obtain the vector value and character pixels amount of the corresponding character string.
Optionally, the drawing unit 405, comprising: scaling deformation subelement and drafting subelement;
The scaling deforms subelement, for the font information to be zoomed in and out deformation;
The drafting subelement, for the vector value of the deformed font information will to be scaled, as in the vector In graphic file, the information that draws a design of the font information is drawn.
Optionally, the resolution unit 401, specifically for the font for the character string that parsing vector graphics file obtains It include: font size in attribute.
Optionally, the path scales subelement, comprising: amount of zoom obtains subelement and scaling subelement;
The amount of zoom obtains subelement, in the font size according to the character string, with the font information Character pixels amount obtains amount of zoom;
The scaling subelement, for being based on the amount of zoom, what it is to the font information is that vector value zooms in and out.
Optionally, the scaling subelement is pressed specifically for each start-stop point in the vector value to the font information It is zoomed in and out according to the amount of zoom.
Optionally, the resolution unit 401, specifically for the font for the character string that parsing vector graphics file obtains In attribute, further includes: coordinate information;
Correspondingly, the drawing unit 405, further includes: drawing path deviates subelement;
The drawing path deviates subelement, for it is described to the font information be that vector value zooms in and out it Afterwards, according to the coordinate information, the vector value of the font information after scaling is deviated.
Optionally, the device of the text conversion, further includes: location information acquiring unit;
The location information acquiring unit;For it is described definition for draw the font information drawing path it Afterwards, the coordinate information is deviated based on the amount of zoom, obtains the location information for drawing the font information.
Optionally, the font matching unit 403, in the font information of acquisition, further includes: word is wide;
Correspondingly, the location information acquiring unit, comprising: the wide scaling subelement of word and the wide offset subelement of word;
The wide scaling subelement of word zooms in and out the word width of the font information for being based on the amount of zoom;
The wide offset subelement of word is used for according to the coordinate information, wide to the word of the font information after scaling It is deviated.
Optionally, the replacement unit 407, specifically for the drawing path to carry the location information, replacement The text information in the vector graphics file.
Optionally, the resolution unit 401, specifically for the font for the character string that parsing vector graphics file obtains In attribute, further includes: font color;
Correspondingly, the replacement unit 407, specifically for the drawing path to carry the font color, replacement The text information in the vector graphics file.
Optionally, the resolution unit 401 is specifically used for parsing svg file acquisition text information.
Optionally, the resolution unit 401, specifically for the text label or text style in parsing svg file Label obtains the text information.
In the above-described embodiment, provide a kind of text conversion method and a kind of device of text conversion, in addition, Present invention also provides a kind of electronic equipment;The electronic equipment embodiment is as follows:
Referring to FIG. 6, it illustrates the schematic diagrames of the electronic equipment provided according to an embodiment of the present application.
The electronic equipment, comprising: processor 501;Memory 503;
The memory 503, for storing text conversion program, described program read by the processor execute when, Perform the following operations: parsing vector graphics file obtains text information;According to text information described in default font matching, institute is obtained State text information corresponding font information in the default font;The font information is zoomed in and out into deformation, described in acquisition The information that draws a design of text information;Using the information that draws a design, the text in the vector graphics file is replaced Information.
For example, the electronic equipment is a computer, the computer analyzing vector graphics file obtains text information; And the text information according to default font matching, obtain the text information corresponding font letter in the default font Breath;It is based on the font information again, defines the drawing path for drawing the font information;Finally by the drawing path, Replace the text information in the vector graphics file.Due to the method that this electronic equipment uses above-mentioned text conversion, phase The embodiment explanation that place refers to the method for above-mentioned text conversion is closed, details are not described herein again.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
1, computer-readable medium can be by any side including permanent and non-permanent, removable and non-removable media Method or technology realize that information stores.Information can be computer readable instructions, data structure, the module of program or other numbers According to.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or Other magnetic storage devices or any other non-transmission medium, can be used for storage can be accessed by a computing device information.According to Herein defines, and computer-readable medium does not include non-temporary computer readable media (transitory media), such as modulates Data-signal and carrier wave.
2, it will be understood by those skilled in the art that embodiments herein can provide as the production of method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It can be used moreover, the application can be used in the computer that one or more wherein includes computer usable program code The computer program product implemented on storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Form.
Although the application is disclosed as above with preferred embodiment, it is not for limiting the application, any this field skill Art personnel are not departing from spirit and scope, can make possible variation and modification, therefore the guarantor of the application Shield range should be subject to the range that the claim of this application defined.

Claims (23)

1. a kind of method of text conversion characterized by comprising
It parses vector graphics file and obtains text information;
According to text information described in default font matching, the text information corresponding font letter in the default font is obtained Breath;
The font information is zoomed in and out into deformation, obtains the information that draws a design of the text information;
Using the information that draws a design, the text information in the vector graphics file is replaced.
2. the method for text conversion according to claim 1, which is characterized in that the text information, comprising: character string, The font attribute of the font type of the character string and the character string.
3. the method for text conversion according to claim 2, which is characterized in that the text according to default font matching This information obtains the text information corresponding font information in the default font, comprising:
According to the font type of character string described in the text information, corresponding font is matched in the default font;
The character string in the text information is encoded;
Based on the character string after coding, the font information of the corresponding character string is obtained in the font.
4. the method for text conversion according to claim 3, which is characterized in that described according to the text information executing Described in character string font type, when matching the step of corresponding font in the default font, comprising:
If the font type of the character string, matching is less than corresponding font in the default font, then by the character string After being converted according to preset mode, the font type of the character string according to the text information is executed again, The step of matching corresponding font in the default font.
5. the method for text conversion according to claim 3, which is characterized in that executing the acquisition text information In the default font the step of corresponding font information before, comprising:
The default font is parsed, the font information of each character in the default font is obtained.
6. the method for text conversion according to claim 5, which is characterized in that the font information, comprising: vector value with And character pixels amount.
7. the method for text conversion according to claim 6, which is characterized in that described to zoom in and out the font information Deformation, obtains the information that draws a design of the text information, comprising:
Vector value in the font information is zoomed in and out into deformation;
The vector value of the font information after scaling is drawn into the font information as in the vector graphics file The information that draws a design.
8. the method for text conversion according to claim 7, which is characterized in that the font attribute of the character string, comprising: Font size.
9. the method for text conversion according to claim 8, which is characterized in that the vector value by the font information Zoom in and out deformation, comprising:
According to the character pixels amount in the font size of the character string, with the font information, amount of zoom is obtained;
Based on the amount of zoom, deformation is zoomed in and out to the vector value of the font information.
10. the method for text conversion according to claim 9, which is characterized in that it is described to be based on the amount of zoom, to described Font information is that vector value zooms in and out deformation, comprising:
To each start-stop point in the vector value of the font information, deformation is zoomed in and out according to the amount of zoom.
11. the method for text conversion according to claim 9, which is characterized in that the font attribute of the character string also wraps It includes: coordinate information;
Correspondingly, it is described to the font information be the step of vector value zooms in and out deformation after, comprising:
According to the coordinate information, the vector value for scaling the deformed font information is deviated.
12. the method for text conversion according to claim 11, which is characterized in that in the acquisition text information After the step of information that draws a design, comprising:
The coordinate information is deviated based on the amount of zoom, obtains the location information for drawing the font information.
13. the method for text conversion according to claim 12, which is characterized in that the font information, further includes: word It is wide;
Correspondingly, described deviate the coordinate information based on the amount of zoom, the position for drawing the font information is obtained Confidence breath, comprising:
Based on the amount of zoom, deformation is zoomed in and out to the word width of the font information;
It is wide to the word for scaling the deformed font information to deviate according to the coordinate information.
14. the method for text conversion according to claim 13, which is characterized in that the replacement vector graphics file In the text information, comprising:
To carry the information that draws a design described in the location information, the text envelope in the vector graphics file is replaced Breath.
15. the method for text conversion according to claim 14, which is characterized in that the font attribute of the character string, also It include: font color;
Correspondingly, the text information in the replacement vector graphics file, comprising:
To carry the information that draws a design described in the font color, the text envelope in the vector graphics file is replaced Breath.
16. the method for text conversion described in -15 any one according to claim 1, which is characterized in that the vector graphics text Part, comprising: svg file.
17. the method for text conversion according to claim 16, which is characterized in that the parsing vector graphics file obtains Text information, comprising:
The text label or text style label in the vector graphics file are parsed, the text information is obtained.
18. a kind of device of text conversion characterized by comprising
Resolution unit obtains text information for parsing vector graphics file;
Font matching unit obtains the text information described default for the text information according to default font matching Corresponding font information in font;
Drawing unit obtains the information that draws a design of the text information for the font information to be zoomed in and out deformation;
Replacement unit replaces the text information in the vector graphics file for the information that draws a design described in use.
19. the device of text conversion according to claim 18, which is characterized in that the resolution unit is specifically used for solution It analyses vector graphics file and obtains character string, the font type of the character string and the font attribute of the character string.
20. the device of text conversion according to claim 19, which is characterized in that the font matching unit, comprising:
Font matching subelement, for the font type of the character string according to the text information, in the default font It is middle to match corresponding font;
Coded sub-units, for encoding the character string in the text information;
Font obtains subelement, for obtaining the corresponding character string in the font based on the character string after coding Font information.
21. the device of text conversion according to claim 20, which is characterized in that the font obtains subelement, specifically For obtaining the vector value and character pixels of the corresponding character string in the font based on the character string after coding Amount.
22. the device of text conversion according to claim 21, which is characterized in that the drawing unit, comprising:
Scaling deformation subelement, for the font information to be zoomed in and out deformation;
Subelement is drawn, for the vector value of the deformed font information will to be scaled, as in the vector graphics file In, draw the information that draws a design of the font information.
23. a kind of electronic equipment, which is characterized in that the electronic equipment, comprising:
Processor;
Memory, for storing text conversion program, described program executes following behaviour when reading execution by the processor Make: parsing vector graphics file obtains text information;According to text information described in default font matching, the text information is obtained The corresponding font information in the default font;The font information is zoomed in and out into deformation, obtains the text information Draw a design information;Using the information that draws a design, the text information in the vector graphics file is replaced.
CN201810101179.8A 2018-02-01 2018-02-01 A kind of method, apparatus and electronic equipment of text conversion Pending CN110110258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810101179.8A CN110110258A (en) 2018-02-01 2018-02-01 A kind of method, apparatus and electronic equipment of text conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810101179.8A CN110110258A (en) 2018-02-01 2018-02-01 A kind of method, apparatus and electronic equipment of text conversion

Publications (1)

Publication Number Publication Date
CN110110258A true CN110110258A (en) 2019-08-09

Family

ID=67483148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810101179.8A Pending CN110110258A (en) 2018-02-01 2018-02-01 A kind of method, apparatus and electronic equipment of text conversion

Country Status (1)

Country Link
CN (1) CN110110258A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111401001A (en) * 2020-03-13 2020-07-10 浙江学海教育科技有限公司 TextView linear scaling method, device, equipment and medium
CN112016267A (en) * 2020-08-05 2020-12-01 北京达佳互联信息技术有限公司 Icon font processing method and device and storage medium
CN112417826A (en) * 2020-11-24 2021-02-26 济南智学承远信息技术有限公司 PDF online editing method and device, electronic equipment and readable storage medium
CN112966318A (en) * 2021-04-12 2021-06-15 青矩技术股份有限公司 Method for displaying characters in CAD file and terminal equipment
WO2021176281A1 (en) * 2020-03-06 2021-09-10 International Business Machines Corporation Digital image processing
CN113505569A (en) * 2021-06-07 2021-10-15 深圳市华阳国际工程设计股份有限公司 DWG drawing font adapting method and device, terminal equipment and storage medium
CN113573125A (en) * 2020-04-29 2021-10-29 深圳Tcl新技术有限公司 Subtitle rendering method and system based on SVG (scalable vector graphics) font library
CN114117366A (en) * 2022-01-25 2022-03-01 合肥高维数据技术有限公司 Character deformation method and system based on full character transformation
US11361146B2 (en) 2020-03-06 2022-06-14 International Business Machines Corporation Memory-efficient document processing
CN114861595A (en) * 2022-03-22 2022-08-05 电子科技大学 Vector line transformation-based individual font generation method
US11494588B2 (en) 2020-03-06 2022-11-08 International Business Machines Corporation Ground truth generation for image segmentation
US11556852B2 (en) 2020-03-06 2023-01-17 International Business Machines Corporation Efficient ground truth annotation
CN115796119A (en) * 2023-02-02 2023-03-14 合肥高维数据技术有限公司 Font calibration method based on rendering effect
CN115870629A (en) * 2023-02-21 2023-03-31 飞天诚信科技股份有限公司 Laser lettering method, device, equipment and medium for single-line font
CN116362202A (en) * 2023-06-01 2023-06-30 合肥高维数据技术有限公司 Font generation method, storage medium and electronic device
CN116680489A (en) * 2023-04-07 2023-09-01 深圳市同行者科技有限公司 Method, device, equipment and storage medium for modifying svg image color
CN117236280A (en) * 2023-09-13 2023-12-15 北京饼干科技有限公司 Vertical text display method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120079374A1 (en) * 2010-09-29 2012-03-29 Apple Inc. Rendering web page text in a non-native font
CN103902513A (en) * 2014-03-21 2014-07-02 北京百度网讯科技有限公司 Method and device for displaying fonts in terminal device
US8830241B1 (en) * 2009-11-30 2014-09-09 Amazon Technologies, Inc. Image conversion of text-based images

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8830241B1 (en) * 2009-11-30 2014-09-09 Amazon Technologies, Inc. Image conversion of text-based images
US20120079374A1 (en) * 2010-09-29 2012-03-29 Apple Inc. Rendering web page text in a non-native font
CN103902513A (en) * 2014-03-21 2014-07-02 北京百度网讯科技有限公司 Method and device for displaying fonts in terminal device

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11361146B2 (en) 2020-03-06 2022-06-14 International Business Machines Corporation Memory-efficient document processing
GB2608750B (en) * 2020-03-06 2024-05-08 Ibm Digital image processing
US11556852B2 (en) 2020-03-06 2023-01-17 International Business Machines Corporation Efficient ground truth annotation
GB2608750A (en) * 2020-03-06 2023-01-11 Ibm Digital image processing
WO2021176281A1 (en) * 2020-03-06 2021-09-10 International Business Machines Corporation Digital image processing
US11495038B2 (en) 2020-03-06 2022-11-08 International Business Machines Corporation Digital image processing
US11494588B2 (en) 2020-03-06 2022-11-08 International Business Machines Corporation Ground truth generation for image segmentation
CN111401001A (en) * 2020-03-13 2020-07-10 浙江学海教育科技有限公司 TextView linear scaling method, device, equipment and medium
CN113573125A (en) * 2020-04-29 2021-10-29 深圳Tcl新技术有限公司 Subtitle rendering method and system based on SVG (scalable vector graphics) font library
CN112016267A (en) * 2020-08-05 2020-12-01 北京达佳互联信息技术有限公司 Icon font processing method and device and storage medium
CN112417826A (en) * 2020-11-24 2021-02-26 济南智学承远信息技术有限公司 PDF online editing method and device, electronic equipment and readable storage medium
CN112966318A (en) * 2021-04-12 2021-06-15 青矩技术股份有限公司 Method for displaying characters in CAD file and terminal equipment
CN112966318B (en) * 2021-04-12 2022-06-10 青矩技术股份有限公司 Method for displaying characters in CAD file and terminal equipment
CN113505569A (en) * 2021-06-07 2021-10-15 深圳市华阳国际工程设计股份有限公司 DWG drawing font adapting method and device, terminal equipment and storage medium
CN114117366B (en) * 2022-01-25 2022-04-08 合肥高维数据技术有限公司 Character deformation method and system based on full character transformation
CN114117366A (en) * 2022-01-25 2022-03-01 合肥高维数据技术有限公司 Character deformation method and system based on full character transformation
CN114861595A (en) * 2022-03-22 2022-08-05 电子科技大学 Vector line transformation-based individual font generation method
CN114861595B (en) * 2022-03-22 2023-04-07 电子科技大学 Vector line transformation-based individual font generation method
CN115796119A (en) * 2023-02-02 2023-03-14 合肥高维数据技术有限公司 Font calibration method based on rendering effect
CN115870629A (en) * 2023-02-21 2023-03-31 飞天诚信科技股份有限公司 Laser lettering method, device, equipment and medium for single-line font
CN116680489A (en) * 2023-04-07 2023-09-01 深圳市同行者科技有限公司 Method, device, equipment and storage medium for modifying svg image color
CN116362202B (en) * 2023-06-01 2023-08-11 合肥高维数据技术有限公司 Font generation method, storage medium and electronic device
CN116362202A (en) * 2023-06-01 2023-06-30 合肥高维数据技术有限公司 Font generation method, storage medium and electronic device
CN117236280A (en) * 2023-09-13 2023-12-15 北京饼干科技有限公司 Vertical text display method and device
CN117236280B (en) * 2023-09-13 2024-05-24 北京饼干科技有限公司 Vertical text display method and device

Similar Documents

Publication Publication Date Title
CN110110258A (en) A kind of method, apparatus and electronic equipment of text conversion
Eisenberg et al. SVG essentials: Producing scalable vector graphics with XML
US8923651B2 (en) Data system and method
US20080068383A1 (en) Rendering and encoding glyphs
CN109933751B (en) Image-text drawing method and device, computer-readable storage medium and computer equipment
CN108399172B (en) Vector diagram generation method and device
CN108389244B (en) Implementation method for rendering flash rich text according to specified character rules
CN107301046A (en) Treating method and apparatus, computer equipment and the storage medium of icon
CN113283228A (en) Document generation method and device, electronic equipment and storage medium
CN116954450A (en) Screenshot method and device for front-end webpage, storage medium and terminal
CN106776994B (en) Application method and system of engineering symbols in engineering report forms and web pages
CN114791988A (en) Browser-based PDF file analysis method, system and storage medium
JP2007517251A (en) Configuration for font scaling
CN111063010A (en) Map motion track animation realization method and device, electronic equipment and storage medium
Bagley et al. Creating reusable well-structured PDF as a sequence of component object graphic (COG) elements
CN111274761A (en) Font editing method and system using SVG format, and computer-readable recording medium
CN111199568B (en) Vector diagram drawing method and device and computer readable storage medium
CN116663496A (en) SVG technology-based browser small font display component, display method and creation method
CN114254585A (en) Font generation method and device, electronic equipment and storage medium
CN110018863B (en) Mobile terminal text display method, storage medium, equipment and system
CN115328455A (en) Information display method, device, equipment and medium for flutter application
US20150205764A1 (en) Encoding information into text for visual representation
CN111768823B (en) SVG element-based medical expression editing method, device, equipment and medium
Dengler et al. Scalable vector graphics (SVG) 1.1
Williams Font creation with FontForge

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40012125

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190809