[go: up one dir, main page]

CN107391519B - Method for accelerating display of Asian language family fonts on webpage, font server and browser end - Google Patents

Method for accelerating display of Asian language family fonts on webpage, font server and browser end Download PDF

Info

Publication number
CN107391519B
CN107391519B CN201610405117.7A CN201610405117A CN107391519B CN 107391519 B CN107391519 B CN 107391519B CN 201610405117 A CN201610405117 A CN 201610405117A CN 107391519 B CN107391519 B CN 107391519B
Authority
CN
China
Prior art keywords
font
information
subset
webpage
display program
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.)
Active
Application number
CN201610405117.7A
Other languages
Chinese (zh)
Other versions
CN107391519A (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.)
Asia Pacific Gamer Co ltd
Original Assignee
Asia Pacific Gamer 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 Asia Pacific Gamer Co ltd filed Critical Asia Pacific Gamer Co ltd
Publication of CN107391519A publication Critical patent/CN107391519A/en
Application granted granted Critical
Publication of CN107391519B publication Critical patent/CN107391519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种加速网页显示亚洲语系字体的方法、字体服务器、与浏览器端。包括下述步骤:下载至少一网页信息到浏览器端,网页信息包括连接信息、字码信息、与字体信息。浏览器端下载字体显示程序,字体显示程序产生第一寻址信息。此后字体显示程序下载第一子集合字体档案并产生第一解译结果。接着字体服务器包括字体产生模块,且字体显示程序与字体产生模块通讯后进行下述步骤。首先,字体产生模块产生对应的第二子集合字体档案与第二寻址信息。之后,浏览器端下载第二子集合字体档案并对第二子集合字体档案进行解译并产生第二解译结果。本发明的有益效果是加速网页显示亚洲语系字体的方法,并能让用户在无需太多等待时间的情况下享受多样化亚洲语系字体。

Figure 201610405117

A method, font server, and browser for accelerating the display of Asian language fonts on web pages. The method includes the following steps: downloading at least one web page information to the browser, where the web page information includes connection information, character code information, and font information. The browser downloads a font display program, and the font display program generates first addressing information. Thereafter, the font display program downloads the first subset of font files and generates a first interpretation result. Then the font server includes a font generation module, and the font display program performs the following steps after communicating with the font generation module. First, the font generation module generates the corresponding second subset font file and the second addressing information. Afterwards, the browser downloads the second subset font file and interprets the second subset font file to generate a second interpretation result. The invention has the beneficial effect of accelerating the method of displaying Asian language fonts on web pages, and allowing users to enjoy diversified Asian language fonts without much waiting time.

Figure 201610405117

Description

加速网页显示亚洲语系字体的方法、字体服务器、与浏览器端Method, font server, and browser side for accelerating the display of Asian fonts on web pages

技术领域technical field

一种加速网页显示字体显示的方法,尤其是针对亚洲语系字体在网页显示上的加速呈现处理。A method for accelerating the display of fonts displayed on a webpage, especially for the accelerated rendering processing of Asian fonts on the webpage display.

背景技术Background technique

随着信息科技的不断进展,人的生活可以说是已经离不开因特网。相较于全球信息网(World Wide Web)发展的早期,目前网页上所呈现的内容可以说是愈来愈丰富。举例来说,在早期浏览器端的网页所呈现文字的字体绝大部分是由超文件标示语言(HyperTextMarkup Language,简称:HTML)来定义,然而随着网页内容愈来愈多元与丰富的趋势下,已有业者开始提供根据网页需求通过因特网下载不同字体档案的服务。这样一来,即使浏览器端未安装该字体的样式,也可让用户在浏览网页时享受到多样化的字体。然而,亚洲文字字体的档案通常很大,需花费较多的时间下载,从而增加使用者的等待时间。With the continuous development of information technology, people's life can be said to be inseparable from the Internet. Compared with the early development of the World Wide Web, the content presented on the current web page can be said to be more and more abundant. For example, in the early days, the fonts of the text displayed on the web pages of the browser were mostly defined by the HyperText Markup Language (HTML for short). Existing companies have begun to provide services for downloading different font files through the Internet according to web page requirements. In this way, even if the style of the font is not installed on the browser side, users can enjoy a variety of fonts when browsing the web. However, the files of Asian script fonts are usually large and take more time to download, thereby increasing the user's waiting time.

中国台湾地区专利I427534借由图腾服务器产生网页图腾的方法中揭露的方法,是以图腾显示程序与图腾服务器通讯后,以该网页的字码及字体信息来取得子集合字体,以缩小字体档案达到加快下载呈现速度的目的。该方法虽较整个字体档案下载快速,但在与图腾服务器通讯仍有等待时间,依照网络质量与带宽不同约需等待数秒,等待时间中间会有数秒显示为系统默认字体,等待子集合字体档案完全下载完成后,方能正确显示出设定的字体样式。因此,如何让浏览者省略中间的等待时间,能直接浏览到网页设定的字体样式,是值得本领域具有知识者去思考的。The method disclosed in Taiwan Patent I427534, Method for Generating Web Totems by Totem Servers, uses the font codes and font information of the web page to obtain sub-set fonts after the totem display program communicates with the totem server, so as to reduce the font file to achieve The purpose of speeding up the download rendering speed. Although this method is faster than downloading the entire font file, it still has a waiting time when communicating with the totem server. Depending on the network quality and bandwidth, it will take about a few seconds. In the middle of the waiting time, there will be a few seconds displayed as the system default font. Wait for the sub-collection font file to complete. After the download is complete, the set font style can be displayed correctly. Therefore, how to allow the viewer to omit the intermediate waiting time and directly browse to the font style set by the webpage is worthy of consideration by those skilled in the art.

