Method and device for processing character pitch

A technology of character spacing and processing method, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve the problems of affecting the display effect of characters, inconsistency in the width of adjacent character spacing, and increasing the amount of code, so as to improve the running performance. , Good display effect, the effect of reducing the number of cycles

Inactive Publication Date: 2011-07-06
BEIJING AEONMED
View PDF0 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The disadvantage of the first method is that the amount of code is increased, and when new characters need to be added, new font data must be written into the code and recompiled; the second method does not have the problem of the first method, but the font file The dot matrix corresponding to the font data is all of the same width. If it is directly used for display, it

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 processing character pitch
  • Method and device for processing character pitch
  • Method and device for processing character pitch

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0023] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0024] figure 1 A method for processing character spacing according to an embodiment of the present invention is shown, including the following steps:

[0025] S102 , obtaining the dot matrix width of the character in the font file; the character on the graphical interface is usually displayed according to the dot matrix of the character in the font file, and the dot matrix is ​​an array composed of m×n pixels. The number of dot matrixes depends on the quality of the displayed characters and the size of the character display window. For example, the dot matrix of a certain font data is 16×16, that is, its dot matrix width is 16.

[0026] S104: Calculate the actual width occupied by the character in the dot matrix; in the dot matrix, use the virtual and real or display mark of each pixel to represent the outline of the character....

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 provides a method and device for processing character pitch. The method comprises the following steps of: obtaining dot matrix widths of characters in a word bank file; calculating actual widths occupied by characters in a dot matrix; determining the dot matrix widths of the characters according to the actual widths of the characters and a required character pitch width; and displaying the characters according to the dot matrix widths of the characters. By obtaining the actual widths occupied by the characters in the corresponding dot matrix in the invention, the display pitch of the characters on a graphical interface is set on the basis of the occupied actual width thereof, thereby the problem of unequal widths of adjacent characters in the display of the graphical interface because the characters occupy different actual widths in the corresponding dot matrix can be solved, and better display effect is achieved.

Description

technical field [0001] The invention relates to the field of character display processing, in particular to a method and device for processing the display of character spacing in a graphical interface. Background technique [0002] At present, on the display devices of equipment such as anesthesia machines, when the graphical interface displays character information, there are generally two methods for obtaining font data. One is: write the font data of the characters to be displayed into the code in advance, press the code The font data in the display character; the other is: read the font data of the corresponding character from the ready-made font file, and then display the character according to the dot matrix of the font data. [0003] The disadvantage of the first method is that the amount of code is increased, and when new characters need to be added, new font data must be written into the code and recompiled; the second method does not have the problem of the first 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
IPC IPC(8): G06F17/21
Inventor 丛玉孟
Owner BEIJING AEONMED
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products