CN116451645A - Text processing method, text processing device, electronic equipment and computer readable storage medium - Google Patents

Text processing method, text processing device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116451645A
CN116451645A CN202310438541.1A CN202310438541A CN116451645A CN 116451645 A CN116451645 A CN 116451645A CN 202310438541 A CN202310438541 A CN 202310438541A CN 116451645 A CN116451645 A CN 116451645A
Authority
CN
China
Prior art keywords
font
information
target text
file
font file
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
CN202310438541.1A
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 Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing 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 Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Publication of CN116451645A publication Critical patent/CN116451645A/en
Pending legal-status Critical Current

Links

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
    • G06F40/109Font handling; Temporal or kinetic typography

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

According to the embodiment of the application, firstly, based on the font of a target text, corresponding initial font file analysis data is determined, font information of the target text is read from the initial font file analysis data, then, based on the font information of the target text, a first font file is generated, and finally, the target text is displayed based on the first font file. By adopting the scheme, the text processing speed can be improved, and the memory resource can be saved. In addition, when the font information corresponding to a certain word in the target text is not read in the initial font file analysis data, the font information corresponding to the word may be read in at least one supplementary font file analysis data, so that when the font information of the font of the target text does not contain a certain rare word, the font information of other fonts is used for supplementation, and the target text displayed based on the first font file is not omitted.

Description

