CN101369953B - Font network distribution method and system - Google Patents

Font network distribution method and system Download PDF

Info

Publication number
CN101369953B
CN101369953B CN2008102224393A CN200810222439A CN101369953B CN 101369953 B CN101369953 B CN 101369953B CN 2008102224393 A CN2008102224393 A CN 2008102224393A CN 200810222439 A CN200810222439 A CN 200810222439A CN 101369953 B CN101369953 B CN 101369953B
Authority
CN
China
Prior art keywords
data
font
character
character library
publicly
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.)
Expired - Fee Related
Application number
CN2008102224393A
Other languages
Chinese (zh)
Other versions
CN101369953A (en
Inventor
李明
张国荣
刘昉
唐英敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University, Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University
Priority to CN2008102224393A priority Critical patent/CN101369953B/en
Publication of CN101369953A publication Critical patent/CN101369953A/en
Application granted granted Critical
Publication of CN101369953B publication Critical patent/CN101369953B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a network distribution method and system for word library, belonging to character information processing technology field. The existing word library distribution method employs whole word library distribution style, thereby results in many defects of large data quantity, slow response speed, large redundant data quantity. The inventive method and system divides data of word library into public data part and font dedicated data part on the basis of existing word library format, then dynamically extracts public data in public data part and font related dedicated data in font dedicated part, packs the data during extraction and generates data packet, distributes data packet to receiving terminal; receiving terminal unpack the data packet and extracts data in data packet. The inventive word library distribution method and system reduces network load and data redundancy, promotes response speed and accomplishes aim of distribution on demand.

Description

A kind of network distribution method of character library and system
Technical field
The invention belongs to character information processing technical field, be specifically related to a kind of network distribution method and system of character library, be applicable to the occasion that to share character library by network.
Background technology
Character library is one of important component part of modern operating system, and computer is finished presenting of font by it, as showing, prints etc.The character library organizational form of existing main flow is to carry out according to the difference of font style, even the font of same style different thicknesses also needs to be stored in the different character libraries.The upright Yao's body that for example uses among the Windows, Microsoft is refined black etc., and wherein the refined black branch that different thicknesses is arranged again of Microsoft is stored in respectively in the different files.And along with the expansion of character set, especially in order to support the East Asia languages, required number of characters constantly increases, and causes the data volume of character library constantly to increase.The inconvenience that causes character library under network environment, to distribute.
Weak points such as the mode of whole character library is directly downloaded in the general employing of existing character library distribution method, and this mode exists data volume big, and response speed is slow, and the redundant data amount is big.
Summary of the invention
At the defective that exists in the prior art, the purpose of this invention is to provide a kind of network distribution method and system of character library, these method and system can alleviate offered load, improve the amount of redundancy of response speed and reduction data.
To achieve these goals, the technical solution used in the present invention is that a kind of network distribution method of character library may further comprise the steps:
(1) transmitting terminal is divided into publicly-owned data division and the exclusive data division of font with the data in the character library, wherein, with possessing global data character in the character library and can nonexpondable data being divided into publicly-owned data division, data relevant with font in the character library are divided into the exclusive data division of font;
(2) the font exclusive data relevant in the exclusive data division of publicly-owned data, font in the publicly-owned data division of transmitting terminal Dynamic Extraction with required character, and in extracting the process of data to the data that are extracted processings of packing, generation packet;
Described publicly-owned data only are extracted once when net distribution first, only extract the font exclusive data relevant with required character when ensuing each net distribution;
(3) packet that generates in receiving terminal distributing step (2) of transmitting terminal after receiving terminal unpacks processing to the packet of receiving, extracts the data in the packet.
When extracting the font exclusive data relevant in the network distribution method of aforesaid a kind of character library, step (2), depend on font, then the data relevant with depending on font are extracted in the lump if font exists with required character.
The network distribution method of aforesaid a kind of character library, the character of packing in the step (2) is carried out record, when extracting the exclusive data of the relevant font of character next time, at first in record, search and whether exist identical character once to be extracted and distributed, if exist, then no longer this character carried out reprocessing.
The network distribution method of aforesaid a kind of character library, the packet described in the step (2) is made of data head, concordance list and entity binary data three parts.
The network distribution method of aforesaid a kind of character library, described data head by the sequence number of importing the total number of data, current data type into, import as a whole type of data into, the version and the reserved place of current data head formed; Described concordance list is made of plurality of indexes, and each index is by the current type of importing data into, identification code, the memory location of the relevant entity binary data of identification code and the length of entity binary data constitute therewith.
The network distribution method of aforesaid a kind of character library, described character library are the TrueType character library; Described publicly-owned data division comprises file header, description list catalogue and other description lists except that the character contour tables of data of TrueType character library; The exclusive data division of described font comprises the character contour tables of data.
The process of extracting publicly-owned data in the network distribution method of aforesaid a kind of character library, step (2) may further comprise the steps:
1) reads file header, obtain the number of character library description list;
2), obtain sign and the side-play amount of this description list and the size of data of a description list according to the number traversal description list catalogue of description list;
3) judge according to the sign of description list whether the data in this description list are publicly-owned data, if, then according to the side-play amount and the size of data of this description list, find and read the data of specifying size, otherwise travel through next description list, repeating step 2) and step 3), till having traveled through all description lists.
The network distribution method of aforesaid a kind of character library, the packing processing procedure described in the step (2) may further comprise the steps:
1) import packing data and relevant parameters into, described parameter comprises UnPackType type and data directory, and when the UnPackType type was FILLGLYF, data directory was the font index corresponding with character; When the UnPackType type was FONTHEADER, data directory was 0; When the UnPackType type is FONTFRAMEWORK, data directory is the description list corresponding identification, wherein the data imported into of FONTHEADER representative are file header, the data that FONTFRAMEWORK representative is imported into are the description list in the publicly-owned data division, FILLGLYF then represent the data of importing into be in the exclusive data division of font with the concrete corresponding font data of character;
2) determine indexing parameter according to the parameter of importing in the step 1), the structure of described indexing parameter is { dwOffset imports data length into for UnPackType, data directory }, and wherein dwOffset is the side-play amount of the entity binary data of current index;
3) packing data is appended to array of indexes and array of data;
4) upgrade side-play amount;
5) continue to import into packing data, up to finishing;
6) merge array of indexes and array of data, be combined into a packet after adding data head.
The network distribution method of aforesaid a kind of character library, the processing procedure that unpacks described in the step (3) is: at first according to importing the total number of data in the data head, determine index quantity, travel through all index then, according to the side-play amount of data in the index and the size of data, from the entity binary data, extract corresponding data.
A kind of network distribution system of character library comprises transmitting terminal and receiving terminal, wherein, is provided with in the described transmitting terminal with lower module:
Data are divided module: be used for the data of character library are divided into publicly-owned data division and the exclusive data division of font, wherein, described publicly-owned data are meant to possess global data character and can nonexpondable data in the character library, and the exclusive data of described font are meant data relevant with font in the character library;
Data extraction module: be used to extract publicly-owned data and the exclusive data of font that data are divided Module Division;
Packetization module: be used for the data that data extraction module is extracted are packed, generate packet;
Data distribution module: be used to distribute the packet that packetization module generates;
Be provided with the parse module that is used to resolve the packet that packetization module generates in the described receiving terminal.
The network distribution system of aforesaid a kind of character library also is provided with the exclusive data extract submodule of publicly-owned data extract submodule and font in the described data extraction module, be respectively applied for to extract publicly-owned data and the exclusive data of font.
Effect of the present invention is: adopt method and system of the present invention, data in the existing character library are divided into publicly-owned data division of character library and the exclusive part of font, when net distribution first, the distribution the publicly-owned data division of character library and with the exclusive partial data of the corresponding font of required character, next when each net distribution, distribution font exclusive data relevant only with current use character.In this way, alleviate offered load, improved response speed, reduced the amount of redundancy of data, reached the purpose of distribution as required.
Description of drawings
Fig. 1 is a system construction drawing of the present invention;
Fig. 2 is a method flow diagram of the present invention;
Fig. 3 is that data category is divided schematic diagram in the specific embodiment of the invention;
Fig. 4 extracts publicly-owned data flowchart in the specific embodiment of the invention;
Fig. 5 is for existing the font exemplary plot of the relations of dependence in the specific embodiment of the invention;
Fig. 6 extracts relations of dependence font data flow chart in the specific embodiment of the invention;
Fig. 7 is a packing data flow chart in the specific embodiment of the invention;
Fig. 8 unpacks flow chart for data in the specific embodiment of the invention.
Embodiment
Below in conjunction with embodiment and accompanying drawing method and system of the present invention are described in detail.
As shown in Figure 1, a kind of network distribution system of character library comprises transmitting terminal and receiving terminal, wherein, is provided with in the described transmitting terminal with lower module:
Data are divided module 11, be used for the data of character library are divided into publicly-owned data division and the exclusive data division of font, wherein, described publicly-owned data are meant to possess global data character and can nonexpondable data in the character library, and the exclusive data of described font are meant data relevant with font in the character library;
Data extraction module 12 is used to extract data and divides publicly-owned data and the exclusive data of font that module 11 is divided; In the present embodiment, be provided with the exclusive data extract submodule 122 of publicly-owned data extract submodule 121 and font in the data extraction module 12, be respectively applied for and extract publicly-owned data and the exclusive data of font;
Packetization module 13 is used for the data that data extraction module 12 is extracted are packed, and generates packet;
Data distribution module 14 is used to distribute the packet that packetization module 13 generates;
Be provided with the parse module 15 that is used to resolve the packet that packetization module generates in the described receiving terminal.
As shown in Figure 2, a kind of network distribution method of character library may further comprise the steps.
(1) data are divided module 11 data in the character library are divided into publicly-owned data division and the exclusive data division of font.
With possessing global data character in the character library and can nonexpondable data being divided into publicly-owned data division, the data relevant with font in the character library are divided into the exclusive data division of font.
As shown in Figure 3, be example with TrueType character library (hereinafter to be referred as TTF): the TTF file of a standard is made up of 2 parts: file header and a series of description list.Wherein, file header comprises OffsetTable (offset table) and Tablet Directory (description list catalogue), and offset table comprises information such as fileversion number, description list number, the quick seek scope of description list, inlet selection, scope adjustment; Behind the offset table immediately following the description list catalogue, comprise description list title, description list content verification and, information such as the offset address of description list and description list size of data; Be each concrete file description table at last, comprise the information such as describing method of character-coded lookup method, character contour data.
TTF file description table commonly used has 19, and wherein 10 is indispensable, and other 9 is optional.Indispensable table mainly comprises character code mapping table cmap, font data navigation watch 1oca, character contour tables of data glyf etc.Wherein, the glyf table is the main part of TTF file, is used to deposit all character contour descriptors, comprises the data message of describing character contour and command information two parts of revising character contour.
When reading in the TTF file font data, at first obtain the number of description list, travel through the description list catalogue then, extract the side-play amount and the size of data of corresponding description list data, at last according to side-play amount with size of data finds and reading of data according to file header.
The structure of the offset table of TTF file and description list catalogue is as shown in the table, and the concrete structure of description list can be with reference to the relevant documentation explanation among the Microsoft Typography.
Figure G2008102224393D00062
By the organizational form of above-mentioned TTF file as can be known, the file header of TTF (the publicly-owned data division 1 among Fig. 3) and other description lists except that the character contour tables of data possess global data character and can nonexpondable data (the publicly-owned data division 2 among Fig. 3), therefore it are divided into publicly-owned data division; And the character contour tables of data is the data relevant with font, therefore it is divided into the exclusive data division of font.
(2) the publicly-owned data in the publicly-owned data division of publicly-owned data extract submodule 121 extractions, the exclusive data extract submodule 122 of font extracts the font exclusive data relevant with required character in the exclusive data division of font, and 13 pairs of data that are extracted of packetization module processings of packing in extracting the process of data, the generation packet.
For the publicly-owned data in the publicly-owned data division, when the network application of character library, only need to extract and distribute once.Because rule according to the publicly-owned data division of above-mentioned division, this partial data is to possess global data character and can nonexpondable data, it can not produce difference because of extracting the different exclusive data of font, so only need when extracting first and distribute data in the exclusive data division of font, to be extracted and to distribute, when extracting and distribute data in the exclusive data division of font, then need not to extract once more and distribute publicly-owned data division next time.
As shown in Figure 4, illustrate that with the publicly-owned data instance that extracts among the TTF the present invention extracts the process of publicly-owned data, mainly may further comprise the steps:
1) reads file header, obtain the number of description list, and import file header into packetization module 13;
2), obtain sign tag and the side-play amount of this description list and the size of data of a description list according to the number traversal description list catalogue of description list;
3) the sign tag according to description list judges whether the data in this description list are publicly-owned data, if, then according to the side-play amount of this description list and the size of data, find and read the data of specifying size, and import it into packetization module 13, otherwise travel through next description list, repeating step 2) and step 3), till having traveled through all description lists.
May there be the relations of dependence between the font in data in the exclusive data division of font, and promptly font is a situation about being combined by other fonts.Therefore, this partial data must consider whether font exists the relations of dependence and how to extract the data problem relevant with depending on font when extracting.
With TTF is example, inherent mechanism according to standard TTF, when extracting the font data of a character correspondence, at first find its corresponding font index among the character code mapping table cmap according to being coded in of character, in font data navigation watch loca, find the original position of font data then, and determine the size of font data simultaneously according to index.Just can extract the data of the corresponding font of character then.For font is the situation (being non-composite glyph) of simple circuit, can directly import it into packetization module.For font is situation about being combined by other fonts, promptly has the font of the font relations of dependence, need extract the data that it depends on font simultaneously.
As shown in Figure 5, font is depended in the font existence that is encoded to 0x517B, is followed successively by glyph08597, glyph06297, glyph07695, glyph07937, glyph08064, glyph08159.
As shown in Figure 6, the process that font is depended in processing is: at first import the font data of extracting into packetization module 13, travel through this font data then, after font is depended in discovery, extract the index that depends on font, and extract corresponding font data according to the index that depends on font, import it into packetization module 13, until extracted all current fonts whole depend on font data till.With Fig. 5 is example, at first extracts index and be 8597 font data, import packetization module 13 into after, to extract index again be 6297 font data and import packetization module 13 into, till to handle index be 8159 font data.
In addition, when extracting the exclusive data of font, may have the character of current use and the problem that former used character partly repeats, promptly corresponding with this character font data was distributed in the past.In order to raise the efficiency, problem can adopt the mode that writes down to the character of having distributed hereto, prevents repeatedly processed.Concrete mode can be finished by writing down character-coded mode.With Fig. 5 is example, the font index is respectively 8597,6297,7695,7937,8064,8159 font, when processing is encoded to the font of 0x517B, carried out packing, then it had been recorded in the file with font filename by name, the index of a font of the text mode that whenever worked record.The font that is encoded to 0x517B will have more the text of following several row after treatment in this document:
8597
6297
7695
7937
8064
8159
In ensuing processing, at first according to the font index of character shape coding by cmap table mapping acquisition, the text in coupling this document if the match is successful, is then directly skipped, otherwise continues to handle.For example when processing is encoded to the font of 0x6205, obtaining its font index by the cmap mapping is 6297, finds that from above-mentioned file index is that 6297 font occurred, and then no longer handles, and directly skips to get final product.For depending on font, adopt this mechanism to prevent the reprocessing of font data equally.
For the ease of the distribution of data, utilize packetization module 13 in extracting the process of data to the data that are extracted processings of packing, carry out net distribution again behind the generation packet.The purpose of packing data is for the data that will extract, and may comprise the set of the exclusive data of font of publicly-owned data and indefinite number, is combined into a packet, makes things convenient for the unified distribution of data.For this reason, need be in conjunction with following data structure.
At first be a data head (title HEAD): by importing the total number usNumOfCode of data into, the sequence number usCurNum of current data type, import data type usType as a whole into, the version usVersion of current data head and reserved place usOther form, and its structure is as follows.
typedef?struct_tagHEAD
{
USHORT?usNumOfCode;
USHORT?usCurNum;
USHORT?usType;
USHORT?usVersion;
USHORT?usOther;
}HEAD,*LPHEAD;
Be concordance list then, wherein each element is a DIRECT structure: by currently import type utDirType, the identification code dwCode of data into, the memory location dwOffset (original position of this position is the storage original position of entity binary data) and the length usLenOfBin of entity binary data of the relevant entity binary data of identification code form therewith, its structure is as follows.
typedef?struct_tagDIRECT
{
UnPackType utDirType;
DWORD dwCode;
DWORD dwOffset
USHORT usLenOfBin;
}DIRECT,*LPDIRECT;
Wherein UnPackType is an enumeration type as follows.
enum?UnPackType
{
FONTHEADER =0x01,
FONTFRAMEWORK=0x100,
FILLGLYF =0x1000
};
FONTHEADER represents the file header among the TTF, comprises offset table and description list catalogue two parts.FONTFRAMEWORK represents each description list in the publicly-owned data division, and FILLGLYF then represents the font data corresponding with certain concrete character.
Be all entity binary data at last.Above-mentioned data head and concordance list are the data structures for auxiliary entity binary data.
As shown in Figure 7, the process of packing mainly may further comprise the steps.
1) imports packing data and relevant parameters into.Described parameter comprises UnPackType type and data directory.When the UnPackType type was FILLGLYF, data directory was the font index corresponding with character; When the UnPackType type was FONTHEADER, data directory was 0; When the UnPackType type was FONTFRAMEWORK, data directory was the description list corresponding identification.
2) go out indexing parameter according to the parametric configuration that imports into.The structure of indexing parameter is { dwOffset imports data length into for UnPackType, data directory }, and wherein dwOffset is the side-play amount of the entity binary data of current index.For example, import the font index into and be 4000 the exclusive data of font, its length is 102 bytes, following { the FILLGLYF of indexing parameter that goes out according to the parametric configuration that imports into then, 4000, dwOffset, 102}, when packet of neotectonics, new data are imported in the side-play amount zero setting of the entity binary data of current index at every turn, no matter the publicly-owned data exclusive data that still are font, the side-play amount of the entity binary data of current index adds up and imports the length of data into after the structure indexing parameter finishes.In this example, if construction data bag first, then above-mentioned dwOffset is 0, after having constructed current indexing parameter, is updated to 0+102, promptly 102.When promptly constructing indexing units, dwOffset is 102 next time.If operation for the first time also needs reset array of indexes and array of data.After having constructed current indexing parameter, current indexing parameter is appended in the array of indexes, and, is appended in the array of data 102 bytes of data of correspondence.Upgrading side-play amount then is 102.Wherein array of data is a binary system array, and array of indexes is the array of index structure.
Next, if still need to import into data, then repeat above-mentioned flow process.For example next need to import into the file header data of TTF, then according to importing the following { FONTHEADER of indexing parameter that parametric configuration goes out into, 0,102,60}, wherein 102 according to above-mentioned update mode acquisition, it is file header that FONTHEADER represents the data of current index correspondence, need not fill in second of at this moment, being defaulted as 0,60, to represent the size of current data be 60 bytes.Ensuing operation also is supplemental data and upgrades side-play amount.
If also have the data of a description list need continue to import into, then continue this flow process.To import the data instance in the cmap table into, following { the FONTFRAMEWORK of indexing parameter of the parameter correspondence of importing into, cmap shows corresponding identification, 162,29482}, wherein, what FONTFRAMEWORK represented this index correspondence is the data of TTF description list class, 162 is the side-play amount of its corresponding data, and 29482 is the size of data.Cmap table corresponding identification can pass through MAKE_TABLE_TAG (' c ', ' m ', ' a ', ' p ') function and obtain, so the title that only need import table when importing relevant parameters into into gets final product.The MAKE_TABLE_TAG function is defined as follows:
#define?MAKE_TABLE_TAG(_x1,_x2,_x3,_x4)\
(((ULONG)_x1<<24)| \
((ULONG)_x2<<16)| \
((ULONG)_x3<<8)| \
(FT_ULong)_x4 )
Ensuing operation is the same.
3) when all data import into finish after, data are integrated.Existing data are dispersed in two arrays, it need be merged, and add a data head, are combined into a packet.In this example, construct following data head { 3,2, FONTHEADER+FONTFRAMEWORK+FILLGLYF, 1,0}, wherein total number of data is imported in 3 representatives into, that is to say, have three needs indexed data, current operation be the 2nd (calculating of starting from scratch), the type of data is the mixing of three types, version number is 1, and keeping item is 0.
After packing data was finished, data distribution module 14 just can be given receiving terminal with packet delivery.
(3) data distribution module 14 after receiving terminal utilizes 15 pairs of packets of receiving of parse module to unpack processing, extracts the data in the packet to the packet that receiving terminal distribution packetization module 13 generates.
Through after the net distribution, data need unpack and can use.The process that unpacks as shown in Figure 8.At first, determine operable index quantity according to importing the total number of data in the data head.Wherein the type identification of data can be used for determining fast whether current data packet also has needed data.Next, travel through all index, according to the side-play amount of data in the index and the size of data, extract corresponding data from the entity binary data, wherein the original position of solid data is the summation of the size of the size of data head and all index.In conjunction with categorical variable that provides in the index and identification code, determine jointly how the data that extract are used then.
Need to prove: method and system of the present invention are not limited to the embodiment described in the embodiment, and those skilled in the art's technical scheme according to the present invention draws other execution mode, belongs to technological innovation scope of the present invention equally.

