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

Method and system for rendering fonts

A font and font library technology, applied in the field of rendering fonts, can solve the problems of cumbersome rendering process and low performance of displaying a large amount of text, and achieve high performance

Active Publication Date: 2012-06-20
SHANGHAI ZHANGMEN TECH
View PDF5 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The svg graphic description document contains complete font information to achieve consistent display on different platforms. To realize the display of svg fonts in flash files, it is necessary to render the svg fonts, that is, draw As3 scripts. The entire rendering process needs to be written by the user A complete set of text rendering engine, including graphic drawing based on glyph information, and a large amount of code writing for text-related copying, deleting, cutting, pasting, and selecting operations. The As3 script realizes the rendering of a large number of fonts, and the display performance of a large amount of text is not high

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
  • Method and system for rendering fonts
  • Method and system for rendering fonts
  • Method and system for rendering fonts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The method and system for rendering fonts proposed by the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0034] Such as figure 1 and figure 2 As shown, a method of rendering fonts, including:

[0035] Step S1, the As3 script parses the Svg document, finds the relevant nodes of the font, and extracts the font information in the relevant nodes;

[0036] Step S2, constructing DefineFont3 node, DefineFontName node, and DoAbc node including a font definition class according to the swf file format specification according to the font information, specifically, constructing the Abc code that can be parsed by the flash virtual machine with the As3 script can provide the exported font Define a class, the font definition class can be used externally by the font library;

[0037] Step S3, establish the association between the font definition class and the DefineFont3 and DefineFontName nodes ...

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 relates to a method and system for rendering fonts. The method comprises the steps of: analyzing an Svg document by an As3 script, finding out relative nodes of the fonts and extracting font information in the relative nodes; establishing a DefineFont3 node, a DefineFontName node and a DoAbc node including a font definition class on the basis of swf file format specifications according to the font information; establishing a relationship between the font definition class and the DefineFont3 node as well as a relationship between the front definition class and the DefineFontName node by a SymbolClass node, and establishing a swf font library on the basis of the relationships; loading the swf font library to the As3 script and sending the swf font library to a flash virtual machine for analysis, wherein the flash virtual machine generates embedded fonts; and appointing the embedded fonts and font names thereof by the As3 script. According to the method and system for rendering the fonts, distortionless rendering of the svg fonts is realized by the flash virtual machine under a flash platform, so that the application of the fonts is realized on the virtual machine level; the application of the corresponding fonts can be realized by using less codes by the As3 script; and therefore, compared with the conventional method for drawing the As3 scrip, the method for rendering the fonts, disclosed by the invention, has higher performance.

Description

technical field [0001] The invention relates to a method and system for rendering fonts. Background technique [0002] svg is a vector graphics description format, which contains the description of the font, and the font contains the glyph corresponding to the font. flash is a binary file format developed by Adobe, usually with the extension ".swf", mainly organized in the form of nodes (tags), supports Actionscript (As) scripting, and runs on the flash virtual machine (avm) It is widely used in Internet video, games, advertising and other fields. [0003] The svg graphic description document contains complete font information to achieve consistent display on different platforms. To realize the display of svg fonts in flash files, it is necessary to render the svg fonts, that is, draw As3 scripts. The entire rendering process needs to be written by the user A complete set of text rendering engine, including graphic drawing based on glyph information, and a large amount of ...

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
IPC IPC(8): G06T13/00
Inventor 王成
Owner SHANGHAI ZHANGMEN TECH