Unlock instant, AI-driven research and patent intelligence for your innovation.

Custom font self-adaption method and apparatus for browser

A custom, browser-based technology applied in the computer field to avoid compatibility issues

Active Publication Date: 2018-05-11
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problem of browser compatibility when obtaining the path of custom font files in the related art, the embodiment of the present invention provides a method and device for browser self-adaptive custom font

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Custom font self-adaption method and apparatus for browser
  • Custom font self-adaption method and apparatus for browser
  • Custom font self-adaption method and apparatus for browser

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0031] In order to facilitate the understanding of the embodiments of the present invention, some nouns involved in the embodiments of the present invention are first explained:

[0032] Typeface: A font class used to define fonts, which represents a font, such as Song, Kai, Hei, etc. Typeface defines FontID and font style (English: style) attributes, and the style attribute can be normal, bold, and italic or bold italic.

[0033] Font: A font with a style, which can be considered as a subset of fonts. For example, when the font is Arial, Font can be Normal Arial, Bold Arial, Italic Arial or Bold Italic Arial.

[0034] FontID: The logo of the Font, which is globally unique. For example, the FontID of the bold Song typeface is differen...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a custom font self-adaption method and apparatus for a browser, and belongs to the technical field of computers. During browser initialization, a font file stream of a custom font which is being used currently by a system is obtained by reflection, a font class is built by utilizing the font file stream, and a font name of the font file stream is put in a head position of afont name queue; and when the browser loads a webpage, characters in the webpage are displayed by preferentially utilizing the font class of the custom font according to the position of the font nameof the custom font. The compatibility problem of the browser during acquisition of a path of a custom font file in related technologies is solved; the compatibility problem can be effectively avoided; and the self-adaptation of the browser to the custom font can be realized in devices provided by different manufacturers.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for browser self-adaptive custom fonts. Background technique [0002] Different users have different requirements for fonts in the device, and users can modify the fonts used by the device and system according to their own preferences. After the system font of the device is modified, in order to adapt to the modified custom font, the browser needs to initialize the font class library of the browser kernel after opening it. Wherein, the font class library is used to store font classes required when rendering and displaying web page characters. [0003] When initializing the font class library, the browser determines the path of the font file of the custom font of the current device according to the path of the font file of the custom font preset by each device manufacturer, and obtains it according to the path of the font file of the custom font The font fi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/9577
Inventor 袁启耀
Owner TENCENT TECH (SHENZHEN) CO LTD