发明内容SUMMARY OF THE INVENTION

为了解决上述的问题,本发明的目的在于提供一种加速网页显示亚洲语 系字体的方法,本发明的有益效果是,此种于网页显示字体的方法能让用户在无需太多等待时间的情况下享受多样化的亚洲语系字体。In order to solve the above problems, the purpose of the present invention is to provide a method for accelerating the display of Asian fonts on webpages. Enjoy a wide variety of Asian fonts.

基于上述目的与其他目的,本发明提供一种加速网页显示亚洲语系字体的方法。首先,从对应到一网页网址的一网页源下载至少一网页信息到一浏览器端,网页信息包括一连接信息、至少一字码信息、与至少一字体信息。再来,浏览器端根据连接信息从一字体服务器下载一字体显示程序,字体显示程序至少根据该网页网址与该字体信息产生至少一第一寻址信息。之后,字体显示程序根据第一寻址信息,至字体服务器尝试下载一第一子集合字体档案。若浏览器端成功下载第一子集合字体档案,浏览器端对第一子集合字体档案进行解译并产生一第一解译结果,并将第一解译结果呈现于一网页上。接着,字体显示程序将网页网址、字码信息、与字体信息传送至字体服务器,该字体服务器包括一字体产生模块。再来,字体产生模块判断网页网址对应的字体信息与字码信息至少其中之一是否有变动或并不存在该网址对应的字体信息与字码信息,若是则进行下述步骤。首先,字体产生模块根据字码信息与字体信息产生至少一对应的第二子集合字体档案,及至少依据网页网址与字体信息产生一第二寻址信息。之后,传送第二寻址信息至浏览器端的字体显示程序,且字体显示程序根据第二寻址信息下载第二子集合字体档案。接着,浏览器端对第二子集合字体档案进行解译并产生一第二解译结果,并将该第二解译结果呈现于一网页上。Based on the above object and other objects, the present invention provides a method for accelerating the display of Asian fonts on a webpage. First, download at least one webpage information from a webpage source corresponding to a webpage URL to a browser, the webpage information includes a connection information, at least one character code information, and at least one font information. Next, the browser downloads a font display program from a font server according to the connection information, and the font display program generates at least one first addressing information according to at least the webpage URL and the font information. Afterwards, the font display program tries to download a first subset font file from the font server according to the first addressing information. If the browser terminal successfully downloads the first subset font file, the browser terminal interprets the first subset font file, generates a first interpretation result, and presents the first interpretation result on a webpage. Next, the font display program transmits the website address, the font code information, and the font information to the font server, and the font server includes a font generating module. Next, the font generation module determines whether at least one of the font information and the font code information corresponding to the web site address has changed or there is no font information and font code information corresponding to the web site, and if so, the following steps are performed. First, the font generating module generates at least one corresponding second subset font file according to the font code information and the font information, and generates a second addressing information at least according to the webpage URL and the font information. Afterwards, the second addressing information is transmitted to the font display program on the browser side, and the font display program downloads the second subset font file according to the second addressing information. Next, the browser interprets the second subset font file to generate a second interpretation result, and displays the second interpretation result on a webpage.

在上述的加速网页显示亚洲语系字体的方法中,字体服务器包括一原始字体数据库,该字体产生模块产生该第二子集合字体档案的步骤包括以下步骤。首先,从原始字体数据库中寻找符合该字体信息要求的字体。接着,根据所接收到的字码信息,从原始字体数据库中取得对应到该字码信息中的每一字码的一字体图像。再来,产生该字码信息与该字体图像间的一索引表,且依据该索引表从原始字体数据库中产生第二子集合字体档案。In the above-mentioned method for accelerating the display of Asian fonts on a webpage, the font server includes an original font database, and the step of generating the second subset font file by the font generating module includes the following steps. First, look for fonts that meet the requirements of the font information from the original font database. Next, according to the received font code information, a font image corresponding to each font code in the font code information is obtained from the original font database. Next, an index table between the character code information and the font image is generated, and a second subset font file is generated from the original font database according to the index table.

在上述的于网页显示字体的方法中,当字体产生模块判断网页网址、字体信息、与字码信息任一未有变动时,该第二寻址信息等于该第一寻址信息。In the above method for displaying fonts on a webpage, when the font generating module determines that any one of the webpage URL, font information, and character code information has not changed, the second addressing information is equal to the first addressing information.

在上述的于网页显示字体的方法中,当字体信息与字码信息有变动时, 第二解译结果将覆盖第一解译结果。In the above method for displaying fonts on a webpage, when the font information and the character code information are changed, the second interpretation result will cover the first interpretation result.