Text processing method, text processing device, electronic equipment and computer readable storage medium
Cross Reference to Related Applications
The present application claims priority from the chinese patent office, application No. 202210673013.X, entitled "text processing method, apparatus, electronic device, and computer readable storage medium," filed 14 at month 2022, 06, the entire contents of which are incorporated herein by reference.
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a text processing method, a text processing device, an electronic device, and a computer readable storage medium.
Background
In image processing scenes such as Logo (graphic identification) design, poster design and the like, some texts are often required to be added in the designed image, and are often presented by using various fonts so as to enrich the design effect of the image.
The text is displayed in an image or other file, a font file is needed, different fonts correspond to different font files, and generally, one font file contains font information of a plurality of characters adopting the corresponding fonts. Multiple fonts are needed in the image processing scene, so that more font files need to be loaded, and the problems of slow loading, high memory overhead and the like exist.
In addition, because the number of the characters contained in different font files is different, when the font information of a certain rarely used character in a certain font file is needed, the font information of the rarely used character may not be contained in some font files, so that blank or error is easily caused at the position corresponding to the rarely used character on the finally presented text, and the design effect of the image is affected.
Disclosure of Invention
Embodiments of the present application provide a text processing method, apparatus, electronic device, and computer readable storage medium, so as to solve one or more of the above technical problems.
In a first aspect, an embodiment of the present application provides a text processing method, including:
determining corresponding initial font file analysis data based on the fonts of the target text;
reading font information of the target text from the initial font file analysis data;
generating a first font file based on the font information of the target text;
and displaying the target text based on the first font file.
In a second aspect, an embodiment of the present application provides a text processing apparatus, including:
the data determining module is used for determining corresponding initial font file analysis data based on the fonts of the target text;
the font reading module is used for reading the font information of the target text from the initial font file analysis data;
the file generation module is used for generating a first font file based on the font information of the target text;
and the text display module is used for displaying the target text based on the first font file.
In a third aspect, embodiments of the present application provide an electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the method of any one of the preceding claims when the computer program is executed.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored therein, which when executed by a processor, implements a method as in any of the above.
Compared with the related art, the method has the following advantages:
according to the scheme of the embodiment of the application, the font file analysis data corresponding to various fonts can be stored in advance, and when the target text needs to be displayed in a certain font, the corresponding initial font file analysis data is determined based on the font. And then, the font information of the target text is read from the font file analysis data, and a first font file is generated based on the font information. Because the first font file is generated based on the font information of the target text, the data volume is small, the target text is displayed based on the font file, the processing speed is high, and the memory resources are saved.
In addition, when the font information corresponding to a certain word in the target text is not read in the initial font file analysis data, the font information corresponding to the word may be read in at least one supplementary font file analysis data, so that when the font information of the font of the target text does not contain a certain rare word, the font information of other fonts is used for supplementation, and the target text displayed based on the first font file is not omitted.
The foregoing description is merely an overview of the technical solutions of the present application, and in order to make the technical means of the present application more clearly understood, it is possible to implement the present application according to the content of the present specification, and in order to make the above and other objects, features and advantages of the present application more clearly understood, the following detailed description of the present application will be given.
Drawings
In the drawings, the same reference numerals refer to the same or similar parts or elements throughout the several views unless otherwise specified. The figures are not necessarily drawn to scale. It is appreciated that these drawings depict only some embodiments according to the application and are not to be considered limiting of its scope.
Fig. 1 shows a schematic diagram of an application scenario of a text processing scheme provided in an embodiment of the present application;
FIG. 2 shows a schematic diagram of another application scenario of the text processing scheme provided in an embodiment of the present application;
FIG. 3 shows a flow chart of a text processing method provided in an embodiment of the present application;
FIG. 4 shows a schematic diagram of the structure of ttf files in one embodiment of the present application;
FIG. 5 shows a schematic diagram of a data field cmap in a ttf file in one embodiment of the present application;
FIG. 6 shows a schematic diagram of the data field glyf in the ttf file in one embodiment of the present application;
FIG. 7 shows a block diagram of a text processing apparatus provided in an embodiment of the present application; and
fig. 8 shows a block diagram of an electronic device used to implement an embodiment of the present application.
Detailed Description
Hereinafter, only certain exemplary embodiments are briefly described. As will be recognized by those of skill in the pertinent art, the described embodiments may be modified in various different ways without departing from the spirit or scope of the present application. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
In order to facilitate understanding of the technical solutions of the embodiments of the present application, the following describes related technologies of the embodiments of the present application. The following related technologies may be optionally combined with the technical solutions of the embodiments of the present application, which all belong to the protection scope of the embodiments of the present application.
In the related art, the manner of extracting Font information of text to display the text is generally to directly read a Font file, such as a commonly used ttf (TrueType Font) file, from a Font library in a disk file. Font information is directly extracted from the font file based on the set code. However, the code reads the complete font file from the disk file every time, and the font information is extracted once per time, and the extraction speed is slow.
After the font file is read, the font file is cached in the memory, so that the disk IO can be avoided for each time of information extraction, and the speed can be greatly improved. This approach can have good performance when using few font types. However, in some scenarios, the font types that need to be used are more, so that the font files that need to be loaded are also more, and a large amount of memory resources need to be consumed. Particularly in a distributed system, since each machine may cache data in a memory, memory resources are particularly important, and a large amount of memory overhead due to font information extraction is not a suitable solution.
In addition, because the number of the characters contained in different font files is different, when the font information of a certain rarely used word in a certain font file is needed, the font information of the rarely used word may not be contained in some font files, so that blank or error is likely to appear at the position corresponding to the rarely used word on the finally presented text, the displayed text is missed, and the display effect of the text is affected.
In view of the foregoing, embodiments of the present application provide a text processing method, apparatus, electronic device, and computer readable storage medium, so as to solve all or part of the above technical problems.
Fig. 1 is a schematic diagram of an application scenario of a text processing scheme provided in an embodiment of the present application. The application scene is a scene in which image design is performed by adopting an image processing service. Wherein the image processing service may be deployed at the user device; the cloud server can be deployed to provide an image processing interface for a user by transmitting an image data stream generated by the cloud server to the user equipment. A text processing module may be included in the image processing service for processing the text related request.
As shown in fig. 1, upon triggering a request to add text on the image processing interface, the text processing module may obtain the font type (e.g., font 1) and the text. As described in the foregoing related art, the text processing module may extract font information of a text based on a font file read by reading the font file in the font library to display the text in a corresponding font in the image processing interface. In the scene shown in fig. 1, although the number of texts in the image is required to be small, multiple fonts are often required to enrich the design effect of the image, so that a large number of font files need to be read, but more unnecessary text information is contained in the files, and unnecessary resource overhead is generated.
In the embodiment of the application, in order to improve the reading speed and reduce the resource expense, font file analysis data corresponding to various fonts can be stored in advance, when a text needs to be displayed in a certain font, font information of the text is read in the corresponding font file analysis data, a new font file is generated based on the font information, and the text adopting the specific font is added into an image by using the font file. For example, for font 1.Ttf, font 2.Ttf, font 3.Ttf, and the like in the font library shown in fig. 1, corresponding font 1 analysis data, font 2 analysis data, font 3 analysis data, and the like are analyzed, respectively, and stored in a specific storage space. If the text processing service needs to extract font information when the text adopts the font 1, the font 1 analysis data in the specific storage space can read the font information of the requested text, a new font file is generated based on the font information, and the text adopting the font 1 is added into the image by using the font file. The new font file generated based on the font information in the font 1 may be in a font file with a file format ttf, and the font file may include font information of a plurality of characters in the target text, for example, "water toxic".
Fig. 2 shows a schematic diagram of another application scenario of the text processing scheme provided in the embodiment of the present application. The application scenario in fig. 2 is different from that in fig. 1 in that, when a request for adding text is triggered on the image processing interface in fig. 1, after the text processing module obtains a font type (e.g. font 1) and the text, font information of the requested text is read only from font 1 analysis data in a specific storage space corresponding to the obtained font type (e.g. font 1). However, if the font information of the requested text is not read from the font 1 analysis data, the application scenario in fig. 1 will not read the font information from the font analysis data corresponding to other unspecified font types, and if the text contains a rarely used word and the font 1 analysis data does not contain the font information of the rarely used word, the rarely used word may not be displayed on the image processing interface. For example, the text is "toxic in the water of the culminate", wherein "belongs to the rarely used word, and font 1 does not contain the font information of the rarely used word," the "nugget" cannot be displayed on the image processing interface according to the scheme in fig. 1. However, according to the scheme of FIG. 2, the rarely used word "out of the way" will be displayed.
As shown in fig. 2, after acquiring the font type (e.g., font 1) and the target text "water-out-of-toxic", the text processing module may read font information of the target text "water-out-of-toxic" in font 1 analysis data (initial font file analysis data) corresponding to the font 1 in the font library stored in the specific storage space, and when the rare word "no" per-unit "cannot be read in the font 1 analysis data, the text processing module may generate a new font file based on the font information by reading font information of the target text" per-unit "in supplemental font file analysis data (e.g., font 2 analysis data) corresponding to other fonts (e.g., font 2) in the font library stored in the specific storage space. Then, the font file is used again, the target text "water toxic" adopting the font 1 and the target text "core" in the target text adopting the font 2 are added into the image, and finally, the text display effect at the image processing interface can be seen in fig. 2. The font file generated based on the font information in the font 1 and the font information in the font 2 may be a binary font file.
The execution body of the embodiment of the present application may be an application, a service, an instance, a functional module in a software form, a Virtual Machine (VM), a container, a cloud server, or the like, or a hardware device (such as a server or a terminal device) or a hardware chip (such as a CPU, GPU, FPGA, NPU, AI accelerator card or a DPU) with a data processing function, or the like. The apparatus for implementing text processing may be deployed on a computing device of an application party providing a corresponding service or a cloud computing platform providing computing power, storage and network resources, and the mode of external service provided by the cloud computing platform may be IaaS (Infrastructure as aService ), paaS (Platform as a Service, platform as a service), saaS (Software as aService ) or DaaS (Data as a Service, data as a service). Taking the example that the platform provides SaaS software as a service (Software as a Service), the cloud computing platform can provide training of a text processing model or functional execution of a text processing module by utilizing own computing resources, and a specific application architecture can be built according to service requirements. For example, the platform may provide a build service based on the model to an application or individual using the platform resources, further invoking the model and implementing functions of online or offline text processing based on text processing requests submitted by devices such as relevant clients or servers.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
The following describes the technical solution of the present application and how the technical solution of the present application solves the foregoing technical problems in detail with specific embodiments. The specific embodiments illustrated may be combined with one another and the same or similar concepts or processes may not be described in detail in some embodiments. Implementations of embodiments of the present application will now be described in detail with reference to the accompanying drawings, which are for illustration only and are not intended to limit the embodiments of the present application.
The embodiment of the application provides a text processing method, which can be applied to the scene shown in fig. 1 or fig. 2, but is not limited thereto, and a person skilled in the art can understand that in any scene where font information of a text needs to be extracted to display the text, the method can be used to improve the processing speed, reduce the memory consumption and display the rarely used words so as to cause the displayed text to be omitted. As shown in fig. 3, which is a flowchart illustrating a text processing method 300 according to an embodiment of the present application, the method 300 may include:
In step S301, corresponding initial font file analyzing data is determined based on the font of the target text.
In the embodiment of the application, the target text is the text to be processed, for example, the text to be added in the document, the image and other files for display. The target text may include one or more words. Generally, when text is added, text is displayed based on a default font or a font set by a user, and in the embodiment of the present application, the font of the target text may refer to the default font or the font set by the user when the text is added is triggered.
In one possible implementation, before determining the corresponding initial font file analyzing data based on the font of the target text, the second font file may be further analyzed to obtain the font file analyzing data, and the font file analyzing data is stored in the buffer device. The font file parsing data at least comprises initial font file parsing data.
The initial font file parsing data may be font file parsing data corresponding to the font of the target text, for example, the default font or the font designated by the target text set by the user is "braille cloud", and then the initial font file parsing data is stored in a specific storage space, and corresponds to the font file "braille cloud" of the target text stored in the font library.
Of course, the font file parsing data may further include supplementary font file parsing data on the basis of this. The supplementary font file parsing data may be font file parsing data not corresponding to the font of the target text, for example, a default font or a font designated by the target text set by the user is a "braille", and the supplementary font file parsing data is font file parsing data of "Song Ti" corresponding to a font file stored in a font library of "Song Ti" stored in a specific storage space. The supplementary font file parsing data may be one or more.
According to the method and the device, when the original font file analysis data does not comprise the uncommon words in the target text, the uncommon words which are not read in the font information are used as the target words, and the target words, namely the font information corresponding to the uncommon words, are read in at least one supplementary font file analysis data. Correspondingly, a certain supplementary font file analysis data (for example, font file analysis data corresponding to a font file stored in a font library of a default font, the default font may be bold) containing font information of more characters can be selected in advance, and used as supplementary font file analysis data of a spam, when the target text comprises a rarely used word, the font information of the rarely used word is searched from the supplementary font file analysis data of the spam first, and if the supplementary font file analysis data of the spam contains the font information of the rarely used word, the font information is read; if the font information of the rarely used word is not contained in the supplementary font file analysis data of the spam, returning to the text processing module or continuing to search the font information of the rarely used word in other supplementary font file analysis data, and the application does not limit the font information.
That is, the font file parsing data may be stored in a cache device, for example, an external cache device memcache (cache system) or redis (remote dictionary service), or the like. Of course, in addition to the initial font file parsing data being stored in the external caching device in the above steps, the supplemental font file parsing data may be stored in the caching device, for example, the external caching device memcache or redis, before the font information in the supplemental font file parsing data is read, and the processing procedure and logic of the supplemental font file parsing data are similar to those of the initial font file parsing data. By storing the file analysis data in the cache device, font information can be read in the cache device every time text is input, multiple disk IO is not needed, and the text processing speed can be further improved.
For example, the font file parsing data in the embodiment of the present application may include font information of a plurality of characters. For example, the font file parsing data may include data obtained by parsing the second font file. The second font file may be a native font file stored in a font library, such as a regular script ttf file, song Ti ttf file, etc.
For ease of understanding, the structure of the font file will be described below using ttf file as an example. the ttf file structure is shown in fig. 4, and one ttf file mainly contains cmap, glyf, head, hhea, hmtx, loca, maxp, name, vmtx, prep and other data fields. Wherein the important data fields include cmap and glyf. Stored in the cmap is a character mapping relationship, i.e., a mapping relationship between characters and positions of the font information. glyf stores font information. The other data fields are mainly meta information of fonts. Wherein the font information includes outline information of one word, position information of each node in the outline, and the like.
For example, as shown in fig. 5, the information stored in the cmap includes a corresponding 1516 of u+5423, which means that the storage location of the font information corresponding to the word with Unicode (Unicode) value of u+5423 is 1516; wherein the word with Unicode value u+5423 is a "" word. glyf stores the font information of each word, and as shown in fig. 6, 1516 is the font information of "" word, including the position information of each outline and each outline node constituting "" word, for example, a point (0:0) in fig. 6 indicates node 0 in outline 0.
By analyzing the font file, the font information of each word contained in the font file can be extracted. In the embodiment of the application, the font file parsing data may include font information of a word adopting a certain font corresponding to the font file parsing data. Based on this, the font information of each text can be read in the font file analysis data according to each text included in the target text, thereby obtaining the font information of the target text. In step S302 of the embodiment of the present application, according to each text included in the target text, the font information of each text may be read in the initial font file analysis data; and when the font information corresponding to a certain character is not read in the initial font file analysis data, the character which is not read in the font information is used as the target character, and the font information corresponding to the target character is read in at least one supplementary font file analysis data so as to obtain the font information of the target text.
It will be appreciated that in some embodiments, the font file parsing data may be obtained in other manners, for example, by designing a font style of a custom font, that is, the font file parsing data is obtained based on the font style information of the custom font, and the font file is generated based on the required text when in use, without generating the font file in advance according to the data structure of the native font file.
Based on the font information of the target text and the information carried by the data field of the font of the target text, such as head, hhea, hmtx, a lightweight font file having the same data structure as the native font file, that is, the first font file in step S303 of the embodiment of the present application, can be generated. In this way, the target text may be displayed based on the first font file.
As can be seen, according to the text processing method of the embodiment of the present application, font file analysis data corresponding to various fonts may be stored in advance, and when it is necessary to display a target text in a certain font, the corresponding initial font file analysis data is determined based on the font. And reading font information of the target text from at least the initial font file analysis data, and generating a first font file based on the font information. Because the first font file is generated based on the font information of the target text, the data volume is small, the target text is displayed based on the font file, the processing speed is high, and the memory resources are saved.
In some scenarios, the embodiment of the application may further obtain font file analysis data based on font information of different fonts, so that the font file analysis data includes more comprehensive font information. Illustratively, the second font file may include N font files, where N is an integer greater than or equal to 2. Analyzing the second font file to obtain font file analysis data, which can be realized by the following steps:
Firstly, analyzing an ith font file in N font files to obtain font information of M words; wherein i is a positive integer less than or equal to N, M is an integer greater than or equal to 1; secondly, analyzing the j-th font file in the N font files to obtain font information of L characters; wherein j is a positive integer less than or equal to N, L is an integer greater than or equal to 1; finally, font file analysis data can be obtained based on the font information of the M words and the font information of the L words. Illustratively, the M words and L words may include different words such that unique glyph information may be found from one word.
According to the mode, different font files can be adopted to obtain font information in the font file analysis data. For example, the font information of the characters such as "test", "data" and the like is obtained by analyzing the regular script ttf file; and analyzing Song Ti ttf files to obtain the font information of the words such as 'target', 'text', 'book', and the like. Thus, in the case that some font files lack the font information of a part of the words, other font files can be adopted to complement the font information of the part of the words, so as to solve the problem that the font information of some of the words cannot be read to cause that the words cannot be displayed in the related art.
In practical applications, when font file analysis data contains font information of two or more fonts, the font names in the font file analysis data may contain names of one or more fonts. For example, in the case of adding font information of the j-th font file to the font file analysis data in order to complement font information of an individual text missing from the i-th font file, the font file analysis data may include only a font name corresponding to the i-th font file. When the font corresponding to the ith font file is adopted to input the individual character, the font information of the jth font file is read from the font file analysis data and displayed based on the font information. For another example, in other scenarios, the font file parsing data may include font names of multiple fonts, so that when text is input using one of the fonts, font information of the font can be read from the font file parsing data.
On the basis of the embodiment, the font information of different font files can be normalized. The font file analysis data is obtained based on the font information of M words and the font information of L words, and the font file analysis data is obtained by normalizing the font information of M words and the font information of L words to obtain normalized data and then based on the normalized data.
Illustratively, normalizing the glyph information may include unifying default font sizes of individual words to a preset font size to avoid differences in the default font sizes of different font files resulting in different text sizes presented based on the newly generated first font file. According to the mode, the font information is normalized, so that the fact that the text formats presented based on the newly generated first font file are different can be avoided, and the need for additional format processing by a user is avoided.
Further, in the process of reading the normalized font information, if the font information of the target text is read from the two font file analysis data at the same time, for example, if the rarely used word is "in the middle of the world", the target text is "toxic to the water" and is read from the initial font file analysis data (for example, the font file analysis data corresponding to the "braille" font library) and the supplementary font file analysis data (for example, the font file analysis data corresponding to the "blackbody" font library), the scaling ratio of the determined font information may be determined according to the font size of the target text and the occupation information of each text in the target text on the display screen pixel, and the first font file may be formed according to the font information of each text after scaling. For example, the preset font size is 14 number and the font size of the target text is 18 number, then according to the determined scaling, it may be ensured that the text size presented based on the newly generated first font file is 18 number.
In step S302, font information of the target text is read from the initial font file analyzing data.
If the font information of all the characters in the target text can be read in the initial font file analysis data, a ttf file can be generated in the memory of the computing device based on the font information of all the characters, and then the font information is extracted and the characters in the target text are displayed by using the basic method of the ttf file in the memory. The basic method of ttf file used in the memory may be to extract the font information and display the text in the target text by using the mapping relation of 2 key value pairs in ttf file, for example, using the mapping relation between the cmp character and the position of the font information and the mapping relation between the position of the font information in glyf and the font information.
If the font information of all the characters in the target text cannot be read in the initial font file analysis data (which may be the case when the target text contains rarely used characters), a binary file is generated in the memory of the computing device based on the font information of part of the characters in the target text read in the initial font file analysis data and the font information of other characters in the target text read in the supplementary font file analysis data, and then the font information is extracted and the characters in the target text are displayed by using the basic method of the binary file in the memory. The basic method of the binary file used in the memory may be to display the text in the target text according to the read font information by the mapping relation of 1 key value pair in the binary file.
For example, a path (path) method using java (a computer language) graphic object to svg (Scalable Vector Graphics, scalable vector graphics, an image file format) may be used to display characters in a target text according to font information in a read binary form file. When character information of a certain character in a binary form file is converted into characters which can be displayed on a screen, the process of displaying the file can be regarded as a drawing process, namely, at most 6 coordinate points can be distributed on a display screen for the first stroke in the character in the binary form, the stroke is displayed on the screen according to the trend of the stroke and the distributed coordinate points in the character information, and then the steps are traversed and circulated to display the second stroke, the third stroke and the like of the character until the character information of the character is displayed on the screen. In the computer code corresponding to the method, stringBuilder b can represent a character string which dynamically and infinitely extends and can be a result of converted svg format file and path description; float [ ] connectors = new float [6] can represent 6 coordinates, up to 6 parameters (decimal or floating point number), because at the computer code level, up to 6 parameters are drawn, either straight or curved; while can represent the loop, can judge iteration has finished, if not finish, continue this loop; int type may represent the type of the current segment; if (| first) can determine if it is the first operation (first stroke) in the drawn text, not first adding a space, but first not needing to add a space; the app may represent a space; switch may represent a judgment; 'M' may represent movement, i.e. to a certain point; 'L' may represent a straight line drawn; 'Q' may represent a curve; 'C' may represent the path drawn or may represent a curve drawn.
In one possible implementation manner, the font information of the target text may include font information of a plurality of words, and the determining initial font file parsing data corresponding to the font of the target text may be determined by searching the initial font file parsing data corresponding to the font of the target text; the font information of the target text is read from the initial font file analysis data, and the searched font information can be extracted for each word in the target text under the condition that the font information corresponding to each word is searched in the initial font file analysis data.
Specifically, firstly, according to the font of the target text, the font name of the target text standardized by the object parameter (Path 2D) describing the polygon in the computer graphics built in a system can be allocated, and the font name of the real target text can be obtained. Since some fonts have various names, for example, a "braille cloud" may also be called a "free braille cloud", font text parsing data corresponding to the fonts of the target text having various names can be found by normalizing the font names of the target text, and these font text parsing data may be initial font text parsing data.
Next, font information (font) of the target text and a font unit pixel value (unitperem) corresponding to the font may be acquired. The font unit pixel value may be a parameter in the font, that is, how many points each word needs to use in a unit, for example, the Song body may be 1000, but the Duchesner cloud body may be 1200.
And determining the scaling of the determined font information according to the font size of the target text and the occupation information of each word in the target text on the pixels of the display screen, and forming a first font file according to the scaled font information of each word. For example, double scale may be used to represent the scale (double scale may also represent floating point number, decimal, size).
The parameters (variables) may then be initialized. For example assigning the coordinate parameter X to a fraction X; assigning the coordinate parameter Y to the decimal Y; initializing a character String corresponding to the text content of the target text (for example, "String content=parameter. For example, the character data length corresponding to the text "test data" of the target text may be 4, where the first character is "test", the second character is "try", the third character is "number", and the fourth character is "group".
Then, the characters in the character data can be circularly searched, namely, font information corresponding to the characters in the target text is searched in the initial font text analysis data. The loop traversal may be denoted "int i=0" in the computer code, i.e. first traverse from index 0, all the way to the last word. For example, a first character may be looked up (the first word may be denoted by "ch"), then a second character may be looked up, then a third character, and so on. When the font information corresponding to the character is found, the code point (codepoint) in the font information corresponding to the character can be converted into an identifier (int value), then the memory is called according to the occupation information of the characters in the target text to the display screen pixels, and then the key information in the key value pair corresponding to the font information can be generated.
Finally, if all font information corresponding to all characters in the target text can be found in the initial font text analysis data, the font cache structure information (GlyphInfo) corresponding to the character in the initial font text analysis data can be read out through a cache service (tairClient) according to the type of the font and the type of the memory object, the determined scaling and the font unit pixel value (unitsPerEm) corresponding to the font. And in the reading process, the mapping relation of the key value pairs can be used for reading according to the key information in the key value pairs corresponding to the font information generated in advance.
In some embodiments, the font information of the target text is read from the initial font file analysis data, and when the font information corresponding to a certain text is not read in the initial font file analysis data, the text not read with the font information is used as the target text, and the font information corresponding to the target text is read in at least one supplementary font file analysis data.
As described above, in the process of performing the cyclic traversal search on the characters in the character data corresponding to the target text, if all the font information corresponding to all the characters in the target text is not read in the initial font text analysis data, for example, when the font information corresponding to a certain character is absent (i.e., the characters of the target text may include rare words), the characters in which the font information is not read may be used as the target characters, and the font information corresponding to the target characters may be read in at least one supplementary font file analysis data.
Correspondingly, when the font information corresponding to the character data of the target text (uncommon word) is read, the code point (codepoint) in the font information corresponding to the character can be converted into an identifier (int value), and then a memory is called according to the occupation information of the text in the target text to the display screen pixel, so that the key information in the key value pair corresponding to the font information is generated. And the font cache structure information (GlyphInfo) corresponding to the character in the supplementary font text analysis data can be read out through a cache service (tairClient) according to the type of the font and the type of the memory object, the determined scaling and the font unit pixel value (unitsPerEm) corresponding to the font.
If the font information corresponding to the character data of the target text (uncommon word) is not found in the analysis data of the supplementary font file, the search can be stopped, reading is not performed any more, and the first font file is directly generated according to the font information corresponding to other words in the read target text.
The manner of reading the font information of the target text in the initial font text parsing data and the supplemental font file parsing data may be to convert the font information of the target text into a binary form. The memory storage object service (MemoryByteArray array) can be used for analyzing the font information of the target text into the font object with the binary structure, namely the font information can be expanded in the memory to become the readable structured font object in the memory. Then, the font object of the binary structure can be converted into a data stream (the computer code corresponding to the conversion can be "ReadableFontData") so that the font object becomes readable font data, and the subsequent processing is convenient. The readable font data may be further converted into a memory object using a simple glyph tool.
Finally, the basic method of the binary file which can be used in the memory displays the characters in the target text according to the read font information by utilizing the mapping relation of the key value pairs in the binary file. Specifically, the path method for converting the java graphic object into svg can be used to traverse the display position and the like of each character in the target text in the display screen corresponding to the font information according to the coordinates x and y of the extracted simple font information, and the characters in the target text are drawn in the forms of rightward extension, downward extension and the like along the x axis and the y axis according to the coordinates x and y in the font information, so that the characters in the target text are displayed.
In step S303, a first font file is generated based on font information of the target text.
Alternatively, the first font file is generated based on the font information of the target text, which may be generated in the memory based on the font information of the target text. For example, after extracting font information of four characters, i.e., test, data, and data, from the initial font file analysis data, a ttf file containing the four characters, i.e., test, data, and data, may be generated in the memory, so that the font information may be extracted and several characters, i.e., test, data, and data, may be displayed by a basic method using the ttf file in the memory. Of course, the first font file generated in the memory may be a file of another format, for example, a font file in a binary format, so long as the font file can be used to extract font information and display corresponding text, which is not limited in this application.
In one possible implementation, the manner of generating the first font file based on the font information of the target text may be to generate the first font file in binary form based on the font information read from the initial font file parsing data and the font information read from the at least one supplementary font file parsing data.
For example, when the font information of the four characters "water", "toxic" is read from the original font file analysis data, if the font information of the four characters "no", "water", "toxic" is read from the original font file analysis data, the font information of the three characters "water", "toxic" is read from the supplementary font file analysis data, and then the font information of the one character "no", "water", "toxic" read from the original font file analysis data and the font information of the "no", "toxic" read from the supplementary font file analysis data are read, and a binary file containing the four characters "no", "water", "toxic" is generated in the memory, so that the font information can be extracted and displayed by the basic method of using the binary file in the memory.
In some embodiments, the font information includes occupancy information characterizing text to pixels of the display screen, and the foregoing manner of generating the first font file based on the font information of the target text may be to determine a scaling of the determined font information according to a font size of the target text and occupancy information of each text in the target text to pixels of the display screen, and then form the first font file according to the scaled font information of each text. The scaling of the font information may be determined according to the font size of the target text and the occupation information of each text in the target text on the display screen pixels before the font information corresponding to the target text is read. At the computer code level, the above scale may be represented by double scale or scale, e.g., double scale=1 may represent a scale of 1; scale=1.0 may represent a scaling of 1.0. The pseudo code can be calculated by referring to the font information in the real-time example of the application.
For example, the font size of the target text is preset to be No. 10 words by the normalized font information in the font file parsing data, and the font size of the target text is No. 12 words, so that the scaling of the determined font information is determined according to the font size of the target text, the font unit pixel value (unitsPerEm) corresponding to the font of the target text, and the occupation information of each word in the target text on the display screen pixel, and it is ensured that the text size of the first font file presentation formed based on the scaled font information of each word is No. 12 words.
In step S304, the target text is displayed based on the first font file.
Alternatively, the above-described scheme may be applied to an image processing application, such as an application provided by the image processing service shown in fig. 1. Accordingly, the target text may include text entered by the user in the image processing application. The step S304 displays the target text based on the first font file, which may be based on the first font file, in the image to be processed opened in the image processing application. The image processing application has the characteristics of numerous font types and small text quantity, so that the data quantity of the font file to be read can be greatly reduced, the speed of text display is improved, and the memory consumption is reduced by adopting the scheme.
In practical application, the font file analysis data can adopt different structures to store font information of each text. Further, a corresponding ttf file or a corresponding binary file may be generated based on a storage structure in which font information of each character is different.
Specifically, the structure of the font information of each character stored in the font file analysis data may include a target character (GlyphInfo), a structured byte array (glyph) constituting the font information of the corresponding target character, a width of a display screen corresponding to the font size of the target character, and a constructor (public GlyphInfo (byte [ ] glyph, int advance width)) for initializing an object (advance width), calling a memory, applying for memory information, and the like in the computer code.
The corresponding parameter structure definition may include, in the computer code, a font name (private String name), content (private String content), font size or pixel (private Integer size), font thickness (private Float weight), parameters corresponding to X-axis coordinates of the text (private Integer X), parameters corresponding to Y-axis coordinates of the text (private Integer Y), character spacing parameters (private Integer kerning), and the like.
In one embodiment, the font file parsing data may include one or more key value pairs, the key information in the key value pairs may include font names, and the value information in the key value pairs may include a mapping relationship between text and font information. Illustratively, with a font name key and a hash map of a composite structure as a value, the structure of the font file parsing data may refer to the following examples:
in one embodiment, the font file parsing data may include one or more key value pairs, the key information in the key value pairs may include font names and text, and the value information in the key value pairs may include font information of the text. That is, with the font name and the word as keys, the font information as value, examples are as follows:
key= 'regular script |candela' - - - > value= { font information }
Therefore, according to the above structure, when the target text is processed, font information of each text can be read from the font file analysis data according to the font of the target text and the text contained in the target text.
It can be seen that according to the text processing method of the embodiment of the present application, font file analysis data corresponding to various fonts may be stored in advance, and when it is necessary to display a target text in a certain font, the corresponding initial font file analysis data is determined based on the font. And reading font information of the target text from at least the initial font file analysis data, and generating a first font file based on the font information. Because the first font file is generated based on the font information of the target text, the data volume is small, the target text is displayed based on the font file, the processing speed is high, and the memory resources are saved. Meanwhile, under the condition that font information corresponding to a certain word in the target text is not read in the initial font file analysis data, the font information corresponding to the word can be read in at least one supplementary font file analysis data, so that when the font information of the font of the target text does not contain a certain rare word, the font information of other fonts is used for supplementation, and the target text displayed based on the first font file is not missed.
Corresponding to the application scene and the method of the method provided by the embodiment of the application, the embodiment of the application also provides a text processing device. As shown in fig. 7, which is a block diagram illustrating a text processing device 700 according to an embodiment of the present application, the device 700 may include:
a data determining module 701, configured to determine corresponding initial font file parsing data based on a font of the target text;
a font reading module 702, configured to read font information of the target text from the initial font file parsing data;
a file generating module 703, configured to generate a first font file based on font information of the target text;
and a text display module 704, configured to display the target text based on the first font file.
In one possible implementation, the font information of the target text includes font information of a plurality of words, and the aforementioned data determining module 701 may include:
the initial font file analysis data searching sub-module is used for searching initial font file analysis data corresponding to the fonts of the target text;
the glyph read module 702 may include:
and the font information extraction sub-module is used for extracting the searched font information under the condition that the font information corresponding to each character is searched in the initial font file analysis data aiming at each character in the target text.
In one possible implementation, the glyph read module 702 may further include:
and the supplementary font file analysis data reading sub-module is used for taking the text which does not read the font information as the target text when the font information corresponding to a certain text is not read in the initial font file analysis data, and reading the font information corresponding to the target text in at least one supplementary font file analysis data.
In some embodiments, the file generation module 703 may include:
and a file generation sub-module for generating a first font file in binary form based on the font information read from the initial font file resolution data and the font information read from the at least one supplemental font file resolution data.
In one possible implementation, the font information includes information representing occupation of pixels of the display screen by text, and the file generating module 703 may include:
the file composition sub-module is used for determining the scaling ratio of the determined font information according to the font size of the target text and the occupation information of each word in the target text on the display screen pixel, and forming a first font file according to the font information after scaling of each word.
In one possible implementation, before determining the corresponding initial font file parsing data based on the font of the target text, the apparatus 700 may further include:
the data analysis module is used for analyzing the second font file to obtain font file analysis data, and storing the font file analysis data in the cache device, wherein the font file analysis data at least comprises the initial font file analysis data.
Optionally, the second font file includes N font files, N being an integer greater than or equal to 2;
the data parsing module may specifically be used for:
analyzing an ith font file in the N font files to obtain font information of M words; wherein i is a positive integer less than or equal to N, M is an integer greater than or equal to 1;
analyzing the j-th font file in the N font files to obtain font information of L words; wherein j is a positive integer less than or equal to N, L is an integer greater than or equal to 1;
font file analysis data is obtained based on the font information of M words and the font information of L words.
Optionally, the data analysis module may normalize the font information of the M words and the font information of the L words to obtain normalized data; and obtaining analysis data based on the normalization data.
In one possible implementation, the file generation module 703 is specifically configured to:
and generating a first font file in the memory based on the font information of the target text.
Optionally, the font file parsing data includes a plurality of key value pairs; the key information in the key value pair includes a font name, and the value information in the key value pair includes a mapping relationship between text and font information.
Optionally, the font file parsing data includes a plurality of key value pairs; the key information in the key value pair includes a font name and a character, and the value information in the key value pair includes font information of the character.
Optionally, the target text comprises text entered by a user in an image processing application; the text display module 704 is specifically configured to:
and displaying the target text in the image to be processed opened in the image processing application based on the first font file.
The functions of each module in each device of the embodiments of the present application may be referred to the corresponding descriptions in the above methods, and have corresponding beneficial effects, which are not described herein.
The embodiment of the application also provides electronic equipment for realizing the method. Fig. 8 shows a block diagram of an electronic device according to an embodiment of the application. As shown in fig. 8, the electronic device includes: a memory 801 and a processor 802, the memory 801 storing a computer program executable on the processor 802. The processor 802 implements the methods of the above-described embodiments when executing the computer program. The number of memories 801 and processors 802 may be one or more.
The electronic device further includes:
and the communication interface 803 is used for communicating with external equipment and carrying out data interaction transmission.
If the memory 801, the processor 802, and the communication interface 803 are implemented independently, the memory 801, the processor 802, and the communication interface 803 can be connected to each other through a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 8, but not only one bus or one type of bus.
Alternatively, in a specific implementation, if the memory 801, the processor 802, and the communication interface 803 are integrated on a chip, the memory 801, the processor 802, and the communication interface 803 may complete communication with each other through internal interfaces.
The present embodiments provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods provided in the embodiments of the present application.
Embodiments of the present application also provide a computer program product comprising a computer program which, when executed by a processor, implements the method provided in any of the embodiments of the present application.
The embodiment of the application also provides a chip, which comprises a processor and is used for calling the instructions stored in the memory from the memory and running the instructions stored in the memory, so that the communication device provided with the chip executes the method provided by the embodiment of the application.
The embodiment of the application also provides a chip, which comprises: the input interface, the output interface, the processor and the memory are connected through an internal connection path, the processor is used for executing codes in the memory, and when the codes are executed, the processor is used for executing the method provided by the embodiment of the application.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or any conventional processor or the like. It is noted that the processor may be a processor supporting an advanced reduced instruction set machine (Advanced RISC Machines, ARM) architecture.
Further alternatively, the memory may include a read-only memory and a random access memory. The memory may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), programmable ROM (PROM), erasable Programmable ROM (EPROM), electrically Erasable EPROM (EEPROM), or flash Memory, among others. Volatile memory can include random access memory (Random Access Memory, RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic RAM (Dynamic Random Access Memory, DRAM), synchronous DRAM (SDRAM), double Data Rate Synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct RAM (DR RAM).
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. Computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," 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 present application. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Any process or method described in flow charts or otherwise herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process. And the scope of the preferred embodiments of the present application includes additional implementations in which functions may be performed in a substantially simultaneous manner or in an opposite order from that shown or discussed, including in accordance with the functions that are involved.
Logic and/or steps described in the flowcharts or otherwise described herein, e.g., may be considered a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the methods of the embodiments described above may be performed by a program that, when executed, comprises one or a combination of the steps of the method embodiments, instructs the associated hardware to perform the method.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules described above, if implemented in the form of software functional modules and sold or used as a stand-alone product, may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The foregoing is merely exemplary embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of various changes or substitutions within the technical scope of the present application, which should be covered in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A text processing method, comprising:
determining corresponding initial font file analysis data based on the fonts of the target text;
reading font information of the target text from the initial font file analysis data;
generating a first font file based on the font information of the target text;
and displaying the target text based on the first font file.
2. The method of claim 1, wherein the glyph information for the target text includes glyph information for a plurality of words, and the determining the corresponding initial font file parsing data based on the font for the target text comprises:
searching initial font file analysis data corresponding to the font of the target text;
the step of reading the font information of the target text from the initial font file parsing data includes:
And extracting the searched font information under the condition that the font information corresponding to each character is searched in the initial font file analysis data aiming at each character in the target text.
3. The method of claim 1, further comprising:
and when the font information corresponding to a certain character is not read in the initial font file analysis data, taking the character of which the font information is not read as a target character, and reading the font information corresponding to the target character in at least one supplementary font file analysis data.
4. The method of claim 3, wherein the generating a first font file based on glyph information for the target text comprises:
a first font file in binary form is generated based on the font information read from the initial font file resolution data and the font information read from the at least one supplemental font file resolution data.
5. The method of claim 1, wherein the glyph information includes occupancy information characterizing text to display screen pixels, and wherein generating a first font file based on the glyph information for the target text includes:
And determining the scaling of the determined font information according to the font size of the target text and the occupation information of each word in the target text on the pixels of the display screen, and forming a first font file according to the scaled font information of each word.
6. The method of claim 1, wherein prior to determining the corresponding initial font file parsing data based on the font of the target text, the method further comprises:
analyzing the second font file to obtain font file analysis data, and storing the font file analysis data in a cache device, wherein the font file analysis data at least comprises the initial font file analysis data.
7. The method of claim 6, wherein the second font file comprises N font files, N being an integer greater than or equal to 2;
the parsing the second font file to obtain font file parsing data includes:
analyzing an ith font file in the N font files to obtain font information of M characters; wherein i is a positive integer less than or equal to N, M is an integer greater than or equal to 1;
analyzing the j-th font file in the N font files to obtain font information of L characters; wherein j is a positive integer less than or equal to N, L is an integer greater than or equal to 1;
And obtaining font file analysis data based on the font information of the M words and the font information of the L words.
8. The method of claim 7, wherein the obtaining font file parsing data based on the font information of the M words and the font information of the L words includes:
normalizing the font information of the M words and the font information of the L words to obtain normalized data;
and obtaining font file analysis data based on the normalization data.
9. The method of any of claims 1-8, wherein the generating a first font file based on glyph information for the target text comprises:
and generating the first font file in a memory based on the font information of the target text.
10. The method of any of claims 1-8, wherein the font file parsing data includes one or more key value pairs; the key information in the key value pair comprises a font name, and the value information in the key value pair comprises a mapping relation between characters and font information.
11. The method of any of claims 1-8, wherein the font file parsing data includes one or more key value pairs; the key information in the key value pair comprises a font name and characters, and the value information in the key value pair comprises font information of the characters.
12. The method of any of claims 1-8, wherein the target text comprises text entered by a user in an image processing application; the displaying the target text based on the first font file includes:
and displaying the target text in the image to be processed opened in the image processing application based on the first font file.
13. A text processing apparatus, comprising:
the data determining module is used for determining corresponding initial font file analysis data based on the fonts of the target text;
the font reading module is used for reading the font information of the target text from the initial font file analysis data;
the file generation module is used for generating a first font file based on the font information of the target text;
and the text display module is used for displaying the target text based on the first font file.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory, the processor implementing the method of any one of claims 1-12 when the computer program is executed.
15. A computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method of any of claims 1-12.
CN202310438541.1A 2022-06-14 2023-04-20 Text processing method, text processing device, electronic equipment and computer readable storage medium Pending CN116451645A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210673013X 2022-06-14
CN202210673013.XA CN115034176A (en) 2022-06-14 2022-06-14 Text processing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116451645A true CN116451645A (en) 2023-07-18

Family

ID=83125707

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202210673013.XA Pending CN115034176A (en) 2022-06-14 2022-06-14 Text processing method and device, electronic equipment and computer readable storage medium
CN202310438541.1A Pending CN116451645A (en) 2022-06-14 2023-04-20 Text processing method, text processing device, electronic equipment and computer readable storage medium

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202210673013.XA Pending CN115034176A (en) 2022-06-14 2022-06-14 Text processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN115034176A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725887A (en) * 2023-12-08 2024-03-19 中金金融认证中心有限公司 Text content display method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4390750A1 (en) * 2022-12-22 2024-06-26 Continental Automotive Technologies GmbH Computer implemented method for handling truetype font files in an embedded system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117725887A (en) * 2023-12-08 2024-03-19 中金金融认证中心有限公司 Text content display method and device

Also Published As

Publication number Publication date
CN115034176A (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN116451645A (en) Text processing method, text processing device, electronic equipment and computer readable storage medium
US9129421B2 (en) System and method for displaying complex scripts with a cloud computing architecture
US11507727B2 (en) Font rendering method and apparatus, and computer-readable storage medium
CN108717437B (en) Search result display method and device and storage medium
US20160078656A1 (en) Remote Font Management
KR20150091132A (en) Page rendering method and apparatus
CN111339458B (en) Page presentation method and device
JP2006106729A (en) Simplification of complex characters without impairing legibility
CN108874393B (en) Rendering method, rendering device, storage medium and computer equipment
CN104111922A (en) Processing method and device of streaming document
CN111414560A (en) Shared information processing method and device, related equipment and storage medium
CN113656763A (en) Method and device for determining small program feature vector and electronic equipment
CN110609981A (en) Text processing method and device, electronic equipment and computer readable storage medium
CN112449230B (en) Character string display processing method, device, terminal and storage medium
CN111460342B (en) Page rendering display method and device, electronic equipment and computer storage medium
US20170249292A1 (en) Conditional determination of lookups in glyph processing
CN110362790B (en) Font file processing method and device, electronic equipment and readable storage medium
CN110231935B (en) Script execution and updating method, device, equipment and storage medium
TW561360B (en) Method and system for case conversion
CN113448649A (en) Redis-based home page data loading server and method
US20070033035A1 (en) String display method and device compatible with the hindi language
CN110826005B (en) File generation method and device, electronic equipment and storage medium
CN113127123B (en) Window effect generation method and computing device
KR20020070106A (en) Method of controlling the display of a character based on a dynamic code generation
CN111723263B (en) Webpage data processing method, device, equipment and storage medium

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