HK1115212A1 - Method for displaying multifont data - Google Patents
Method for displaying multifont data Download PDFInfo
- Publication number
- HK1115212A1 HK1115212A1 HK08110733.3A HK08110733A HK1115212A1 HK 1115212 A1 HK1115212 A1 HK 1115212A1 HK 08110733 A HK08110733 A HK 08110733A HK 1115212 A1 HK1115212 A1 HK 1115212A1
- Authority
- HK
- Hong Kong
- Prior art keywords
- page
- file
- font
- data
- word stock
- Prior art date
Links
Landscapes
- Document Processing Apparatus (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a multifont data display method, a system and related equipment for enhancing user's experience. The method in the invention includes that user terminals access a page file provided by a server; judge whether the page file contains the page font files, and if it is, the page font files are stored locally; according to the page font files and the preset default font files, display the data in the page file. The invention also provides the multifont data display system and the related equipment. The invention is able to effectively enhance user's experience.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a system for displaying multi-font data and related devices.
Background
With the development of digital television technology and the increasing maturity of the market, the data display requirements of users on digital televisions are higher and higher, and in many cases, users want to be able to display characters with several different fonts on one page to improve the visual perception. However, if several types of characters with different fonts are displayed on one page at the same time, several types of character libraries with different fonts need to be installed on the digital television terminal, the character library containing a certain type of font is usually large, and the memory of the current digital television terminal can only store one default character library.
The data display method in the prior art comprises the following steps: a default word stock is stored in the digital television terminal, the word stock is automatically installed in the system starting process, when the terminal needs to display a page, codes of characters on the page and other displayed information are submitted to the word stock, and the word stock returns a buffer to display the characters.
However, because the default font library of the current terminal only contains characters with one font, when the digital television terminal detects that characters with different fonts need to be displayed, all the characters can be directly displayed by the fonts in the default font library, and the different fonts cannot be distinguished, so that the user experience is reduced;
secondly, the user terminal in the prior art can only display the page file by using the default word stock, so that a multi-font page cannot be displayed to the user;
thirdly, the page sent to the user terminal by the server in the prior art does not contain the page font library file, so that support cannot be provided for the user terminal to display the multi-font page.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and a system for displaying multi-font data and related devices, which can improve user experience, and provide a terminal with multi-font page display capability and a server for providing support for a terminal displaying multi-font pages.
The multi-font data display method provided by the embodiment of the invention comprises the following steps: the user terminal accesses a page file provided by the server; judging whether the page file contains a page word stock file, if so, storing the page word stock file locally; and displaying the data in the page file according to the page word stock file and a preset default word stock file.
Optionally, the step of the user terminal accessing the page file provided by the server includes: the server generates a temporary page file; acquiring font information of data in the temporary page file; generating a plurality of page font files according to the font information; and carrying the page word library file in the temporary page file to generate a page file.
Optionally, the step of generating a plurality of page font files according to the font information includes: and packaging the data using the same font information in the temporary page file into a page font file.
Optionally, the step of displaying the data in the page file according to the page word stock file and a preset default word stock file includes: reading font information of data in a page file by a user terminal; locally inquiring a page font file or a default font file corresponding to the font information; and displaying the data by using the inquired page word stock file or the default word stock file.
Optionally, if the page file does not include a page word stock file, displaying data in the page file by using a locally stored default word stock file.
Optionally, the method further comprises: and the user terminal judges whether the user closes the page file, and if so, deletes the locally stored page font library file related to the page file.
The multi-font data display system provided by the embodiment of the invention comprises: the user terminal is used for accessing the page file provided by the server, judging whether the page file contains a page word stock file, if so, storing the page word stock file locally, and displaying data in the page file according to the page word stock file and a preset default word stock file; the server is used for generating a temporary page file, acquiring font information of data in the temporary page file, generating a plurality of page font files according to the font information, and carrying the page font files in the temporary page file to generate the page file.
The user terminal provided by the embodiment of the invention comprises: the page access unit is used for accessing the page file provided by the server; the word stock checking unit is used for judging whether the page file contains a page word stock file; the word stock storage unit is used for storing the page word stock file locally when the page file comprises the page word stock file; and the data display unit is used for displaying the data in the page file according to the page word stock file and a preset default word stock file.
Optionally, the user terminal further includes: and the word stock unloading unit is used for deleting the locally stored page word stock file related to the page file when the page file is closed by the user.
The server provided by the embodiment of the invention comprises: the page generation unit is used for generating a temporary page file; the word stock generating unit is used for generating a plurality of page word stock files according to the font information of the data in the page files; and the page display unit is used for carrying the page word stock file in the temporary page file to generate a page file.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, after the user terminal receives the page file sent by the server, the page font library file can be read from the page file, and the page font library file is stored locally for displaying the data in the page file, so that the data display of various fonts can be realized, and the user experience is improved;
secondly, in the embodiment of the invention, the user terminal stores the page font library file after detecting that the page contains the page font library file, and displays the page by using the page font library file to match with the default font library file, so that the capability of displaying the multi-font page is realized;
in the embodiment of the invention, the server carries the page font library file in the page, so that support can be provided for the user terminal to display the multi-font page.
Drawings
FIG. 1 is a schematic diagram of an embodiment of a method for displaying multi-font data according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an embodiment of a multi-font data display system according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a user terminal according to the present invention;
fig. 4 is a schematic diagram of an embodiment of a server in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method and a system for displaying multi-font data and related equipment, which are used for improving user experience.
In the embodiment of the invention, after the user terminal receives the page file sent by the server, the page font library file can be read from the page file, and the page font library file is stored locally for displaying the data in the page file, so that the data display of various fonts can be realized, and the user experience is improved.
Referring to fig. 1, the method for displaying multi-font data in the embodiment of the present invention is described in detail below, and the method for displaying multi-font data in the embodiment of the present invention includes:
101. the user terminal accesses a page file provided by the server;
in this embodiment, a user accesses a page file provided by a server through a user terminal, specifically, the user may connect with the server through a set-top box and browse a resource (which may be a web page) provided by the server, and the user clicks a web page in which the user is interested, that is, accesses the web page.
In the present embodiment, a web page is used as an example of a page file, and it should be understood that the web page may also be other types of page files, and the present invention is not limited herein.
102. The user terminal analyzes the accessed page file;
after the user terminal accesses the web page, the content contained in the web page needs to be analyzed. It should be noted that, before the user terminal accesses the web page, the server needs to generate the web page in advance, which is a key point in the embodiment of the present invention, and the specific operation of the server may be:
the server generates a temporary webpage according to the information resource;
acquiring font information of characters in the temporary webpage, namely, how many characters are contained in the temporary webpage and what font each character is;
classifying characters with the same font into one class, packaging the characters into a page font file, and generating a plurality of page font files after executing the operation on the temporary webpage;
and carrying the generated page word stock file in a temporary webpage to generate a webpage, and displaying the webpage to a user.
In the present embodiment, the text is used as an example of data, and it is understood that the data in the web page may be other types of data as well, and is not limited herein.
103. The user terminal judges whether the page file contains a page font file, if so, the step 104 is executed, and if not, the step 109 is executed;
in this embodiment, after the user terminal analyzes an accessed webpage, it is determined whether the webpage includes a webpage word stock file, and a specific analysis method is the prior art and is not described herein again.
104. Downloading a page word stock file;
and after the user terminal analyzes the webpage, acquiring that the webpage contains the page word stock file, and downloading the page word stock file into a memory of the user terminal.
105. Judging whether the page font library file is successfully downloaded, if so, executing the step 106, and if not, executing the step 109;
after the user terminal executes the downloading operation on the page font library file, whether the downloading operation is executed successfully or not is judged, namely whether the whole page font library file is downloaded to the memory of the user terminal or not is judged.
106. A user terminal installs a page font library file;
if the page font library file is successfully downloaded, the user terminal installs the page font library file, and the specific installation process can be as follows:
firstly, inquiring a page word stock file quoted in the webpage;
and installing the page font library files by adopting a universal software installation method until all the page font library files are installed.
In this embodiment, the method for installing the page word stock file is the prior art, and is not limited herein.
107. Acquiring data in a page file;
and after the user terminal installs the page font library file into the memory of the user terminal, acquiring font information of characters in the currently accessed webpage.
108. Displaying the data by using the corresponding word stock file;
after the user terminal acquires the font information of the characters in the webpage, a page font library file or a default font library file corresponding to the font information is inquired in a memory of the user terminal, and the inquired page font library file or the default font library file is used for displaying the characters.
In this embodiment, each character in the web page has font information for indicating what font is used for the character, and the font information is displayed by using a corresponding font library file in the memory of the user terminal.
109. And processing by adopting a default word stock file.
In this embodiment, if the web page does not include the page word stock file, or the download of the page word stock file fails, the default word stock file originally stored in the user terminal is used to display the characters in the web page.
It should be noted that, in order to save the memory space of the user terminal, when the user closes the current web page or switches to another web page, the word stock file related to the web page may be deleted from the memory of the user terminal, that is, when the user terminal detects that the user closes or switches the current web page, the corresponding word stock file is unloaded.
In the embodiment, after receiving the page file sent by the server, the user terminal can read the page font library file from the page file and store the page font library file locally for displaying data in the page file, so that data display of various fonts can be realized, and user experience is improved;
secondly, because the server only encapsulates the characters with the same type of font in the current webpage into a page font file, and the number of the characters contained in one webpage is not too large, the volume of each page font file is smaller, which is beneficial to saving the memory space of the user terminal;
and thirdly, after the user closes or switches the current webpage, the user terminal deletes the relevant font library file from the memory of the user terminal, so that the memory space can be further saved.
For convenience of understanding, a specific example is described below, assuming that a certain webpage includes the following characters "national intellectual property office", wherein "country" is a song-imitating body, "intellectual property" is a song-imitating body, "office" is a song-imitating body, and a default font in a memory of a user terminal is a song body, a server needs to generate two page font files, wherein a page font file a includes a "country" adopting a song-imitating body, and a page font file B includes an "intellectual property" adopting a song-imitating body, and the two page font files are carried in the webpage and displayed to a user, when the user accesses the webpage through the user terminal, the user terminal parses the webpage to find that the webpage carries the page font files, downloads the two page font files from the server, if the downloading is successful, installs the two page font files into a memory of the user terminal, and after the installation is completed, the method comprises the steps of obtaining characters 'national intellectual property bureau' in a current webpage, and obtaining specific font information as follows: the state adopts a Song-imitating style, the intellectual property right adopts a regular style, the office adopts the Song style, corresponding page word library files A and B are read from the memory, the state and the intellectual property right are normally displayed, and the default word library file is read from the memory to normally display the office.
And when the user closes the current webpage or switches to another webpage, deleting the page font library files A and B from the memory of the user terminal.
Referring to fig. 2, an embodiment of a multi-font data display system according to an embodiment of the present invention is described below, where the embodiment of the multi-font data display system according to the present invention includes:
the user terminal 201 is configured to access a page file provided by the server 202, determine whether the page file includes a page word stock file, store the page word stock file locally if the page file includes the page word stock file, and display data in the page file according to the page word stock file and a preset default word stock file;
the server 202 is configured to generate a temporary page file, obtain font information of data in the temporary page file, generate a plurality of page font files according to the font information, and carry the page font files in the temporary page file to generate a page file.
Referring to fig. 3, an embodiment of a user terminal according to the present invention includes:
a page access unit 301, configured to access a page file provided by a server;
a word stock checking unit 302, configured to determine whether the page file includes a page word stock file;
a word stock storage unit 303, configured to store the page word stock file locally when the page file includes the page word stock file;
a data display unit 304, configured to display data in the page file according to the page font file and a preset default font file;
the word stock unloading unit 305 is configured to delete the locally stored page word stock file associated with the page file when the user closes the page file.
Referring to fig. 4, an embodiment of a server according to the present invention includes:
a page generating unit 401, configured to generate a temporary page file;
a word stock generating unit 402, configured to generate a plurality of page word stock files according to font information of data in the page file;
and a page display unit 403, configured to carry the page font file in the temporary page file to generate a page file.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes the following steps:
the user terminal accesses a page file provided by the server;
judging whether the page file contains a page word stock file, if so, storing the page word stock file locally;
and displaying the data in the page file according to the page word stock file and a preset default word stock file.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
While the multi-font data display method and system and the related devices provided by the present invention have been described in detail, for those skilled in the art, the idea of the embodiment of the present invention may be changed in the specific implementation manner and the application scope, and in summary, the content of the present description should not be construed as limiting the present invention.
Claims (1)
1. A method for displaying multifont data, comprising:
the server generates a temporary page file;
the server acquires font information of the data in the temporary page file;
the server packages the data using the same font information in the temporary page file into a page font file;
the server carries the page word stock file in the temporary page file to generate a page file;
the set top box accesses a page file provided by the server;
the set top box judges whether the page file contains a page font file or not, if so, the page font file is stored locally, the set top box reads font information of data in the page file, the set top box inquires the page font file corresponding to the font information locally, and the set top box displays the data by using the inquired page font file;
if the page file does not contain the page word stock file, the set top box displays the data by using a default word stock file;
and the set top box judges whether the page file is closed by the user, and if so, deletes the locally stored page font library file related to the page file.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2007101882381A CN100561481C (en) | 2007-11-23 | 2007-11-23 | A method for displaying multi-font data |
Publications (2)
Publication Number | Publication Date |
---|---|
HK1115212A1 true HK1115212A1 (en) | 2008-11-21 |
HK1115212B HK1115212B (en) | 2010-03-05 |
Family
ID=
Also Published As
Publication number | Publication date |
---|---|
CN101158979A (en) | 2008-04-09 |
CN100561481C (en) | 2009-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110245069B (en) | Page version testing method and device and page display method and device | |
US10871973B2 (en) | Application activation method and apparatus | |
CN110321177B (en) | Mobile application localized loading method and device and electronic equipment | |
CN107291759B (en) | Method and device for processing browser page resources | |
CN105867947A (en) | Data processing method and device after upgrades of preset applications | |
KR20080091424A (en) | Method of managing font of multimedia scene, corresponding computer program and terminal | |
CN113761412A (en) | Application page display method and device, electronic equipment, medium and application system | |
CN103324517A (en) | Off-line application generation and call method, terminal and system | |
CN100561481C (en) | A method for displaying multi-font data | |
CN108885544B (en) | Front-end page internationalized processing method, application server and computer-readable storage medium | |
CN113360106B (en) | Webpage printing method and device | |
CN107688456B (en) | File generation method, device and computer readable storage medium | |
CN114036419A (en) | Webpage picture resource processing method and device | |
CN113377376A (en) | Data packet generation method, data packet generation device, electronic device, and storage medium | |
CN111399823A (en) | Page component layout method, system and foreground terminal | |
US20240045701A1 (en) | Method, device and system for loading page data | |
CN101808218A (en) | Method, device and system for acquiring and updating content of electronic program guide | |
CN106470351B (en) | Page display method and page display device | |
CN112328930B (en) | Webpage rendering method, server, client and system based on cobalt | |
CN109933734B (en) | Page skipping method, device and system and storage medium | |
CN104217021B (en) | Reading server, terminal device and its method for showing reading content | |
HK1115212B (en) | Method for displaying multifont data | |
CN108572985B (en) | Page display method and device | |
CN111475748B (en) | Picture display method and device | |
CN104077292A (en) | Webpage information storage method and equipment |