基于上述目的与其他目的,本发明提供一种字体服务器,此字体服务器通讯连接至一浏览器端,该浏览器端包括至少一网页信息,该网页信息包括一连接信息、至少一字码信息、与至少一字体信息,浏览器端根据连接信息而连接至字体服务器。字体服务器包括一字体显示程序与一字体产生模块,其特征在于字体服务器依据浏览器端的请求而传送字体显示程序至浏览器端,而字体产生模块产生至少一子集合字体档案,且该字体服务器还包括对应至该第一寻址信息的至少一第一子集合字体档案。其中,于浏览器端的字体显示程序根据网页网址与字体信息产生至少一第一寻址信息,该字体显示程序根据第一寻址信息从字体服务器尝试下载一第一子集合字体档案,之后于浏览器端的字体显示程序将网页网址、字码信息、与字体信息传送至字体服务器。若该字体产生模块判断该网页网址对应的该字码信息与该字体信息至少其中之一是否不存在或有变动,则进行下述步骤。首先,根据字码信息与字体信息产生至少一对应的第二子集合字体档案,且根据网页网址与字体信息产生一第二寻址信息,并传送第二寻址信息至浏览器端的字体显示程序。其特征在于,于收到第二寻址信息后,浏览器端的字体显示程序根据第二寻址信息从字体服务器下载第二子集合字体档案并进行解译以产生一第二解译结果,并将该第二解译结果呈现于一网页上。Based on the above objects and other objects, the present invention provides a font server, the font server is communicatively connected to a browser, the browser includes at least one webpage information, the webpage information includes a connection information, at least one character code information, With at least one font information, the browser side connects to the font server according to the connection information. The font server includes a font display program and a font generation module, characterized in that the font server transmits the font display program to the browser according to the request of the browser, and the font generation module generates at least a subset font file, and the font server also At least one first subset font file corresponding to the first addressing information is included. The font display program on the browser side generates at least one first addressing information according to the web page URL and the font information, the font display program tries to download a first subset font file from the font server according to the first addressing information, and then browses The font display program on the server side transmits the web page URL, font code information, and font information to the font server. If the font generation module determines whether at least one of the font code information and the font information corresponding to the webpage URL does not exist or has changed, the following steps are performed. First, at least one corresponding second subset font file is generated according to the character code information and the font information, and a second addressing information is generated according to the webpage URL and the font information, and the second addressing information is sent to the font display program on the browser side . It is characterized in that, after receiving the second addressing information, the font display program on the browser side downloads the second subset font file from the font server according to the second addressing information and interprets it to generate a second interpretation result, and The second interpretation result is presented on a web page.

基于上述目的与其他目的,本发明提供一种浏览器端,此浏览器端通讯连接至一字体服务器与至少一网页源。网页源包括至少一网页信息,该网页信息包括一连接信息、至少一字码信息、与至少一字体信息,而字体服务器包括一字体显示程序与一字体产生模块。字体产生模块适于产生至少一子集合字体文件,浏览器端适于储存由该网页源所下载的网页信息以及由字体服务器所下载的该字体显示程序,该浏览器端依据网页信息与字体显示程序执行下述步骤。首先,根据连接信息从一字体服务器下载一字体显示程序。接着,字体显示程序至少根据网页网址与字体信息产生至少一第一寻址信息。再来,字体显示程序根据第一寻址信息从字体服务器尝试下载第一子集合字体档案。若成功下载第一子集合字体档案,对该第一子集合字体档案进行解译并产生一第一解译结果,并将第一解译结果呈现于一网页上。接着,字体 显示程序将网页网址、字码信息、与字体信息传送至字体服务器,其特征在于字体服务器的字体产生模块判断网页网址所对应的字体信息与字码信息至少其中之一是否有变动或并不存在,若是则根据字码信息与字体信息产生至少一对应的第二子集合字体档案,及至少依据网页网址与字体信息产生一第二寻址信息,并传送第二寻址信息至浏览器端。之后,字体显示程序根据第二寻址信息下载第二子集合字体档案。然后,对第二子集合字体档案进行解译并产生一第二解译结果,并将第二解译结果呈现于一网页上。Based on the above objects and other objects, the present invention provides a browser, which is communicatively connected to a font server and at least one webpage source. The webpage source includes at least one webpage information, the webpage information includes connection information, at least one character code information, and at least one font information, and the font server includes a font display program and a font generation module. The font generation module is adapted to generate at least a subset of font files, the browser end is adapted to store the webpage information downloaded from the webpage source and the font display program downloaded from the font server, and the browser end displays the font according to the webpage information and the font. The program performs the following steps. First, a font display program is downloaded from a font server according to the connection information. Next, the font display program generates at least one first addressing information according to at least the web page URL and the font information. Next, the font display program tries to download the first subset font file from the font server according to the first addressing information. If the first subset font file is successfully downloaded, the first subset font file is interpreted to generate a first interpretation result, and the first interpretation result is displayed on a web page. Next, the font display program transmits the web page URL, the font code information, and the font information to the font server, wherein the font generation module of the font server determines whether at least one of the font information and the font code information corresponding to the web page URL has changed or not. If it does not exist, at least one corresponding second subset font file is generated according to the character code information and the font information, and a second addressing information is generated at least according to the webpage URL and the font information, and the second addressing information is sent to the browser. device end. Afterwards, the font display program downloads the second subset font file according to the second addressing information. Then, the second subset font file is interpreted to generate a second interpretation result, and the second interpretation result is displayed on a web page.

此外,上述浏览器端为装设有浏览器软件的一智能型手机、一平板计算机、一桌面计算机、或一笔记本电脑。In addition, the browser terminal is a smart phone, a tablet computer, a desktop computer, or a notebook computer equipped with browser software.

附图说明Description of drawings

图1所示为本发明的系统的实施例的示意图。Figure 1 shows a schematic diagram of an embodiment of the system of the present invention.

