Unlock instant, AI-driven research and patent intelligence for your innovation.

Arabic displaying method for POS platform

An Arabic language and display method technology, which is applied to cash registers, instruments, etc., can solve the problems of inability to display Arabic non-monospace fonts, poor compatibility, and complicated operation, so as to improve user interface experience, good display effect, and operation. simple effect

Active Publication Date: 2014-01-01
SHENZHEN XINGUODU PAYMENT TECH CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Bitmap fonts only store bitmap information of matching size, and cannot change size, thickness or inclination freely, otherwise it will cause font distortion
Therefore, when it is necessary to display fonts with different sizes, thicknesses or inclinations, all the font display modules in the POS platform need to be modified or the corresponding font library support is required, which is very complicated to operate and the display effect is poor.
In addition, dot matrix fonts cannot set a separate size for a single font, and can only display monospaced fonts but cannot display non-monospaced fonts such as Arabic, which is not universal and has poor compatibility

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
  • Arabic displaying method for POS platform
  • Arabic displaying method for POS platform
  • Arabic displaying method for POS platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0089] This embodiment mainly introduces the algorithm flow chart of the Arabic consecutive writing and deformation rules of the present invention.

[0090] The present invention processes the character string [length] to be displayed, mainly referring to transforming and transforming the rules of continuous writing, wherein the priority of continuous writing rules is higher, and length is the length of the string to be displayed.

[0091] refer to Figure 8 , the algorithm flow of the Arabic ligature and deformation rules of the present invention is as follows:

[0092] (1) Transform according to the ligature rules, and transform the character string[i] to be ligatured, 2≤i≤length.

[0093] For string[i], if string[i-1] exists and string[i+1] belongs to the ligature character set, then string[i] needs ligature conversion, otherwise it does not need ligature conversion, and the ligature conversion of string[i] Divided into the following two situations:

[0094] If string[i-...

Embodiment 2

[0105] This embodiment mainly introduces how to implement font thickness adjustment.

[0106]The display effect is undoubtedly the most important in the pos platform interface. The reason why dot matrix fonts have been adopted by various companies on the pos platform is that the dot matrix fonts can be fine-tuned by themselves to achieve a nearly perfect display effect. . The vector font uses a mathematical matrix transformation algorithm. For high-resolution screens, the display effect is good, but for the lower-resolution pos platform, it needs to be adjusted to achieve a good display effect.

[0107] The thickness adjustment of the font can be realized in the following two situations:

[0108] First, when the screen resolution is high, you can configure thick and thin fonts through rendering methods, that is, use 256 grayscale or monochrome rendering methods to extract bitmap information of characters, so that fonts can achieve different thicknesses. The rendering configu...

Embodiment 3

[0112] This embodiment mainly introduces the typesetting layout of fonts.

[0113] After extracting the character bitmap information through the freetype library, it is necessary to use the measurement information to arrange the strings according to the baseline, otherwise the horizontal arrangement will be misplaced if displayed directly.

[0114] Suppose we need to start displaying the string at (x_topleft, y_topleft), which is the reference point on the horizontal display coordinates. For each character char, the bitmap information bitmap extracted by the freetype library needs to use the metric information as characters The distance from the uppermost point of the bitmap to the top layer of the area where the bitmap is located and the distance from the baseline to the top layer of the area are ascender. In order to realize the horizontal alignment of characters on the reference line, the starting position of the vertical pixel point of character string[i] is handled as fol...

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 an Arabic displaying method for a POS platform. The Arabic displaying method includes the first step of adopting a freetype library to build objects of a vector font library and reading font files to obtain an Arabic local code of a character string to be displayed; the second step of converting the obtained local code to Unicode; the third step of calculating the total length of the character string to be displayed after code conversion, and then determining an initial point of a display position according to the calculated total length and the total length of a screen; the fourth step of carrying out conversion processing on the character string to be displayed after the code conversion according to Arabic ligature and deformation rules so as to obtain a new character string; the fifth step of extracting bitmap information of all characters in the new character string and displaying the extracted bitmap information on the screen according to the determined initial point. According to the Arabic displaying method, vector fonts are introduced to be displayed. The Arabic displaying method has the advantages that operation is easy, display effect and compatibility are good and universality is strong, and can be widely applied to the field of font displaying.

Description

technical field [0001] The invention relates to a font display method, in particular to an Arabic display method for a POS platform. Background technique [0002] Glossary: [0003] POS: point of sale; [0004] Non-monospaced fonts: Fonts like Arabic where each character has a different width. [0005] Bit-matrix fonts have the advantages of being more flexible in use, occupying less space and displaying faster. At present, POS machines in the field of financial payment generally use dot matrix fonts as display interfaces. With the development of the industry and the increase of customer target groups, the display requirements for the POS platform are also getting higher and higher. It is required that the POS platform can not only display italics, fonts of different sizes and different thicknesses, but also display non-text characters such as Arabic. display in a monospaced font. [0006] Bitmap fonts only store bitmap information of matching size, and cannot change si...

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): G07G1/14
Inventor 董凯
Owner SHENZHEN XINGUODU PAYMENT TECH CO LTD