Claims (11)

1. the network distribution method of a character library may further comprise the steps:
(1) transmitting terminal is divided into publicly-owned data division and the exclusive data division of font with the data in the character library, wherein, with possessing global data character in the character library and can nonexpondable data being divided into publicly-owned data division, data relevant with font in the character library are divided into the exclusive data division of font;
(2) the font exclusive data relevant in the exclusive data division of publicly-owned data, font in the publicly-owned data division of transmitting terminal Dynamic Extraction with required character, and in extracting the process of data to the data that are extracted processings of packing, generation packet;
Described publicly-owned data only are extracted once when net distribution first, only extract the font exclusive data relevant with required character when ensuing each net distribution;
(3) packet that generates in receiving terminal distributing step (2) of transmitting terminal after receiving terminal unpacks processing to the packet of receiving, extracts the data in the packet.
2. the network distribution method of a kind of character library as claimed in claim 1 is characterized in that: when extracting the font exclusive data relevant with required character in the step (2), depend on font if font exists, then the data relevant with depending on font are extracted in the lump.
3. the network distribution method of a kind of character library as claimed in claim 1 is characterized in that: to step
Whether the character of pack in (2) carries out record, when extracting the exclusive data of font that character is correlated with next time, at first search in record and exist identical character once to be extracted and distributed, if existence is then no longer carried out reprocessing to this character.
4. the network distribution method of a kind of character library as claimed in claim 1, it is characterized in that: the packet described in the step (2) is made of data head, concordance list and entity binary data three parts.
5. the network distribution method of a kind of character library as claimed in claim 4 is characterized in that: described data head by the sequence number of importing the total number of data, current data type into, import as a whole type of data into, the version and the reserved place of current data head formed; Described concordance list is made of plurality of indexes, and each index is by the current type of importing data into, identification code, the memory location of the relevant entity binary data of identification code and the length of entity binary data constitute therewith.
6. as the network distribution method of the described a kind of character library of one of claim 1 to 5, it is characterized in that: described character library is the TrueType character library; Described publicly-owned data division comprises the file header of TrueType character library and other description lists except that the character contour tables of data; The exclusive data division of described font comprises the character contour tables of data.
7. the network distribution method of a kind of character library as claimed in claim 6 is characterized in that: the process of extracting publicly-owned data in the step (2) may further comprise the steps:
1) reads file header, obtain the number of character library description list;
2), obtain sign and the side-play amount of this description list and the size of data of a description list according to the number traversal description list catalogue of description list;
3) judge according to the sign of description list whether the data in this description list are publicly-owned data, if, then according to the side-play amount and the size of data of this description list, find and read the data of specifying size, otherwise travel through next description list, repeating step 2) and step 3), till having traveled through all description lists.
8. the network distribution method of a kind of character library as claimed in claim 6, it is characterized in that: the packing processing procedure described in the step (2) may further comprise the steps:
1) import packing data and relevant parameters into, described parameter comprises UnPackType type and data directory, and when the UnPackType type was FILLGLYF, data directory was the font index corresponding with character; When the UnPackType type was FONTHEADER, data directory was 0; When the UnPackType type is FONTFRAMEWORK, data directory is a character library description list corresponding identification, wherein the data imported into of FONTHEADER representative are file header, the data that FONTFRAMEWORK representative is imported into are the description list in the publicly-owned data division, FILLGLYF then represent the data of importing into be in the exclusive data division of font with the concrete corresponding font data of character;
2) determine indexing parameter according to the parameter of importing in the step 1), the structure of described indexing parameter is { dwOffset imports data length into for UnPackType, data directory }, and wherein dwOffset is the side-play amount of the entity binary data of current index;
3) packing data is appended to array of indexes and array of data;
4) upgrade dwOffset;
5) continue to import into packing data, up to finishing;
6) merge array of indexes and array of data, be combined into a packet after adding data head.
9. the network distribution method of a kind of character library as claimed in claim 8, it is characterized in that, the processing procedure that unpacks described in the step (3) is: at first according to importing the total number of data in the data head, determine index quantity, travel through all index then, according to the side-play amount of data in the index and the size of data, from the entity binary data, extract corresponding data.
10. the network distribution system of a character library comprises transmitting terminal and receiving terminal, wherein, is provided with in the described transmitting terminal with lower module:
Data are divided module: be used for the data of character library are divided into publicly-owned data division and the exclusive data division of font, wherein, described publicly-owned data are meant to possess global data character and can nonexpondable data in the character library, and the exclusive data of described font are meant data relevant with font in the character library;
Data extraction module: be used to extract publicly-owned data and the exclusive data of font that data are divided Module Division;
Packetization module: be used for the data that data extraction module is extracted are packed, generate packet;
Data distribution module: be used to distribute the packet that packetization module generates;
Be provided with the parse module that is used to resolve the packet that packetization module generates in the described receiving terminal.
11. the network distribution system of a kind of character library as claimed in claim 10, it is characterized in that: also be provided with the exclusive data extract submodule of publicly-owned data extract submodule and font in the described data extraction module, be respectively applied for and extract publicly-owned data and the exclusive data of font.
CN2008102224393A 2008-09-17 2008-09-17 Font network distribution method and system Expired - Fee Related CN101369953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008102224393A CN101369953B (en) 2008-09-17 2008-09-17 Font network distribution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008102224393A CN101369953B (en) 2008-09-17 2008-09-17 Font network distribution method and system

