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

Method and device for rendering characters

A text and character technology, applied in the field of text rendering methods and devices, can solve problems such as slow D3D speed, and achieve the effect of improving a good experience

Active Publication Date: 2013-07-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a text rendering method, which aims to solve the problem that the existing D3D is too slow when rendering text

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 device for rendering characters
  • Method and device for rendering characters
  • Method and device for rendering characters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] figure 1 A text rendering method provided by the first embodiment of the present invention is shown. The method provided by this embodiment includes:

[0037] Step S11, after receiving the text rendering request, judge whether the texture memory corresponding to the text rendering request has been created, if not, execute step S12, and if it has been created, execute step S14.

[0038] In this embodiment, the texture memory is used to store the text rendered to the texture, and the size of the created texture memory is determined by the size of the text rendering area.

[0039] Step S12, creating a string key for texture memory and text rendering, and searching for a corresponding texture cache entry according to the string key.

[0040] In this embodiment, the string key for text rendering is composed of the text itself and the drawing attributes. The generation of the string key is based on the coarse-grained method of the entire string. Of course, the string key can...

Embodiment 2

[0046] figure 2 It shows a text rendering method provided by the second embodiment of the present invention. This embodiment mainly adds step S24 on the basis of the first embodiment, which is described in detail as follows:

[0047] Wherein, Step S21, Step S22, and Step S23 are the same as Step S11, Step S12, and Step S13 in Embodiment 1, and will not be repeated here.

[0048] Step S24, record the texture attribute corresponding to the text rendering request, the texture attribute includes the creation time of the texture memory, the corresponding string key and the texture cache entry.

[0049] In this embodiment, record the creation time of the texture memory corresponding to the text rendering request, the string key corresponding to the text rendering request, and texture attributes such as texture cache entries, so that the text that needs to be rendered with this text rendering request appears next time For the same text, directly call the string key and texture cach...

Embodiment 3

[0052] image 3 A text rendering method provided by the third embodiment of the present invention is shown. This embodiment mainly describes step S13 of the first embodiment in more detail:

[0053] Wherein, step S31 and step S32 are the same as step S11 and step S12 in the first embodiment, and will not be repeated here.

[0054] Step S33 , judging whether the searched texture cache entry exists, if not, execute step S34 , otherwise execute step S35 .

[0055] In this embodiment, after searching the texture cache entry corresponding to the string key in the texture cache entry mapping table according to the string key, it is judged whether the desired texture cache entry is found.

[0056]Step S34, create a corresponding texture cache entry, and add the created texture cache entry into the texture cache entry mapping table, and then return to step S33.

[0057] In this embodiment, if no corresponding texture cache entry is found in the texture cache entry mapping table, a t...

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 is applicable to the field of image processing, and provides a method and a device for rendering characters. The method comprises the following steps that whether a texture memory corresponding to a character rendering request is established is judged after the character rendering request is received; if the texture memory is not established, the texture memory and a character string key rendered by the characters are created; a texture cache table entry corresponding to the character string key is searched according to the character string key; the characters corresponding to the character rendering request are rendered to a texture according to the searched texture cache table entry; the characters rendered to the texture are stored in the established texture memory; and if the texture memory is established, the texture stored by the texture memory is rendered onto a screen. According to the method and the device, the characters are rendered to the texture; the texture is rendered onto the screen; a D3D (Dynamic 3-dimensional Display) renders the texture onto the screen by using hardware acceleration, so that fps (frames per second) can be kept at a higher level; and good experience of a user is improved.

Description

technical field [0001] The invention belongs to the field of image processing, in particular to a text rendering method and device. Background technique [0002] In the computer, sometimes in order to display beautifully or highlight some text, it is necessary to render the text. [0003] The existing Direct 3D (D3D for short) usually adopts a graphics device interface (graphical device interface, GDI) rendering method when rendering text. This rendering method is relatively slow and will reduce the number of frames per second (fps) displayed. In the case of a large amount of text to be drawn, inefficient text rendering will inevitably drag down the overall rendering performance and affect the user's experience. Good experience. Contents of the invention [0004] An embodiment of the present invention provides a text rendering method, aiming at solving the problem that the existing D3D renders text too slowly. [0005] The embodiment of the present invention is achieved...

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): G06T15/00G06T19/00
Inventor 高峰潘昱存王佳傅斌
Owner TENCENT TECH (SHENZHEN) CO LTD
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