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

Method and system for displaying characters

A text and display technology, applied in the computer field, can solve the problems of picture files occupying a lot of memory, unable to load, unable to display text, etc., to achieve the effect of reducing operating memory and improving flexibility

Active Publication Date: 2013-03-27
TENCENT TECH (BEIJING) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above method of displaying text has many problems. One is that image files take up a lot of memory. If there are a lot of text to be displayed and the memory is too small, the program may not run efficiently or even load.
Second, it is impossible to display previously unknown text, such as user input, text obtained from the network, etc.

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 displaying characters
  • Method and system for displaying characters
  • Method and system for displaying characters

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Such as figure 1 As shown, it is a flowchart of a method for displaying text in an embodiment. The method comprises the steps of:

[0026] S10: Obtain the dot matrix information of the text to be displayed according to the built-in font file storing the dot matrix information of the text and the general character table storing the position information of the text in the font file.

[0027] The dot matrix information of the text records the state information of the pixels in the display area when the text is formed. The state information indicates that there are two states of strokes or no strokes on the pixel, so the state information of each pixel can be represented by a binary bit (bit ) to store, and use "0" and "1" to represent two different states respectively. For example, for a text with a size of 16*16 pixels, 256 bits are required to store the dot matrix information of the text. Such as figure 2 Shown is a schematic diagram of using dot matrix information ...

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 utility model relates to a method for displaying characters, which belongs to the technical field of computers, and comprises the steps as follows: lattice information of characters to be displayed is obtained according to a typeface file used for keeping lattice information of characters in a program and a whole character table keeping the position information of the characters in the typeface file; and the characters are displayed according to the lattice information of the characters to be displayed. Besides, the invention also relates to a system for displaying characters according to the method. In the method and the system, a program developer can use self-defined typefaces through using the built-in typeface file, and the flexibility on the aspect of using different styles of typefaces is improved. Moreover, compared with the characters displayed through pictures, displaying the characters by using the lattice information of the characters can greatly reduce a running memory, and can display the unknown typefaces in advance in real time according to the typeface file.

Description

【Technical field】 [0001] The invention relates to the field of computers, in particular to a method and system for displaying text. 【Background technique】 [0002] In some small devices, especially in handheld mobile terminals, J2ME is used as the application platform. J2ME (Java 2 Micro Edition) is a java application platform widely used in small devices launched by SUN Company. The application program based on this can greatly expand the functions of handheld mobile terminals. [0003] With the increase of application programs, personalized appearance and operation interface also become important, and one of the more important aspects is the use of personalized fonts. [0004] Traditional J2ME applications can only use the system fonts provided by the terminal device during development. When displaying text, the fonts of the terminal system are used to make picture files, and the text is displayed by loading pictures when the application is running. [0005] The above m...

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 Patents(China)
IPC IPC(8): G06F3/14G09G5/00
Inventor 周建忠
Owner TENCENT TECH (BEIJING) 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