Publications (2)

Publication Number Publication Date
CN101369953A CN101369953A (en) 2009-02-18
CN101369953B true CN101369953B (en) 2010-10-20

Family

ID=40413588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008102224393A Expired - Fee Related CN101369953B (en) 2008-09-17 2008-09-17 Font network distribution method and system

Country Status (1)

Country Link
CN (1) CN101369953B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677646A (en) * 2014-11-17 2016-06-15 北京大学 Word stock generation method and system, and server

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186644B (en) * 2011-12-31 2016-09-21 北大方正集团有限公司 A kind of download the method for font file, equipment and system
CN104424163B (en) * 2013-08-29 2017-09-22 北大方正集团有限公司 Literal processing method and system
CN104965830B (en) 2014-06-06 2018-07-17 腾讯科技(深圳)有限公司 A kind of character update method and device
CN113742285B (en) * 2021-08-31 2022-09-20 珠海读书郎软件科技有限公司 Resource management and synchronization method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315703A (en) * 2000-03-28 2001-10-03 巫伟明 Character style server based on internet
CN1805439A (en) * 2005-01-13 2006-07-19 夏新电子股份有限公司 Method and apparatus of receiving/display/sending font data
CN101013353A (en) * 2006-01-20 2007-08-08 夏普株式会社 Font downloading apparatus and font downloading method
CN101083817A (en) * 2007-02-28 2007-12-05 中兴通讯股份有限公司 Method for replacing dynamically character base module of mobile station

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1315703A (en) * 2000-03-28 2001-10-03 巫伟明 Character style server based on internet
CN1805439A (en) * 2005-01-13 2006-07-19 夏新电子股份有限公司 Method and apparatus of receiving/display/sending font data
CN101013353A (en) * 2006-01-20 2007-08-08 夏普株式会社 Font downloading apparatus and font downloading method
CN101083817A (en) * 2007-02-28 2007-12-05 中兴通讯股份有限公司 Method for replacing dynamically character base module of mobile station

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677646A (en) * 2014-11-17 2016-06-15 北京大学 Word stock generation method and system, and server
CN105677646B (en) * 2014-11-17 2019-03-01 北京大学 Character library generation method, character library generate system and server

