Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for achieving font rendering based on FreeType font engine

A font and engine technology, applied in the field of information processing, can solve the problems of incomplete effect and poor vision, and achieve the effect of convenient display

Inactive Publication Date: 2015-01-21
WUXI FANTIAN INFORMATION TECH
View PDF1 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Many games use different methods to display fonts, but there is no unified regulation, but the display effect of these methods of drawing fonts is incomplete, visual difference and other defects

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 for achieving font rendering based on FreeType font engine
  • Method for achieving font rendering based on FreeType font engine
  • Method for achieving font rendering based on FreeType font engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0031] Such as figure 1 As shown, a method for realizing font drawing based on the FreeType font engine includes:

[0032] Steps to initialize the FreeType engine library and load the freetype.lib font library;

[0033] Create the FT_Face handle of the font, read the object of the freetype.lib font library, and process the read object into a bitmap;

[0034] as well as

[0035] Render the bitmap into the texture buffer, and then write the steps in the map.

[0036] Preferably, the step of creating the FT_Face handle of the font, reading the object of the freetype.lib font library, and converting the read object into a bitmap specifically includes,

[0037] The s...

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 method for achieving font rendering based on a FreeType font engine. The method comprises the steps that a FreeType engine library is initialized, and a freetype.lib font library is loaded; the FT_Face handle of a font is established, an object of the freetype.lib font library is read, and the read object is processed and transformed into a bitmap; the bitmap is rendered into a texture cache, and then is written into a chartlet. The font is rendered onto a texture through the FreeType, and then is displayed through the texture chartlet. The purpose of displaying Chinese characters quickly and conveniently is achieved.

Description

technical field [0001] The invention relates to the field of information processing, in particular to a method for realizing font drawing based on a FreeType font engine, that is, a method for rendering characters to textures and displaying them. Background technique [0002] At present, in software development, it is usually not necessary to consider the display of fonts. It is provided by the operating system as a basic function. However, with the development of computer systems, efficient, fast, and beautiful fonts have become a market demand, especially in electronic equipment. The application is closely related to people's life. In domestic online games, Chinese characters cover many languages ​​used in the game, but the graphics card in the game scene does not support Chinese characters. It needs to parse the fonts, and most engines provide font processing interfaces. . [0003] Many games use different methods to display fonts, but there is no unified regulation, but...

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): G06F9/44G06F17/30
Inventor 张翼
Owner WUXI FANTIAN INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products