图2所示为本发明的于网页显示字体的方法的流程图。FIG. 2 is a flowchart of a method for displaying fonts on a webpage according to the present invention.

图3所示为本发明的网页的实施例。FIG. 3 shows an embodiment of a web page of the present invention.

图4A~图4F所示为网页源、浏览器端、与字体服务器间的信息递送关系的示意图。4A to 4F are schematic diagrams showing the information delivery relationship among the webpage source, the browser, and the font server.

图5所示为产生第二子集合字体档案的流程图。FIG. 5 shows a flow chart of generating the second subset font file.

图6A所绘示为字体显示程序的部分原始码。FIG. 6A shows part of the source code of the font display program.

图6B所绘示为字体产生模块的部分原始码。FIG. 6B shows part of the source code of the font generation module.

图6C所绘示为第一寻址信息与第二寻址信息。FIG. 6C shows the first addressing information and the second addressing information.

具体实施方式Detailed ways

请参照图1,图1所示为本发明的系统的实施例的示意图。在本实施例中,系统100包括一网页源110、一浏览器端120、与一字体服务器130,其特征在于网页源110、浏览器端120、与字体服务器130之间是借由因特网20而彼此通讯连接。网页源110是由至少一个(在本实施例为多个)伺服主机112所构成,这些伺服主机112可以置于一处或分散于多处。另外,浏览器端120在本实施例中为一桌面计算机,此桌面计算机包括一主机123与一屏幕124;在其他实施例中,浏览器端120也可以为一笔记本电脑、一智能型手机、一平板计算机、一All in One计算机或其他可以浏览网页的电子装置。此外, 字体服务器130也可由一个或多个伺服主机所构成,且字体服务器130包括一字体产生模块132与一原始字体数据库134,关于字体产生模块132与原始字体数据库134将在后文有详细的介绍。Please refer to FIG. 1 , which is a schematic diagram of an embodiment of the system of the present invention. In this embodiment, the system 100 includes a web page source 110 , a browser terminal 120 , and a font server 130 . communicate with each other. The web page source 110 is composed of at least one (in this embodiment, multiple) server hosts 112, and these server hosts 112 may be located in one place or distributed in multiple places. In addition, the browser 120 is a desktop computer in this embodiment, and the desktop computer includes a host 123 and a screen 124; in other embodiments, the browser 120 can also be a notebook computer, a smart phone, A tablet computer, an All in One computer or other electronic device that can browse the web. In addition, the font server 130 can also be composed of one or more server hosts, and the font server 130 includes a font generation module 132 and an original font database 134. The font generation module 132 and the original font database 134 will be described in detail later. introduce.

请同时参照图2A与图2B,图2A与图2B所示为本发明之于网页显示字体的方法的流程图。首先,实施步骤S110,使用者于浏览器端120将浏览器开启,在本实施例中,浏览器可以为Internet Explorer、Firefox、Opera Web Browser、或Google Chrome等。再来,实施步骤S120,之后通过超连接的方式连接到网页源,这样屏幕124就会显示出如图3所示的网页,图3所示的网页网址:http://www.abc.com.tw/。需注意的是,图3所示网页网址与网页内容仅是示意,不代表真实网址,且网页所示的内容也仅用于本申请案说明的用途。此外,如图4A所示,会从网页源110下载到浏览器端120的网页信息包括一连接信息、至少一字码信息、与至少一字体信息,其特征在于连接信息是指连接到字体服务器130的网址。另外,字码信息则例如是图3所示网页30中下拉式选单区32中所示的「时尚专区」、「女性用品」、「3C产品」、「日常用品」等,而字体信息则例如是指上述字码所使用的字体,例如为:POP1字体。Please refer to FIG. 2A and FIG. 2B at the same time. FIG. 2A and FIG. 2B are flowcharts of a method for displaying fonts on a webpage according to the present invention. First, in step S110, the user starts the browser on the browser terminal 120. In this embodiment, the browser may be Internet Explorer, Firefox, Opera Web Browser, or Google Chrome. Next, step S120 is implemented, and then the web page source is connected by means of a hyperlink, so that the screen 124 will display the web page shown in FIG. 3, and the web page URL shown in FIG. 3: http://www.abc.com. tw/. It should be noted that the web site address and web page content shown in FIG. 3 are for illustration only, and do not represent the real web site, and the content displayed on the web page is only used for the purpose described in this application. In addition, as shown in FIG. 4A , the web page information to be downloaded from the web page source 110 to the browser 120 includes connection information, at least one character code information, and at least one font information, wherein the connection information refers to connecting to a font server 130 URLs. In addition, the font code information is, for example, "Fashion Zone", "Women's Products", "3C Products", "Daily Products", etc. shown in the drop-down menu area 32 in the web page 30 shown in FIG. 3, and the font information is, for example, Refers to the font used by the above code, for example: POP1 font.