Also Published As

Publication number Publication date
CN101369953A (en) 2009-02-18

Similar Documents

Publication Publication Date Title
CN101661391B (en) Object serializing method, object deserializing method, device and system
US8099421B2 (en) File system, and method for storing and searching for file by the same
US20070136660A1 (en) Creation of semantic objects for providing logical structure to markup language representations of documents
CN110083805A (en) A kind of method and system that Word file is converted to EPUB file
CN101369953B (en) Font network distribution method and system
CN101727502A (en) Data query method, data query device and data query system
CN105009067A (en) Managing operations on stored data units
CN105027071A (en) Managing operations on stored data units
CN100585561C (en) Method for clipping relocatable ELF files in embedded system
CN112395418A (en) Method and device for extracting target object in webpage and electronic equipment
CN104424163B (en) Literal processing method and system
CN101770367B (en) Compressing method and compressing device of .NET file
CN114706533A (en) Multi-file multi-stage starting and loading method and device based on GPT partition table
CN102867023B (en) Method for storing and reading grid data and device
CN102446206B (en) A kind of cross-platform switch and method of three-dimensional data
CN108073709B (en) Data recording operation method, device, equipment and storage medium
CN105740374A (en) Distributed memory based three-dimensional platform data fuzzy query method
US20150212991A1 (en) Content rendition generation and control
CN111259003B (en) Database establishment method and device
CN104021026A (en) Language adding method based on Android system
CN113011145A (en) Data export method and device, terminal equipment and storage medium
JP3728264B2 (en) Index creation apparatus, search system, and control method
CN110647577A (en) Data cube partitioning method and device, computer equipment and storage medium
CN117289915B (en) Configuration table-based satellite-borne software code generation method and device
CN113486097B (en) Big data export method, device, equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101020

Termination date: 20190917

CF01 Termination of patent right due to non-payment of annual fee