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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com