WO2013097812A1 - 一种下载字库文件的方法和系统 - Google Patents
一种下载字库文件的方法和系统 Download PDFInfo
- Publication number
- WO2013097812A1 WO2013097812A1 PCT/CN2012/088054 CN2012088054W WO2013097812A1 WO 2013097812 A1 WO2013097812 A1 WO 2013097812A1 CN 2012088054 W CN2012088054 W CN 2012088054W WO 2013097812 A1 WO2013097812 A1 WO 2013097812A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- font
- file
- sub
- capacity
- data
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a method and system for downloading a font file. Background technique
- Gateway restricts the capacity of wirelessly transmitted files to prevent a user equipment from occupying network bandwidth resources for a long time, so that limited bandwidth resources can provide services for as many user equipment as possible, such as WAP (Wireless Application Protocol, wireless).
- Application Protocol A gateway that intercepts files whose capacity exceeds the gateway limit.
- the font library is a collection of electronic font fonts for foreign fonts, Chinese fonts, and related characters. It is widely used in computers, networks, and related electronic devices (such as mobile phones, tablets, etc.). Users can use user devices to download from a file server through a WAP gateway.
- the font file is installed and used, but the font file is generally large. Because the WAP gateway limits the capacity of the wirelessly transmitted file, if the capacity of the font file exceeds the limit of the WAP gateway, the WAP gateway intercepts the font file. , causing the user device to obtain the required font file from the file server through the WAP gateway.
- the present invention provides a method and system for downloading a font file, which is used to solve the problem in the prior art that when the capacity of a font file that the user needs to download exceeds the limit of the gateway corresponding to the user, the user cannot be from the file server.
- the problem of downloading the required font file is used to solve the problem in the prior art that when the capacity of a font file that the user needs to download exceeds the limit of the gateway corresponding to the user, the user cannot be from the file server. The problem of downloading the required font file.
- the present invention provides a method for downloading a font file, including: performing a segmentation process on the font file to obtain a plurality of sub-word library files having a capacity not greater than the transmission limit threshold; and transmitting all of the foregoing to the user equipment Sub-word library file.
- the segmentation processing of the font file comprises:
- font rim data is sliced, Font file
- the data other than the font outline data in the font file is subjected to segmentation processing to obtain a plurality of partial descriptive contours.
- the segmentation processing of the font file comprises:
- the font contour data is subjected to a segmentation process to obtain a plurality of the sub-type contour data. Font file
- the method for downloading a font file further includes:
- the user device downloads all sub-font files
- the user equipment processes all of the sub-word library files to obtain a font file that can be used.
- the processing, by the user equipment, the processing of all the sub-word library files comprises: combining a sub-word library file including partial font contour data with all sub-word library files including data other than the font contour data, and obtaining The font file used; or a sub-font file containing partial font outline data, which is combined with all sub-font files containing data other than the font outline data to obtain a font file that can be used. .
- the processing, by the user equipment, all the sub-word library files includes:
- each of the downloaded sub-font files is used as a usable font file.
- the present invention provides a system for downloading font files, including:
- a server configured to perform a segmentation process on the font file when the capacity of the font file to be downloaded by the user equipment is greater than a transmission limit of the gateway corresponding to the user equipment, to obtain that the multiple capacity is not greater than the transmission limit threshold a sub-word library file; and transmitting all of the sub-word library files to the user equipment;
- the user equipment is further configured to send a download request to the server through its corresponding gateway to obtain the required Font file;
- the server is further configured to: after receiving the download request sent by the user equipment, determine a gateway corresponding to the user equipment according to the identifier information of the user equipment, thereby determining a transmission limit threshold corresponding to the gateway; and downloading the request according to the user equipment Determining the font file to be downloaded, and determining whether the font file needs to be segmented according to the relationship between the capacity of the font file and the transmission limit threshold.
- the identification information of the user equipment includes at least one of an international mobile equipment identifier, an international mobile subscriber identity, a mobile station number, and a customer identification module.
- the server includes: a transmission limit threshold, and performing a segmentation process on the font file to obtain a plurality of sub-word files having a capacity not greater than the transmission limit threshold;
- a sending module configured to send all of the sub-word library files to the user equipment.
- the segmentation processing module is specifically configured to:
- the segmentation processing module is further configured to determine the number of the sub-word library files according to the segmentation unit; and establish a plurality of empty files, the number of the empty files being the same as the number of the sub-word library files; The value of the segmentation unit sequentially copies the data in the font file and respectively respectively in the plurality of empty files to obtain a plurality of sub-word library files whose capacity is not greater than the transmission limit threshold.
- the segmentation processing module is further configured to sequentially segment the data in the font file according to the value of the segmentation unit to obtain a plurality of sub-word library files having a capacity not greater than the transmission limit alarm value.
- the font file is not retained.
- the segmentation processing module is further configured to determine a naming rule of the sub-word library file
- the sending module is further configured to send a naming rule of the sub-word library file to the user equipment; the naming rule of the sub-character file determines the order of all the sub-word files, and appends the next sub-word file one by one according to the sorting to The end of the file of the previous sub-font file, to complete the merging process of all sub-font files, so as to get a font file that can be used.
- the segmentation processing module is further configured to determine a naming rule of the sub-word library file; and an index file that is used to create the font file to be downloaded, where the index file includes a capacity of the font file, the segmentation unit, and The naming rules of the sub-word library file;
- the sending module is further configured to send the index file to the user equipment
- the user equipment is further configured to: after downloading all the sub-word library files and the index file, determine, according to the index file, a file name of each sub-word library file that needs to be downloaded, and establish a corresponding empty file to sequentially download and download from the sending module.
- the offset of each sub-library file is recorded from zero in real time to record the download offset of the currently downloaded sub-library file, so as to facilitate the download of the sub-library file.
- the merge process is performed to obtain a font file that can be used.
- the user equipment is further configured to:
- the total capacity of the sub-library files that have been downloaded is obtained first. Then, the sub-library file that needs to continue to be downloaded is sent to the server to send a request for re-download, thereby implementing a resume of the breakpoint.
- the user equipment is further configured to:
- the pointer offset is performed on the corresponding sub-word library file in the server, and the specific offset is the capacity value of the sub-word library file that the user equipment has downloaded.
- the remaining capacity value of the sub-word library file to be downloaded is the difference between the actual capacity of the corresponding sub-word library file in the server and the capacity of the sub-word library file that has been downloaded locally.
- the segmentation processing module is specifically configured to:
- the font file is subjected to segmentation processing to obtain a sub-word library file containing data other than the sub-word library of the font outline data in the font file.
- the segmentation processing module is further configured to: when the font file is segmented to form a sub-word library file including partial font contour data in the font file, corresponding to each font contour data International character encoding, ID serial number or national standard segmentation of the font outline data in the font file, and establishing a segmentation rule;
- the sending module is further configured to send the segmentation rule to the user equipment
- the user equipment is further configured to perform a merge process on all the sub-word files according to the segmentation rule after downloading all the sub-word files to obtain a font file that can be used.
- the user equipment includes:
- a processing module is configured to process all of the sub-word library files to obtain a font file that can be used.
- the processing module is specifically configured to: If the sub-font file containing part of the font outline data does not contain data other than the font outline data, the sub-word library files are merged to obtain a font file that can be used; or
- the sub-word library file is combined with all sub-word library files containing data other than the font outline data to obtain a font library file that can be used;
- each of the downloaded sub-font files is used as a usable font file.
- the server further includes:
- a judging module configured to determine whether a capacity of the font file that the user equipment needs to download is greater than a transmission limit threshold of the gateway corresponding to the user equipment, and when the capacity of the font file is greater than the transmission limit threshold, triggering the split processing module to work; When the capacity of the font file is not greater than the transmission limit threshold, the trigger sending module directly sends the font file to the user equipment.
- the server further includes a compression processing module,
- the compression processing module is configured to: when the determining module determines that the capacity of the font file is greater than the transmission limit threshold, and compresses the font file before the determining module triggers the operation of the segmentation processing module, and compresses After the processing, the determining module is triggered again; the transmission limit threshold is greater than the gateway corresponding to the user equipment, and when the capacity of the compressed font file is greater than the transmission limit threshold, the splitting processing module is triggered to work; after the compression When the capacity of the font file is not greater than the transmission limit threshold, the trigger sending module directly sends the compressed font file to the user equipment;
- the user equipment is further configured to: after downloading all the sub-character files, process the all sub-character files to obtain a compressed font file that can be used; the user equipment includes a decompression processing module, where The compressed font file is decompressed to obtain a font file that can be used.
- the font file is divided and processed to obtain a plurality of sub-word library files whose capacity is not greater than the transmission limit threshold, so that the user equipment downloads each sub-word library file and processes it when downloading, thereby obtaining a font file that can be used, thereby avoiding the font library.
- the capacity of the file exceeds the limit of the gateway corresponding to the user, the user cannot download the required font file from the file server.
- 1 is a schematic structural diagram of a system for downloading a font file according to an embodiment of the present invention
- 2 is a schematic structural diagram of a first server according to an embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a second server according to an embodiment of the present invention.
- FIG. 4 is a flowchart of a method for downloading a font file according to an embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a first user equipment according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of a second type of user equipment according to an embodiment of the present invention.
- FIG. 7 is a flowchart of a method for downloading a font file according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a system for downloading a font file according to an embodiment of the present invention.
- FIG. 9 is a flowchart of a third method for downloading a font file according to an embodiment of the present invention. detailed description
- the embodiment of the present invention performs segmentation processing on the font file to obtain a plurality of sub-word library files whose capacity is not greater than the transmission limit threshold, so that the user equipment At the time of download, each sub-font file is downloaded and processed to obtain a font file that can be used, thereby downloading the required font file from the file server.
- an embodiment of the present invention provides a system for downloading a font file, including:
- the server 10 is configured to perform a segmentation process on the font file when the capacity of the font file that the user equipment 20 needs to download is greater than a transmission limit threshold of the gateway corresponding to the user equipment, to obtain a plurality of sub-word files having a capacity not greater than a transmission limit threshold. And sending all sub-font files to the user device 20;
- the user equipment 20 is configured to download all the sub-word library files; and process all the sub-word library files to obtain a font file that can be used.
- the user equipment 20 of the embodiment of the present invention may be an embedded electronic device such as a mobile phone or a tablet computer; the user equipment 20 sends a download request to the server 10 through its corresponding WAP gateway as needed to obtain a required font file and is used for installation and use.
- the WAP gateway is used to connect to the wireless network and the Internet, and can realize the conversion of the wireless application protocol WAP stack and the content format conversion (such as the wireless markup language WML to the hypertext markup language (HTML));
- the font size of the Chinese character library file in the font file is generally large, and the data capacity of some Chinese large font files can even reach several hundred megabytes, and the gateway generally limits the capacity of files transmitted wirelessly through it. Prevent a user equipment from occupying network bandwidth resources for a long time.
- the server 0 After receiving the download request sent by the user equipment 20, the server 0 is based on the identification information of the user equipment 20, such as International Mobile Device Identification (IMEI), International MoFile SuFscriFer Identity (IMSI, International Subscriber International ISDN/PSTN number), SIM card (Subscriber Identity)
- IMEI International Mobile Device Identification
- IMSI International MoFile SuFscriFer Identity
- SIM card Subscriber Identity
- the module, the customer identification module, and the like can determine the characteristic parameter of the gateway corresponding to the user equipment, determine the WAP gateway corresponding to the user equipment 20, and determine the transmission restriction threshold corresponding to the WAP gateway; and determine that the download is required according to the download request sent by the user equipment 20.
- the font file; the server that stores the font file and the server that processes the font file that needs to be downloaded may be the same server, or two servers that are independent of each other and can interact;
- the server 10 After determining the font file to be downloaded and the transmission limit threshold of the gateway corresponding to the user equipment 10, the server 10 determines whether the capacity of the font file is greater than the transmission limit threshold;
- the font file is first segmented to obtain a plurality of sub-word files whose capacity is not greater than the transmission limit threshold, and then each sub-word file is sent to the user equipment 20; correspondingly, the user equipment 20 is from the gateway through the gateway.
- the server 10 completes the downloading of all the sub-library files, all the sub-library files are processed according to different manners of the server 10 to obtain a font file that can be used, so that the font file can be used on the user device 20;
- the font file is directly sent to the user device 20; correspondingly, after the user device 20 completes the download of the font file from the server 10 through the gateway, the font file can be used on the user device 20.
- the server of the embodiment of the present invention After receiving the download request sent by the user equipment, the server of the embodiment of the present invention first determines the gateway corresponding to the user equipment according to the identifier information of the user equipment, and further determines a transmission limit threshold corresponding to the gateway, and determines a required download according to the download request.
- the font file and according to the relationship between the capacity of the font file and the transmission limit threshold, whether the font file needs to be segmented, and only the font file is segmented when the capacity of the font file is greater than the transmission limit threshold, and does not need to be All the font files stored by the server are segmented, which saves storage space and improves service conditions.
- the gateways corresponding to user devices that need to download font files from the server may be different, and the transmission limit thresholds of each gateway may be different.
- the server in the embodiment of the present invention determines whether to perform the segmentation processing on the font file according to the transmission restriction threshold of the gateway corresponding to each user equipment in real time, thereby improving the working efficiency of
- the server 10 of the embodiment of the present invention includes:
- the segmentation processing module 100 is configured to perform segmentation processing on the font file when the capacity of the font file that the user equipment 20 needs to download is greater than the transmission limit threshold of the gateway corresponding to the user equipment 20, and obtain that the plurality of capacities are not greater than the transmission limit threshold.
- Sub-word library file
- the sending module 101 is configured to send all the sub-word files to the user equipment 20.
- the segmentation processing module 100 of the trigger server 10 When the capacity of the font file to be downloaded by the user equipment 20 is greater than the transmission limit threshold of the gateway corresponding to the user equipment 20, the segmentation processing module 100 of the trigger server 10 performs segmentation processing on the font file, and the specific segmentation processing package Including the following two ways:
- the gateway corresponding to the user equipment 20 is used as an example for the China Mobile's cmwap gateway.
- the cmwap gateway is usually limited to a capacity of 1 M: (1024* 1024 bytes) for each file to be downloaded, that is, the cmwap gateway.
- the transmission limit threshold is 1 M - when the capacity of the file to be downloaded is greater than 1 M, the cmwap gateway usually blocks the download, thereby causing the user device 20 to download the file from the server 10; assuming that the user device 20 needs to be from the server 10 Downloading the font file, i setting the font file named F, the segmentation processing module 100 determines the segmentation unit of the font file according to the transmission limit threshold (where the segmentation unit is not greater than the transmission limit threshold) and determining the naming rules of the sub-word library file (eg, The sub-word library files are named as Fi, F 2 ... ...
- the split unit refers to the capacity of the sub-word library file processed by a single split, thereby determining the number of sub-word library files
- the capacity of the last sub-library file after segmentation may be less than the value of the split unit, except for the last sub-library file. Capacity is equal to the segmentation unit
- the font file is divided into nine sub-word files according to the capacity and the unit of the font file.
- the segmentation processing module 100 can Re-establish nine empty files, then the first byte of the ⁇ font file starts to copy 819200 bytes and put it in the first empty file, as the first sub-font file F 1 ; copy 819200 from the 819201 bytes Byte to the second empty file, as the second sub-font file F 2 , and so on; the splitting method retains the original font file, so that the server 10 can send the font file or the sub-word library file to the user device 20 as needed.
- the incremental segmentation can be directly performed from the original font file as needed, without retaining the original font file, thereby saving the storage space of the server 10.
- the user equipment 20 can determine the order of the sub-word library files according to the naming rules of the sub-word library files, and the nine sub-word library files F wide F 9 according to the serial number
- the latter sub-word library file is added one by one to the end of the file of the previous sub-word library file, that is, the sub-word library file F 2 is appended to the end of the sub-library file, and the sub-word library file F 3 is appended to the end of the sub-library file F 2 .
- the merging process of all the sub-font files is completed, thereby obtaining a font file F containing all the font outline data and being usable.
- the font outline data is the core part, and its capacity is the largest in the font file.
- the capacity of the font curve outline data glyf occupies the TTF font file. 90%, this method includes the following four situations:
- the first case if the capacity of the font outline data in the font file is not greater than the transmission limit threshold, and the font file If the capacity of the data other than the font outline data is not greater than the transmission limit threshold, then the segmentation processing of the font file includes the following two methods:
- Method A The font outline data is used as a sub-font file, and the data other than the font outline data is used as another sub-font file;
- the user device 20 after receiving all the sub-character files after the segmentation, merges the sub-character files to obtain a font file that can be used and includes all the font profile data;
- the TTF font file includes 23 tables, such as head (font header), cmap (character code to primitive mapping), glyf (font curve outline metadata). , maxp (maximum demand table), mmtx (horizontal specification), loca (location table index), name (naming table), hmtx (horizontal layout), kerm (kerning table), post PostScript information, etc.;
- the outline map metadata glyf occupies 90% of the TTF font file;
- the font outline data corresponding to the glyf table is used as the sub-word library file F t , and the data corresponding to the other tables except the glyf table is used as the sub-word library file F 2 ;
- Method B performing segmentation processing on the font outline data to obtain a plurality of sub-word library files including partial font contour data; for any one of the sub-word library files, all data except the font outline data in the font file is set In the sub-word library file, wherein the capacity of the sub-word library file is not greater than a transmission limit threshold;
- the segmentation processing module 100 divides the font outline data into sub-word library files ⁇ ⁇ ⁇ ⁇ ⁇ 1 ⁇ , where ⁇ is a positive integer, and all data except the font outline data are respectively placed in each sub-child In the font files F u ⁇ F ln , and the capacity of each sub-word library file F ln is not greater than the transmission limit threshold; ⁇ each sub-word library file obtained by this method includes not only part of the font outline data but also the font type All data except the outline data, so each sub-font file can be used separately, which improves the flexibility of the font file usage.
- each sub-word library file Fu ⁇ F ln can directly use each sub-word library file Fu ⁇ F ln , except that each sub-word library file only contains partial font contour data; All of the sub-font files Fu to F ln can be combined to obtain a font file F that can contain all of the font outline data and can be used.
- the second case if the capacity of the font outline data in the font file is larger than the transmission limit threshold, and the capacity of the data other than the font outline data in the font file is not greater than the transmission limit threshold, the font file is sliced. There are two ways to do this:
- Method C performing segmentation processing on the font contour data to obtain a plurality of sub-word library files including partial font contour data and having a capacity not greater than a transmission limit threshold, and using data other than the font contour data as a sub-word library file;
- the segmentation processing module 100 divides the font outline data into sub-word library files F ir -F ]n according to the determined segmentation unit, where n is a positive integer, and data other than the font outline data is used as one Sub-word library file F 2 ;
- the user equipment 20 may combine the multiple sub-word files in the following two ways:
- the sub-character files Fu and F 2 are combined to obtain a font file containing partial font contour data and usable, and the sub-word library files F 12 and F 2 are combined to obtain partial font contour data and can be obtained.
- Method D performing segmentation processing on the font outline data to obtain a plurality of sub-word library files including partial font contour data; for any one of the sub-word library files, all data except the font outline data in the font file is set In the sub-word library file, wherein the capacity of the sub-word library file is not greater than a transmission limit threshold;
- the user equipment 20 can directly use each sub-word library file Fu F ⁇ , but only each partial font file contains only partial font contour data; All the sub-letter files Fi wide F ln are combined to obtain a font file F containing all the font outline data and usable.
- the segmentation process includes: The font contour data is subjected to segmentation processing to obtain a plurality of sub-word library files including partial font contour data and having a capacity not greater than a transmission limit threshold; and dividing data other than the font contour data into a plurality of inclusions a sub-word library file partially with data other than the font outline data and having a capacity not greater than the transmission limit threshold;
- the segmentation processing module 100 divides the font profile data into a plurality of sub-character files Fi-wide F in which only partial font profile data is included according to the determined segmentation unit, where n is a positive integer, and each sub-character library The capacity of the file F ⁇ Fh is not greater than the transmission limit alarm value; and the data other than the font outline data is divided into a plurality of data according to the determined segmentation unit, wherein m is a positive integer;
- the user device 20 Fu ⁇ F ln all sub font files F 2 and F after extensive 2m, can preclude the process of merging a plurality of sub-after receiving the font file splitting in two ways:
- the second is to combine the sub-character files Fu and F 21 to F 2m 3 ⁇ 4 lines to obtain a font file containing partial font outline data and usable; and to merge the sub-word library files F 12 and F 2 wide F 2m ii lines, A font file containing partial font outline data and usable is obtained, and so on; a plurality of font files including partial font outline data and usable are obtained.
- the slicing process includes: dividing the font outline data as a sub-word library file; and dividing the data other than the font outline data Processing, obtaining a plurality of sub-word library files whose capacity is not greater than a transmission limit threshold;
- the segmentation processing module 100 uses the font outline data as a sub-word library file F t ; and divides the data other than the font outline data into the sub-word library files F 21 ⁇ F 2m according to the determined segmentation unit, Where m is a positive integer;
- the international character encoding UNICODE corresponding to each font contour data may be segmented;
- the segmentation rules include but are not limited to the following rules.
- the severing rule when performing the splicing process, the severing rule needs to be sent to the user equipment, so that the user equipment can perform the merging process on the sub-character files according to the severing rules to obtain the font file that can be used, in order to ensure the transmission.
- the sharding rules of the font file can be encrypted, so that even if other user equipments steal the font outline data, other user equipment cannot obtain the sharding rules, so other user equipment cannot use the font file;
- segmenting the font outline data it may also be divided according to the ID number corresponding to each font contour data; it may also be divided according to the national standard GBK/GB18030 corresponding to each font contour data, which is cut.
- the sub-rules are similar to the UNICODE segmentation rules and will not be described here.
- the segmentation processing module 100 of the embodiment of the present invention is further configured to:
- the index file includes the capacity of the font file to be downloaded, the unit of division, and the naming rule of the sub-word library file after the segmentation ;
- the capacity of the font file in the index file refers to the physical size of the font file (in integer type, byte number); the split unit refers to the capacity of the sub-word library file processed by a single split (in integer type, word)
- the number of sections is a unit, where the split unit is not greater than the transmission limit threshold of the gateway.
- the capacity of the last sub-file file may be smaller than the split unit, except for the last sub-word library.
- the capacity of the file is equal to the split unit.
- the establishment of the index file may be completed before the splicing process, or may be completed after the splicing process; correspondingly, the sending module 101 is further configured to send the index file to the user equipment 20;
- the user equipment 20 After receiving the index file sent by the server 10, the user equipment 20 reads the index file, determines the file name of each sub-word library file that needs to be downloaded according to the index file, and creates a corresponding empty file for storage to be downloaded from the server 10.
- the server 10 of the embodiment of the present invention further includes:
- the determining module 102 is configured to determine whether the capacity of the font file to be downloaded is greater than a transmission limit threshold of the gateway. When the capacity of the font file is greater than the transmission limit threshold, the segmentation processing module 100 is triggered to work; the capacity of the font file is not greater than When the transmission limits the threshold, the trigger sending module 101 directly sends the font file to the user equipment 20.
- the server 10 of the embodiment of the present invention further includes:
- the compression processing module 103 is configured to compress the font file before the font file is larger than the transmission limit threshold, and perform the compression processing on the font file, and then trigger the judging module 102 to work again after performing the compression processing.
- the compression processing module 103 of the embodiment of the present invention may compress the font file by using various compression algorithms well known to those skilled in the art, such as open source zip, winzip, 7-zip, etc. compression/decompression algorithms; different font files
- the compression ratio may be different. Some font files can be compressed to about 70% of the original capacity. Some font files can only be compressed to about 90% of the original capacity, but for wireless networks, small traffic reduction will be Will bring economic savings and download speed.
- the plurality of sub-font files are processed to obtain a compressed font file that can be used; and the obtained compressed font file is decompressed to obtain a usable font file.
- the segmentation processing module 100 does not perform the segmentation process on the compressed font file, and the sending module 101 compresses the file.
- the font file is sent to the user device 20, so the user device 20 receives the compressed font file, and decompresses the compressed font file to obtain a usable font file.
- a method for downloading a font file is also provided in the embodiment of the present invention.
- the principle of solving the problem is similar to the server shown in FIG. 2, so the implementation of the method can be referred to the server shown in FIG. The implementation, the repetition will not be repeated.
- An embodiment of the present invention provides a method for downloading a font file. As shown in FIG. 4, the method includes the following steps: S401. If the capacity of the font file that the user equipment needs to download is greater than the transmission limit threshold of the gateway corresponding to the user equipment, perform a segmentation process on the font file to obtain a plurality of sub-word library files whose capacity is not greater than a transmission limit threshold.
- the segmentation processing of the font file in S401 includes:
- the font outline data in the font file is greater than the transmission limit threshold, the font outline data is sliced to obtain a plurality of sub-word library files including partial font contour data and having a capacity not greater than a transmission limit threshold;
- the data other than the font outline data in the font file is subjected to the segmentation processing to obtain a plurality of partial de-contoured contour data. If the capacity of the data other than the font outline data in the font file is not greater than the transmission limit threshold, the data other than the font outline data in the font file is taken as one Sub-word library file.
- the segmentation processing on the font file in S401 includes:
- the font contour data is sliced to obtain a plurality of sub-word library files including partial font contour data
- the user equipment 20 of the embodiment of the present invention includes:
- the download module 200 is configured to download all the sub-word library files
- the processing module 201 is configured to process all the sub-word files to obtain a font file that can be used.
- the processing module 201 is specifically configured to:
- the processing module 201 is specifically configured to:
- each sub-library file downloaded is used as a usable font file.
- the user equipment 20 In the process of downloading all the sub-library files by the user equipment 20, if an interruption occurs with the server 10, and after restoring the normal connection with the server 10, if the download still needs to be continued, the user equipment 20 first obtains the local completed download. The total capacity of the sub-library file, and then calculate the total capacity and the segmentation unit of the font file, and set the required The downloaded sub-character file is sent to the server 10 to send a request for re-downloading, thereby implementing a resume of the breakpoint. Specifically, the user device 20 first reads the index file of the font file to be downloaded, thereby determining the capacity and the segmentation of the font file. Unit, and sequentially determine the capacity of each sub-library file that has been downloaded to determine whether the downloaded sub-library file is complete, as follows:
- the sub-word library file For each downloaded sub-word library file, if the capacity of the sub-word library file is not zero, and the capacity of the sub-library file is obtained and the actual capacity of the corresponding sub-word library file in the server 10 is consistent, the sub-word library file is described as Download completed;
- the capacity of the sub-word library file is smaller than the actual capacity of the corresponding sub-word library file in the server 10
- the corresponding sub-word library file in the server 10 is pointer-shifted, and the specific offset is the sub-word library file that the user equipment 20 has downloaded.
- the capacity value, the remaining capacity value of the sub-word library file to be downloaded is the difference between the actual capacity of the corresponding sub-word library file in the server 10 and the capacity of the sub-word library file that has been downloaded locally;
- the user device 20 does not record the amount of downloaded data inside the program, but directly reads the capacity value directly from the stored sub-word library file, and then the sub-character file is read.
- the capacity value as the starting position for re-initiating the download request, the downloaded segment still uses the size of the set segment.
- the server 10 of the embodiment of the present invention performs compression processing on the font file, and the user equipment 20, as shown in FIG. 6, further includes:
- the decompression processing module 202 is configured to perform decompression processing after processing all the sub-word files to obtain a font file that can be used.
- a method for downloading a font file is also provided in the embodiment of the present invention.
- the principle of solving the problem is similar to the device shown in FIG. 5, so the implementation of the method can be referred to the device shown in FIG. The implementation, the repetition will not be repeated.
- An embodiment of the present invention provides a method for downloading a font file, as shown in FIG. 7, including:
- the S70 K user device downloads all sub-font files
- the user equipment processes all the sub-character files to obtain a font file that can be used.
- the processing of all the sub-word library files in S702 includes: combining the sub-word library files including the partial font contour data with all the sub-word library files including the data other than the font outline data, to obtain a font file that can be used; Or a sub-word library file containing partial font outline data, and the sub-font file is combined with all sub-word library files containing data other than the font outline data to obtain a font file that can be used.
- processing all the sub-word files in S702 includes:
- each sub-library file downloaded is used as a usable font file.
- the compression processing module 103 on the server side compresses the font file that needs to be downloaded with a capacity larger than the transmission limit threshold; the server-side segmentation processing module 100 performs segmentation processing on the compressed font file to obtain more a sub-library file, and sent to the user device;
- the download module 200 of the user equipment side downloads all sub-character files from the server side; the processing module of the user equipment side
- the decompression processing module 202 of the user device decompresses the obtained font file to obtain a font file that can be used.
- the method for downloading a font file in the embodiment of the present invention includes the following steps:
- the server compresses the font file that needs to be downloaded and has a capacity greater than a transmission limit threshold
- the server reads an attribute table of the compressed font file, where the attribute table includes a capacity of the font file.
- the server determines, according to the transmission limit threshold, a segmentation unit
- the server determines a naming rule of the sub-word library file after the segmentation, manages the sub-word library file, and distributes all the determined sub-word library files to the user equipment through the network; wherein, managing the sub-word library file includes: determining each sub- The uniqueness of the actual naming of the font file, the correspondence between the actual naming of the sub-library file and the sharding rule, avoiding the problem of overlapping the sub-word files after multiple sharding, recording the attributes of each sub-word file and other sub-library files. The combination of attributes, etc.;
- the embodiment of the present invention performs segmentation processing on the font file to obtain a plurality of sub-word library files whose capacity is not greater than the transmission limit threshold, so that the user
- each sub-font file is downloaded and processed to obtain a font file that can be used.
- the capacity of the font file exceeds the limit of the corresponding gateway of the user, the user cannot be downloaded from the file server. The situation of the required font file occurs; the embodiment of the invention also improves the download speed and improves the user experience.
- the font file when the capacity of the font file to be downloaded is greater than the transmission limit idle value of the gateway corresponding to the user equipment, and the capacity of the data of the font outline data in the font file is not greater than the transmission limit threshold, the font file may be The font outline data in the segmentation processing is performed to obtain a plurality of sub-word library files including partial font type 4 warehouse data, and all data except the font wheel data is placed in each sub-font file, so that each obtained The sub-library files can be used directly, which improves the flexibility of the use of font files;
- each sub-word library file may be encrypted (such as parity check and shift processing) when the font file is divided and processed. Etc.) After downloading all the sub-library files using the .user+device, decryption processing is required before all sub-font files can be processed accordingly to obtain a usable font file.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Information Transfer Between Computers (AREA)
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
Claims
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014521938A JP5753946B2 (ja) | 2011-12-31 | 2012-12-31 | フォントファイルをダウンロードする方法およびシステム |
KR1020147004150A KR101568947B1 (ko) | 2011-12-31 | 2012-12-31 | 폰트 파일을 다운로드하는 방법 및 시스템 |
US14/130,664 US20140164574A1 (en) | 2011-12-31 | 2012-12-31 | Method and System for Downloading a Font File |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110460619.7A CN103186644B (zh) | 2011-12-31 | 2011-12-31 | 一种下载字库文件的方法、设备及系统 |
CN201110460619.7 | 2011-12-31 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013097812A1 true WO2013097812A1 (zh) | 2013-07-04 |
Family
ID=48677813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/088054 WO2013097812A1 (zh) | 2011-12-31 | 2012-12-31 | 一种下载字库文件的方法和系统 |
Country Status (5)
Country | Link |
---|---|
US (1) | US20140164574A1 (zh) |
JP (1) | JP5753946B2 (zh) |
KR (1) | KR101568947B1 (zh) |
CN (1) | CN103186644B (zh) |
WO (1) | WO2013097812A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015107935A1 (ja) * | 2014-01-18 | 2015-07-23 | 株式会社モリサワ | フォント配信システム、及びフォント配信方法 |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9473561B2 (en) * | 2013-03-15 | 2016-10-18 | International Business Machines Corporation | Data transmission for transaction processing in a networked environment |
EP3661122A3 (en) * | 2014-05-14 | 2020-07-29 | Pagecloud Inc. | Methods and systems for web content generation |
CN104965830B (zh) | 2014-06-06 | 2018-07-17 | 腾讯科技(深圳)有限公司 | 一种字符更新方法及装置 |
CN105677646B (zh) * | 2014-11-17 | 2019-03-01 | 北京大学 | 字库生成方法、字库生成系统和服务器 |
CN104506381A (zh) * | 2014-12-16 | 2015-04-08 | 新余兴邦信息产业有限公司 | 一种通过仪表监控文件上传的方法及装置 |
CN106504333A (zh) * | 2016-10-14 | 2017-03-15 | 海尔集团技术研发中心 | 一种实现三维模型在线快速浏览的方法和系统 |
US12047474B1 (en) * | 2023-03-14 | 2024-07-23 | Open Text Holdings, Inc. | Method and system for parallel content download |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369953A (zh) * | 2008-09-17 | 2009-02-18 | 北大方正集团有限公司 | 一种字库的网络分发方法及系统 |
CN101867617A (zh) * | 2010-06-13 | 2010-10-20 | 优视科技有限公司 | 一种基于移动终端的文件上传方法、系统和上传服务器 |
CN102088696A (zh) * | 2011-03-15 | 2011-06-08 | 广州市动景计算机科技有限公司 | 一种移动终端从目标服务器下载大文件的方法和系统 |
CN102129394A (zh) * | 2010-01-14 | 2011-07-20 | 优必达科技有限公司 | 分布式计算方法及系统 |
Family Cites Families (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11242640A (ja) * | 1998-02-25 | 1999-09-07 | Kdd Corp | ファイル転送方法 |
JP3171160B2 (ja) * | 1998-03-20 | 2001-05-28 | 日本電気株式会社 | 圧縮ファイルサーバ方式 |
JPH11328058A (ja) * | 1998-05-14 | 1999-11-30 | Toshiba Corp | データ処理システム |
JP4354565B2 (ja) * | 1999-03-04 | 2009-10-28 | 東芝テック株式会社 | 電子メールの送信方法、送信装置、受信方法、受信装置、および送受信システム |
US6466983B1 (en) * | 1999-09-30 | 2002-10-15 | Steven Paul Strazza | Systems and methods for controlling access to data maintained in a repository |
JP2001117844A (ja) * | 1999-10-20 | 2001-04-27 | Nec Corp | 無線通信システム及びそれに用いる無線クライアントの表示言語切替方法 |
US6952580B2 (en) * | 2000-12-12 | 2005-10-04 | The Directv Group, Inc. | Multiple link internet protocol mobile communications system and method therefor |
JP2002312279A (ja) * | 2001-04-11 | 2002-10-25 | Kenwood Corp | 情報通信システム、ゲートウェイサーバ、その通信方法、及び情報通信端末 |
US6990079B2 (en) * | 2001-06-08 | 2006-01-24 | International Business Machines Corporation | Optimizing fragment sizes in frame relay networks |
FR2868226B1 (fr) * | 2004-03-29 | 2006-05-26 | Philippe Joliot | Procede de transmission d'un fichier de donnees numeriques au travers de reseaux de telecommunications ou de radiocommunications |
JP2006019802A (ja) * | 2004-06-30 | 2006-01-19 | Canon Inc | Http通信装置 |
US7447836B2 (en) * | 2006-02-14 | 2008-11-04 | Software Site Applications, Limited Liability Company | Disk drive storage defragmentation system |
US20080240675A1 (en) * | 2007-03-27 | 2008-10-02 | Adam Berger | Coordinating Audio/Video Items Stored On Devices |
US8295615B2 (en) * | 2007-05-10 | 2012-10-23 | International Business Machines Corporation | Selective compression of synchronized content based on a calculated compression ratio |
CN101198016A (zh) * | 2007-12-05 | 2008-06-11 | 中兴通讯股份有限公司 | 交互式个人电视媒体交付系统的内容发布和存储方法 |
CN101217638B (zh) * | 2007-12-28 | 2012-10-24 | 深圳市迅雷网络技术有限公司 | 视频文件分段下载的方法、系统及装置 |
WO2010134919A1 (en) * | 2009-05-21 | 2010-11-25 | Hewlett-Packard Development Company, L.P. | Generation of an individual glyph, and system and method for inspecting individual glyphs |
US10033779B2 (en) * | 2009-07-08 | 2018-07-24 | Dejero Labs Inc. | Multipath data streaming over multiple wireless networks |
US8769050B2 (en) * | 2009-10-16 | 2014-07-01 | Celartern, Inc. | Serving font files in varying formats based on user agent type |
JP2011130363A (ja) * | 2009-12-21 | 2011-06-30 | Rtv:Kk | 無線端末装置、コンテンツ送受信システム、サーバ装置及びプログラム |
US8683006B2 (en) * | 2010-07-17 | 2014-03-25 | Adobe Systems Incorporated | Method and systems for serving fonts during web browsing sessions |
US20140372516A1 (en) * | 2011-02-02 | 2014-12-18 | Imvu Inc. | System and method for providing a scalable translation between polling-based clients and connection-based message queues |
-
2011
- 2011-12-31 CN CN201110460619.7A patent/CN103186644B/zh not_active Expired - Fee Related
-
2012
- 2012-12-31 KR KR1020147004150A patent/KR101568947B1/ko not_active IP Right Cessation
- 2012-12-31 JP JP2014521938A patent/JP5753946B2/ja not_active Expired - Fee Related
- 2012-12-31 US US14/130,664 patent/US20140164574A1/en not_active Abandoned
- 2012-12-31 WO PCT/CN2012/088054 patent/WO2013097812A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369953A (zh) * | 2008-09-17 | 2009-02-18 | 北大方正集团有限公司 | 一种字库的网络分发方法及系统 |
CN102129394A (zh) * | 2010-01-14 | 2011-07-20 | 优必达科技有限公司 | 分布式计算方法及系统 |
CN101867617A (zh) * | 2010-06-13 | 2010-10-20 | 优视科技有限公司 | 一种基于移动终端的文件上传方法、系统和上传服务器 |
CN102088696A (zh) * | 2011-03-15 | 2011-06-08 | 广州市动景计算机科技有限公司 | 一种移动终端从目标服务器下载大文件的方法和系统 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015107935A1 (ja) * | 2014-01-18 | 2015-07-23 | 株式会社モリサワ | フォント配信システム、及びフォント配信方法 |
JP2015135638A (ja) * | 2014-01-18 | 2015-07-27 | 株式会社モリサワ | フォント配信システム、及びフォント配信方法 |
US9984046B2 (en) | 2014-01-18 | 2018-05-29 | Morisawa Inc. | Font delivery system and font delivery method |
Also Published As
Publication number | Publication date |
---|---|
JP5753946B2 (ja) | 2015-07-22 |
KR101568947B1 (ko) | 2015-11-12 |
US20140164574A1 (en) | 2014-06-12 |
CN103186644A (zh) | 2013-07-03 |
CN103186644B (zh) | 2016-09-21 |
JP2014526098A (ja) | 2014-10-02 |
KR20140051310A (ko) | 2014-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013097812A1 (zh) | 一种下载字库文件的方法和系统 | |
CN102684827B (zh) | 数据处理方法及数据处理设备 | |
US8453040B2 (en) | Obscuring information in messages using compression with site-specific prebuilt dictionary | |
EP3013015B1 (en) | Packet compression method and apparatus | |
EP2863593B1 (en) | A method, apparatus and computer program for modifying messages in a communications network | |
CN108512898B (zh) | 文件推送方法、装置、计算机设备和存储介质 | |
CN112165331A (zh) | 数据压缩方法及其装置、数据解压方法及其装置、存储介质及电子设备 | |
CN105677646A (zh) | 字库生成方法、字库生成系统和服务器 | |
US10049089B2 (en) | Methods for compressing web page menus and devices thereof | |
CN113273163A (zh) | 文件上传方法、文件下载方法和文件管理装置 | |
CN105446975A (zh) | 一种文件打包方法及装置 | |
CN106790334A (zh) | 一种页面数据传输方法及系统 | |
CN110413711B (zh) | 一种差异数据获取方法及其存储介质 | |
US20050256836A1 (en) | HTML file processing technique | |
CN104023046B (zh) | 移动终端识别方法和装置 | |
GB2512899A (en) | A method, apparatus and computer program for adding content to a data container | |
CN113055455A (zh) | 文件上传方法及设备 | |
CN114125071B (zh) | 数据压缩传输方法及装置 | |
CN110519656B (zh) | 自适应流媒体的播放方法、系统以及服务器 | |
WO2010041028A1 (en) | Dictionary-based data compression and subsequent data transmission in a server / client architecture | |
CN108881124B (zh) | 在模块间实现高性能通信的方法、系统、存储介质及设备 | |
CN103139298B (zh) | 一种传输网络数据的方法和装置 | |
US10168909B1 (en) | Compression hardware acceleration | |
CN113900990A (zh) | 文件分片存储方法、装置、设备及存储介质 | |
CN116668536A (zh) | 图数据库和电网业务系统间的json传输方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12861884 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 14130664 Country of ref document: US |
|
ENP | Entry into the national phase |
Ref document number: 2014521938 Country of ref document: JP Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 20147004150 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12861884 Country of ref document: EP Kind code of ref document: A1 |