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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 