Method and device for displaying fonts
The invention provides a font display method and device, relates to the technical field of computers, and aims to compress font files, shorten Web interface loading time and improve user experience. The method comprises the following steps: acquiring a cascading style sheet CSS file of a site; obtai...
Gespeichert in:
Hauptverfasser: | , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a font display method and device, relates to the technical field of computers, and aims to compress font files, shorten Web interface loading time and improve user experience. The method comprises the following steps: acquiring a cascading style sheet CSS file of a site; obtaining an initial file of a user-defined font from the CSS file; obtaining information for interface display from the initial file, and obtaining a target file of a user-defined font; sending the target file to a server; and receiving the picture file from the server, and loading the picture file. Wherein the picture file is obtained according to text information and picture information in the information for interface display.
本申请提供一种字体展现的方法及装置,涉及计算机技术领域,能够压缩字体文件,缩短Web界面加载时间,提升用户体验。该方法包括:获取站点的层叠样式表CSS文件;从CSS文件中获取自定义字体的初始文件;从初始文件中获取用于界面展现的信息,得到自定义字体的目标文件;向服务器发送目标文件;接收来自服务器的图片文件,加载图片文件。其中,图片文件是根据用于界面展现的信息中的文本信息和图片信息得到的。 |
---|