Optimization method and device based on file embedded font
A technology of embedded fonts and optimization methods, which is applied in the fields of electrical digital data processing, instruments, calculations, etc., can solve the problems of large amount of data, increase the amount of document data, etc., to improve processing speed, reduce repeated fonts, and reduce the amount of calculation Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] This embodiment provides an optimization method based on embedded fonts in documents, which is used to process format documents with embedded fonts. The flow chart is as follows figure 1 shown, including the following steps:
[0045] S1. Obtain font information of fonts embedded in a document, where the font information includes font names and corresponding font files.
[0046] In this step, the document containing embedded fonts is imported, all pages are traversed, and the font information of all embedded word mentions on each page in the document is extracted. Here, the font information includes the font name and its corresponding font file, such as "Arial" , the corresponding font file is file 1, which stores Song typeface characters ("you", "good", "I", "we").
[0047] The font names of the embedded font tables are combined into multiple font sets to be merged, and each font set may include one or more embedded font data with the same font name but different glyph...
Embodiment 2
[0066] This embodiment provides a specific application example of an optimization method based on embedded fonts in documents, which is used to optimize embedded fonts in documents and delete repeated glyph data in embedded fonts. Including the following three steps, for example corresponding to a certain PDF book, the specific implementation method is as follows:
[0067] The first step, font collection, obtains the font information of the font embedded in the document, and the font information includes the font name and its corresponding font file. Import a book-like PDF document, extract the font information of all text in the entire document, and record the correspondence table between the font name and the font file, for example, font A1 corresponds to the font name "FontA", and the corresponding font file "A1.ttf", font A2 Corresponds to its own name "FontA", corresponding to the font file "A2.ttf", font A3 corresponds to its own name "FontA", corresponding to the font f...
Embodiment 3
[0084] This embodiment provides an optimization device based on embedded fonts in documents, the structural block diagram is as follows Figure 5 shown, including:
[0085] The font collection unit 01 is used to obtain font information of fonts embedded in the document, the font information including font names and corresponding font files;
[0086] Font parsing unit 02, to obtain the glyphs and their attribute information in the font file;
[0087] The font merging unit 03 merges font files with the same font name according to the glyphs and their attribute information.
[0088] Among them, the font merging unit includes:
[0089] Merge the font library to create a subunit, and create a merged font library;
[0090] The font file to be merged obtains the subunit to obtain the font file to be merged;
[0091] The merging subunit judges whether the merged font library is empty, and if the merged font library is empty, adds the glyphs and their attribute information in the f...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com