之后,实施步骤S130,如图4B所示,浏览器端120根据链接信息连接到字体服务器130后,便会从字体服务器130下载字体显示程序,此字体显示程序的部分原始码如图6A所示。再来,实施步骤S140,相关部分原始码于图6A的方框601中所圈选的区域,位于浏览器端120的字体显示程序会根据网页网址(即图3所示的网页网址:http://www.abc.com.tw/)与字体信息(例如有使用到pop1与pop2两套字体),而产生一第一寻址信息,此第一寻址信息如图6C中方框611所示。After that, step S130 is implemented. As shown in FIG. 4B , after the browser terminal 120 is connected to the font server 130 according to the link information, it will download the font display program from the font server 130 , and part of the source code of the font display program is shown in FIG. 6A . . Next, in step S140, the relevant part of the original code is in the area circled in the box 601 of FIG. 6A, and the font display program on the browser side 120 will display the font according to the web page URL (ie the web page URL shown in FIG. 3: http:/ /www.abc.com.tw/) and font information (for example, two sets of fonts pop1 and pop2 are used) to generate a first addressing information, which is shown as block 611 in FIG. 6C .

然后,实施步骤S150,如图4C所示,浏览器端120根据第一寻址信息从字体服务器130下载一第一子集合字体档案。在本实施例中,第一子集合字体档案较佳是只包括对应到该网页30中所示字码的字体,而非全部的字体。然后,实施步骤S160,浏览器端120的主机123会对第一子集合字体档案进行解译,以产生一第一解释结果,此第一解释结果会呈现于浏览器端120的网页上。详细地说,浏览器端120会根据第一子集合字体档案,而使网页上的字码(部分或全部)的字体会呈现对应到第一子集合字体档案的字体。Then, step S150 is performed. As shown in FIG. 4C , the browser terminal 120 downloads a first subset font file from the font server 130 according to the first addressing information. In this embodiment, the first subset font file preferably includes only the fonts corresponding to the font codes shown in the webpage 30, rather than all the fonts. Then, in step S160 , the host 123 of the browser 120 interprets the first subset font file to generate a first interpretation result, and the first interpretation result is displayed on the web page of the browser 120 . Specifically, the browser 120 will display fonts corresponding to the first subset font file for the fonts of the font code (part or all) on the webpage according to the first subset font file.

再来,实施步骤S170,如图4D所示,浏览器端120的字体显示程序会将网页网址与对应到该网页网址的字码信息及字体信息传送到字体服务器130。之后,实施步骤S210,字体产生模块132会判断对应到该网页网址的字码信息或字体信息是否有变动,或判断对应到该网页网址的字码信息或字体信息是否不存在。在本实施例中,字体产生模块132的部分原始码如图6B所示。Next, step S170 is performed. As shown in FIG. 4D , the font display program of the browser 120 transmits the webpage URL and the font code information and font information corresponding to the webpage URL to the font server 130 . After that, in step S210, the font generation module 132 determines whether the font code information or font information corresponding to the webpage URL has changed, or whether the font code information or font information corresponding to the webpage URL does not exist. In this embodiment, part of the source code of the font generation module 132 is shown in FIG. 6B .

更详细的说,请同时参照图1,在一般的情况下,字体服务器130与网页源110是由不同的业者所负责(但也可以同属相同的业者),网页源110的业者会向字体服务器130的业者订购服务,这样一来浏览器端120的消费者在浏览网页源110的时候就可在网页上看到字体服务器130所提供的特殊字体,其运作的相关程序已如步骤S110~步骤S170所示。例如,于步骤S150所提到的第一子集合字体档案便可为网页源110的业者向字体服务器130的业者订购服务后,字体服务器130便在字体服务器130预先储存的第一子集合字体档案。然而,网页源110的业者可能对该网页中的字体或字码进行修改,而导致于步骤S150所下载的第一子集合字体档案无法让网页正确呈现更改后的字体或字码。或者,网页源110的业者可能新增新的网页,当该新增网页首次被下载时,字体服务器130便不会存在与网址对应的字体信息与字码信息。当发生上述情况时,系统100便会执行步骤S230~步骤S260的程序,以产生新的子集合字体供使用,关于步骤S230~步骤S260将于下文详细说明。在本实施例中,若不存在上述的情况,则字体服务器130便不会产生新子集合字体(如步骤S220),字体显示程序会直接下载第一子集合字体档案显示,直到浏览器端120的使用者离开该网页30。In more detail, please refer to FIG. 1 at the same time. In general, the font server 130 and the web page source 110 are in charge of different companies (but they can also belong to the same company). 130 subscribes the service, so that the consumer of the browser 120 can see the special font provided by the font server 130 on the web page when browsing the web page source 110, and the related procedures of its operation are as shown in steps S110 to S110. shown in S170. For example, after the first subset font file mentioned in step S150 can be used by the provider of the webpage source 110 to order services from the provider of the font server 130 , the font server 130 stores the first subset font file in the font server 130 in advance. . However, the operator of the web page source 110 may modify the font or font code in the web page, so that the first subset font file downloaded in step S150 cannot correctly display the modified font or font code on the web page. Alternatively, the operator of the web page source 110 may add a new web page. When the new web page is downloaded for the first time, the font server 130 does not have the font information and font code information corresponding to the website address. When the above situation occurs, the system 100 will execute the procedures of steps S230 to S260 to generate a new subset font for use. The steps S230 to S260 will be described in detail below. In this embodiment, if the above situation does not exist, the font server 130 will not generate a new sub-collection font (as in step S220 ), and the font display program will directly download the first sub-collection font file and display it until the browser 120 of users leave the web page 30 .

请继续参照图2B,实施步骤S230,于字体服务器130中,字体产生模块132会产生一第二子集合字体及一第二寻址信息。详细地说,字体产生模块132根据浏览器端120所上传的字码信息与字体信息产生至少一对应的第二子集合字体文件,且也会依照网页网址与字体信息产生一第二寻址信息,此第二寻址信息如图6C中方框612所示。Please continue to refer to FIG. 2B , step S230 is implemented. In the font server 130 , the font generating module 132 generates a second subset font and a second addressing information. Specifically, the font generating module 132 generates at least one corresponding second subset font file according to the font code information and font information uploaded by the browser 120, and also generates a second addressing information according to the website URL and the font information. , the second addressing information is shown in block 612 in FIG. 6C.

之后,实施步骤S240,请同时参照图4E,字体服务器130将第二寻址信 息传送到浏览器端120。然后,实施步骤S250,请同时参照图4F,浏览器端120的字体显示程序130会根据第二寻址信息向字体服务器130下载第二子集合字体档案。再来,实施步骤S260,浏览器端120的主机123对第二子集合字体档案进行解译并产生一第二解译结果,并将第二解译结果呈现于网页30上。也就是说,原本呈现在网页30上的第一解释结果会被第二解释结果所覆盖。值得注意的是,在较佳实施例中,因网页会同时有多浏览者浏览,当有一位浏览者读取过该网页30并于字体服务器130上产生第二子集合字体档案后,其他浏览者即可在浏览时直接下载第二子集合字体档案做显示,无需再等待字体服务器130通讯处理后方能显示,故可以缩短处理和传送所需的时间,从而让浏览器端120的浏览者在无需太多等待时间的情况下享受多样化的字体。After that, step S240 is implemented, please refer to FIG. 4E at the same time, the font server 130 transmits the second addressing information to the browser 120. Then, in step S250, please refer to FIG. 4F at the same time, the font display program 130 of the browser 120 will download the second subset font file to the font server 130 according to the second addressing information. Next, in step S260 , the host 123 of the browser 120 interprets the second subset font file, generates a second interpretation result, and presents the second interpretation result on the webpage 30 . That is, the first interpretation result originally displayed on the web page 30 will be covered by the second interpretation result. It is worth noting that, in the preferred embodiment, since the webpage will be viewed by multiple viewers at the same time, after one viewer has read the webpage 30 and generates the second subset font file on the font server 130, other viewers will The user can directly download the second subset font file for display during browsing, and no longer need to wait for the font server 130 to communicate and process before display, so the time required for processing and transmission can be shortened, so that the browser of the browser 120 can Enjoy a wide variety of fonts without too much waiting time.

需注意的是,在其他的实施例中,当字体产生模块132判断网页网址对应的字体信息或字码信息无变动或已存在该网址对应的字体信息与字码信息时,也会执行步骤S230~步骤S260。不过,在此情况下,第二寻址信息会等于第一寻址信息。It should be noted that, in other embodiments, when the font generation module 132 determines that the font information or font code information corresponding to the website address has not changed or that the font information and font code information corresponding to the website address already exists, step S230 will also be executed. ~Step S260. However, in this case, the second addressing information would be equal to the first addressing information.

综上所述,在本发明中,浏览器端120会先进行下载第一子集合字体档案的程序并显示第一解释结果,之后字体服务器130上的字体产生模块132才会判断对应到该网页网址的字码信息或字体信息是否有变动,或判断对应到该网页网址的字码信息或字体信息是否不存在。也就是说,字体产生模块132在未进行判断前,浏览器端120就会显示第一解释结果,相较于先进行判断再显示,本发明所揭露的方法可以减少浏览器端120的使用者的等待时间。而且,就算第一子集合字体档案不是所欲的子集合字体档案,之后字体服务器130也会依据浏览器端120所上传的字码信息与字体信息产生正确的第二子集合字体文件。To sum up, in the present invention, the browser 120 will firstly download the first subset font file and display the first interpretation result, and then the font generating module 132 on the font server 130 will determine that the webpage corresponds to this webpage Whether the font code information or font information of the website has changed, or whether the font code information or font information corresponding to the website website does not exist. That is to say, the browser 120 will display the first interpretation result before the font generation module 132 makes a judgment. Compared with the first judgment and then display, the method disclosed in the present invention can reduce the number of users of the browser 120 waiting time. Moreover, even if the first subset font file is not the desired subset font file, the font server 130 will then generate the correct second subset font file according to the font code information and font information uploaded by the browser 120 .

以下,将对第二子集合字体档案的产生方式进行较详细的介绍。请参照图5,图5所示为产生第二子集合字体档案的流程图。Hereinafter, the generation method of the second subset font file will be introduced in more detail. Please refer to FIG. 5. FIG. 5 is a flowchart of generating the second subset font file.

首先,实施步骤S310,字体产生模块132判断及确认是否接收到来自浏览器端120所传送的字码信息与字体信息。接着,实施步骤S320,字体产生模块132从原始字体数据库134中寻找符合字体信息所要求的字体,并且由至 少一套字体数据所组成,其来源包括但不限于TTF(Truetype字体文件格式)、TTC(Truetype字体档案集格式)、OTF(opentype字体文件格式)、XML(将字体档案存成XML格式),其来源包含将字体转换成等同效果的数据格式等。First, in step S310 , the font generation module 132 determines and confirms whether the font code information and font information transmitted from the browser 120 are received. Next, in step S320, the font generation module 132 searches the original font database 134 for a font that meets the requirements of the font information, and is composed of at least one set of font data, the sources of which include but are not limited to TTF (Truetype Font File Format), TTC (Truetype font file set format), OTF (opentype font file format), XML (save font files in XML format), its sources include converting fonts into data formats with equivalent effects, etc.

再来,实施步骤S330,根据所接收到的字码信息(例如:“时尚专区”),字体产生模块132从原始字体数据库134中取得对应到字码信息中的每一字码的一字体图像。举例来说,当字体信息为:[王汉宗字体](未显示于图中),其特征在于“时”字的Unicode字码为6642,则寻找[王汉宗字体]中的字码索引值,得出字码索引值为18432,又寻找[王汉宗字体],以字码索引值18432寻找此字体图像位置,取得字体图像的内容,其余字“尚”、“专”、及“区”均可以同样方式取得其字体图像的内容,故不再赘述。Then, step S330 is implemented, according to the received font code information (for example: "fashion zone"), the font generation module 132 obtains a font image corresponding to each font code in the font code information from the original font database 134. For example, when the font information is: [Wang Hanzong font] (not shown in the figure), which is characterized in that the Unicode character code of the word "shi" is 6642, then look for the word code index value in [Wang Hanzong font], and obtain The index value of the font code is 18432, and then look for [Wang Hanzong font], find the position of the font image with the index value of the font code 18432, and obtain the content of the font image. The content of the font image is obtained, so it is not repeated here.

然后,实施步骤S340,产生字码信息与字体图像间的一索引表(未绘示)。之后,依据索引表便可以从原始字体数据库134中产生第二子集合字体档案。Then, step S340 is performed to generate an index table (not shown) between the character code information and the font image. Afterwards, the second subset font file can be generated from the original font database 134 according to the index table.

上述实施例仅是为了方便说明而举例,虽遭所属技术领域的技术人员任意进行修改,均不会脱离如权利要求书中所欲保护的范围。The above-mentioned embodiments are only examples for the convenience of description, although any modifications may be made by those skilled in the art, they will not deviate from the scope of protection as claimed in the claims.

Claims (9)

1. A method for displaying fonts on a web page, comprising:
downloading at least one webpage information from a webpage source corresponding to a webpage website to a browser end, wherein the webpage information comprises a connection information, at least one character code information and at least one character style information;
the browser downloads a font display program from a font server according to the connection information;
the font display program at least generates at least one first addressing message according to the web page website and the font information;
the font display program tries to download a first subset font file to the font server according to the first addressing information;
if the browser end successfully downloads the first subset font file, the browser end interprets the first subset font file and generates a first interpretation result, and the first interpretation result is presented on a webpage;
the font display program transmits the web page website, the character code information and the font information to the font server, and the font server comprises a font generation module;
the font generation module judges whether at least one of the font information and the character code information corresponding to the web site of the web page is changed or does not have the font information and the character code information corresponding to the web site, if so, the following steps are carried out:
the font generating module generates at least one corresponding second subset font file according to the character code information and the font information, and generates second addressing information at least according to the webpage website and the font information;
transmitting the second addressing information to the font display program of the browser end;
the font display program of the browser end downloads the second subset font file according to the second addressing information; and
the browser end interprets the second subset font file and generates a second interpretation result, and the second interpretation result is displayed on a webpage.
2. The method for displaying fonts on web pages according to claim 1, wherein the font server comprises an original font database, and the step of the font generation module generating the second subset font file comprises:
searching the font meeting the font information requirement from the original font database;
acquiring a font image corresponding to each character code in the character code information from the original font database according to the received character code information;
generating an index table between the character code information and the font image; and
generating the second subset font file from the original font database according to the index table.
3. The method as claimed in claim 1, wherein the second addressing information is equal to the first addressing information when the font generation module determines that any of the web address, the font information, and the font information has not changed.
4. The method as claimed in claim 1, wherein the second interpretation result overrides the first interpretation result when the font information and the font code information are changed.
5. A font server is communicatively connected to a browser end, the browser end includes at least one web page message, the web page message includes a connection message, at least one font message, and at least one font message, the browser end is connected to the font server according to the connection message, the font server includes:
a font display program, the font server is suitable for transmitting the font display program to the browser end according to the request of the browser end; and
a font generation module adapted to generate at least one subset font file, and the font server further includes at least one first subset font file corresponding to the first addressing information;
the method is characterized in that the font display program of the browser end generates at least one first addressing information according to the webpage address and the font information, the font display program tries to download a first subset font file from the font server according to the first addressing information, then the font display program of the browser end transmits the webpage address, the font information and the font information to the font server, if the font generation module judges whether at least one of the font information and the font information corresponding to the webpage address does not exist or changes, the following steps are carried out if the font generation module judges that at least one of the font information and the font information corresponding to the webpage address does not exist or changes:
generating at least one corresponding second subset font file according to the character code information and the font information, and generating second addressing information according to the web page address and the font information; and
transmitting the second addressing information to the font display program of the browser end;
after receiving the second addressing information, the font display program of the browser downloads the second subset font file from the font server according to the second addressing information and interprets the second subset font file to generate a second interpretation result, and the second interpretation result is displayed on a webpage.
6. The font server of claim 5, further comprising an original font database, the step of the font generation module generating the second subset font file comprising:
searching the font meeting the font information requirement from the original font database;
acquiring a font image corresponding to each character code in the character code information from the original font database according to the received character code information;
generating an index table between the character code information and the font image; and
generating the second subset font file from the original font database according to the index table.
7. The font server according to claim 5, wherein the second addressing information is equal to the first addressing information when the font generation module determines that the web address and the font information are not changed.
8. A browser end is suitable for being in communication connection with a font server and at least one webpage source, the webpage source comprises at least one webpage message, the webpage message comprises a connection message, at least one character code message and at least one font message, the font server comprises a font display program and a font generation module, the font generation module is suitable for generating at least one subset font file, the browser end is suitable for storing the webpage message downloaded by the webpage source and the font display program downloaded by the font server, and the browser end executes the following steps according to the webpage message and the font display program:
downloading a font display program from a font server according to the connection information;
the font display program at least generates at least one first addressing message according to the web page website and the font information;
the font display program attempting to download a first subset font file from the font server based on the first addressing information;
if the subset font file is successfully downloaded, the subset font file is interpreted to generate a first interpretation result, and the first interpretation result is presented on a webpage;
the font display program transmits the web page website, the font information and the font information to the font server, and is characterized in that the font generation module of the font server judges whether at least one of the font information and the font information corresponding to the web page website has change or does not exist, if so, at least one corresponding second subset font file is generated according to the font information and the font information, at least one second addressing information is generated according to the web page website and the font information, and the second addressing information is transmitted to the browser end;
the font display program downloads the second subset font file according to the second addressing information; and
the second subset font file is interpreted to generate a second interpretation result, and the second interpretation result is displayed on a webpage.
9. The browser-side of claim 8, wherein the browser-side is a smart phone, a tablet computer, a desktop computer, or a notebook computer equipped with browser software.
CN201610405117.7A 2016-05-17 2016-06-08 Method for accelerating display of Asian language family fonts on webpage, font server and browser end Active CN107391519B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW105115119 2016-05-17
TW105115119A TWI571751B (en) 2016-05-17 2016-05-17 Acceleration method for showing asian language fonts in pages, font server, and browsing end

Publications (2)

Publication Number Publication Date
CN107391519A CN107391519A (en) 2017-11-24
CN107391519B true CN107391519B (en) 2020-07-28

Family

ID=58608480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610405117.7A Active CN107391519B (en) 2016-05-17 2016-06-08 Method for accelerating display of Asian language family fonts on webpage, font server and browser end

Country Status (2)

Country Link
CN (1) CN107391519B (en)
TW (1) TWI571751B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201837738A (en) * 2017-03-30 2018-10-16 亞太戲網股份有限公司 Method of displaying font when changing the content of web page

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI231457B (en) * 2001-11-30 2005-04-21 Dynacomware Taiwan Inc System and method for converting an outline font into a glyph-based font
CN1581155A (en) * 2003-08-15 2005-02-16 英华达(上海)电子有限公司 Method for setting special Chinese character written-form in mobile hand-set
CN1677390A (en) * 2005-02-02 2005-10-05 广州网上新生活软件技术服务有限公司 Multiple typeface, size and model displaying system and method in embedded system
TWI285323B (en) * 2005-10-27 2007-08-11 Dynacomware Taiwan Inc A system and method for browsing web page documents containing Asian characters with multiple font faces
JP2008165264A (en) * 2006-12-26 2008-07-17 Dynacomware Taiwan Inc System and method for editing asia web page document using various font by through network
TW200907712A (en) * 2007-08-01 2009-02-16 Inventec Corp A system and a method for recording a font's size of the web pages in which display in the client
US7899808B2 (en) * 2007-10-26 2011-03-01 Yahoo! Inc. Text enhancement mechanism
US20110191671A1 (en) * 2010-01-29 2011-08-04 Extensis, Inc. Website Font Previewing
TWI427534B (en) * 2010-10-20 2014-02-21 Method for producing illustration of web page by illustration server
CN102467515A (en) * 2010-10-28 2012-05-23 亚太戏网股份有限公司 System for generating webpage totem by totem server

Also Published As

Publication number Publication date
CN107391519A (en) 2017-11-24
TW201810077A (en) 2018-03-16
TWI571751B (en) 2017-02-21

Similar Documents

Publication Publication Date Title
US10956531B2 (en) Dynamic generation of mobile web experience
US20190251143A1 (en) Web page rendering method and related device
CN102693280B (en) Webpage browsing method, WebApp framework, method and device for executing JavaScript, and mobile terminal
CN103605688B (en) Intercept method and intercept device for homepage advertisements and browser
US10015226B2 (en) Methods for making AJAX web applications bookmarkable and crawlable and devices thereof
CN103873918B (en) Image processing method, device and terminal
US20100218077A1 (en) Modifying a markup language document which includes a clickable image
US20140053061A1 (en) System for clipping webpages
CN103279517A (en) A method for displaying webpage content
CN113382083B (en) Webpage screenshot method and device
CN102541853A (en) A method and device for obtaining application information by using browser address bar
CN114491354B (en) A page generation method, device and computer readable storage medium
CN102023998B (en) Method and device for processing webpage so as to display on handheld equipment
CN110020304A (en) A kind of method and apparatus of loading page
CN102346738A (en) Customized web page processing device and method
CN111339461A (en) Page access method of application program and related product
CN114297544A (en) A remote browsing method, device, device and storage medium
CN102033926B (en) Page content processing method and device
CN106354792B (en) Webpage display method and device
TW200939730A (en) Method of browsing network information by hand-held communication device
CN106936727A (en) A kind of Webpage display process and device
CN113448649B (en) A server and method for loading home page data based on Redis
US20010056497A1 (en) Apparatus and method of providing instant information service for various devices
CN107391519B (en) Method for accelerating display of Asian language family fonts on webpage, font server and browser end
CN102279860B (en) Mobile phone network information navigation system and realizing method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant