Multi-language display method and system and wearable intelligent device
By pre-caching multiple font sub-files and combining a typesetting engine and a lightweight graphics library, text is segmented and reformatted, solving the problems of insufficient multilingual support and excessive resource consumption in multilingual font rendering in RTOS, and achieving multilingual compatibility and fast rendering.
Patent Information
- Application Number
- CN202511097104.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-06
- Publication Date
- 2025-11-21
AI Technical Summary
Existing RTOSs suffer from insufficient multilingual support, excessive resource consumption, and imperfect switching and rollback strategies in multilingual font rendering, leading to problems such as line break errors, font misalignment, and slow rendering speed.
By pre-caching multiple font sub-files, combining a typesetting engine and a lightweight general-purpose graphics library, the text is segmented and reformatted, the typesetting information is dynamically determined, and either bitmap or vector font drawing methods are selected for rendering. At the same time, a dynamic cache management mechanism is adopted to select the font mode based on language priority and system performance.
It achieves multi-language compatibility, avoids problems such as line break errors, font misalignment, and slow rendering speed, reduces resource consumption, and improves loading efficiency and real-time system response.
Smart Images

Figure CN120994291A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer data processing technology, and further to a multilingual display method and system, and a wearable smart device. Background Technology
[0002] Currently, smart devices typically employ a Real-Time Operating System (RTOS) architecture, such as smartwatches, automotive dashboards, and industrial human-machine interfaces. This architecture meets the real-time performance and low-power consumption requirements of smart devices. However, RTOSs often rely on native User Interface (UI) frameworks or single font libraries for multilingual font rendering. This dependency leads to insufficient multilingual support in RTOSs, resulting in line break errors and font misalignment when rendering mixed text. Summary of the Invention
[0003] To address the aforementioned technical issues, this application provides a multilingual display method and system, as well as a wearable smart device, which can achieve multilingual compatibility while avoiding problems such as line break errors, character misalignment, or extremely slow rendering speeds that occur when processing mixed text rendering.
[0004] Firstly, this application provides a multilingual display method, comprising: segmenting the content of the displayed text based on the language types of multiple pre-cached font sub-files; reformatting all segments based on a typesetting engine and outputting the glyph outline information of all characters, including deformation and ligatures; determining typesetting information based on the line width limit of a lightweight general-purpose graphics library, including line breaks at the end of lines, word spacing, and adaptive scaling; and selecting a bitmap font rendering method / vector font rendering method for rendering based on the typesetting information and the glyph outline information of all characters.
[0005] The above multilingual display method segments the displayed text by pre-caching the language types of various font sub-files. Combined with a typesetting engine, the segmented text is reformatted, and glyph outline information including deformations and ligatures is output, supporting languages with complex scripts. Simultaneously, based on the line width limitations of a lightweight general-purpose graphics library, typesetting information, including line breaks, word spacing, and adaptive scaling, is dynamically determined to ensure optimal layout and display effects for text on different screen sizes or resolutions. Finally, based on the typesetting and glyph outline information, either bitmap or vector font rendering is selected for rendering. This method achieves multilingual compatibility while avoiding problems such as line break errors, glyph misalignment, or extremely slow rendering speeds that occur when handling mixed text rendering.
[0006] One implementation also includes: when an uncached character is encountered during rendering, the uncached character is determined from multiple font subfiles according to a preset language priority; if no uncached character exists in the multiple font subfiles, a default placeholder is used to replace the uncached character.
[0007] The above multilingual display method, when encountering uncached characters during rendering, can determine the uncached characters from multiple font subfiles according to preset language priorities. If no uncached characters are found in multiple font subfiles, a default placeholder is used to replace the uncached characters. This method can use other fonts to complete rendering in a very short time when certain niche character sets are missing or not yet loaded, avoiding problems such as blank characters, garbled text, or display lag.
[0008] One implementation also includes: splitting the complete font file into multiple font sub-files according to the language type; selecting the font mode based on system performance, including bitmap fonts or vector fonts; and loading the system language file from the multiple font sub-files when the system starts up.
[0009] The above multilingual display method splits the complete font file into multiple font sub-files according to language type, which effectively reduces resource consumption and cache usage, and improves loading efficiency and real-time system response. Then, selecting the font mode based on system performance avoids idle or excessive system resources. At system startup, the system's main language text can be loaded immediately without waiting for the complete font to load, further improving loading efficiency and real-time system response.
[0010] In one implementation, the method further includes: based on the user's usage frequency, loading the font sub-files whose usage frequency is greater than a threshold into the dynamic cache when the system starts; and removing the font sub-file from the dynamic cache when the usage frequency of a font sub-file in the dynamic cache is not greater than the threshold.
[0011] The multilingual display methods described above, through a dynamic caching management mechanism, ensure that the dynamic cache stores only a limited number of font sub-files. Specifically, when the usage frequency of a font sub-file exceeds a threshold, it is loaded into the dynamic cache; when its usage frequency is below the threshold, it is removed from the dynamic cache. This frees up memory, improves loading efficiency, and enhances system real-time responsiveness.
[0012] Secondly, this application also provides a multilingual display system, including: a typesetting module for segmenting the content of the displayed text based on the language types of multiple pre-cached font sub-files; a typesetting module for reformatting all segments based on a typesetting engine and outputting the glyph outline information of all characters, including deformation and ligatures; a typesetting module for determining typesetting information based on the line width limit of a lightweight general-purpose graphics library, including line breaks at the end of lines, word spacing, and adaptive scaling; and a rendering module for selecting a bitmap font rendering method / vector font rendering method based on the typesetting information and the glyph outline information of all characters.
[0013] In one implementation, the typesetting module is used to determine the uncached characters from multiple font subfiles according to the preset language priority when encountering uncached characters during the rendering process; if the uncached characters are not found in the multiple font subfiles, the typesetting module uses a default placeholder to replace the uncached characters.
[0014] One implementation also includes: a management module for splitting the complete font file into multiple font sub-files according to the language type; a management module for selecting the font mode based on system performance, the font mode including bitmap fonts or vector fonts; and a management module for loading the system language file from the multiple font sub-files when the system starts.
[0015] In one implementation, a management module is used to load font sub-files whose usage frequency is greater than a threshold into the dynamic cache when the system starts, based on the user's usage frequency; the management module is also used to remove a font sub-file from the dynamic cache when there is a font sub-file in the dynamic cache whose usage frequency is not greater than the threshold.
[0016] Thirdly, this application also provides a wearable smart device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of any of the above-described multilingual display methods.
[0017] In one implementation, wearable smart devices include smartwatches.
[0018] Compared with the prior art, the present invention has at least one of the following beneficial effects:
[0019] 1. By pre-caching the language types of multiple font sub-files, the displayed text is segmented. Combined with a typesetting engine, the segmented text is reformatted, and glyph outline information including deformations and ligatures is output, supporting languages with various complex scripts. Simultaneously, based on the line width limitations of a lightweight general-purpose graphics library, typesetting information, including line breaks, word spacing, and adaptive scaling, is dynamically determined to ensure optimal layout and display effects for text on different screen sizes or resolutions. Finally, based on the typesetting and glyph outline information, either bitmap or vector font rendering methods are selected for rendering. This method achieves multi-language compatibility while avoiding problems such as line break errors, glyph misalignment, or extremely slow rendering speeds that occur when handling mixed text rendering.
[0020] 2. When encountering uncached characters during rendering, the uncached characters can be determined from multiple font subfiles according to preset language priorities. If no uncached characters are found in multiple font subfiles, a default placeholder is used to replace the uncached characters. This method can use other fonts to complete rendering in a very short time when certain niche character sets are missing or not yet loaded, avoiding problems such as blank characters, garbled text, or display lag.
[0021] 3. Splitting a complete font file into multiple sub-files based on language type effectively reduces resource consumption and cache usage, improving loading efficiency and real-time system responsiveness. Then, selecting the font mode based on system performance avoids idle or excessive system resources. At system startup, the system's primary language text can be loaded immediately without waiting for the complete font to load, further improving loading efficiency and real-time system responsiveness.
[0022] 4. The dynamic cache management mechanism allows the dynamic cache to store only a limited number of font sub-files. That is, when the usage frequency of a font sub-file exceeds a threshold, it is loaded into the dynamic cache; when the usage frequency is below the threshold, it is removed from the dynamic cache, thereby freeing up memory, improving loading efficiency, and enhancing system real-time responsiveness. Attached Figure Description
[0023] The preferred embodiments will now be described in a clear and easy-to-understand manner, in conjunction with the accompanying drawings, to further explain the above-mentioned characteristics, technical features, advantages, and implementation methods of the present invention.
[0024] Figure 1 An architecture diagram of an RTOS provided in an embodiment of this application is shown;
[0025] Figure 2 A flowchart of a multilingual display method provided in an embodiment of this application is shown. Detailed Implementation
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the specific implementation methods of the present invention will be described below with reference to the accompanying drawings. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings and other implementation methods can be obtained based on these drawings without any creative effort.
[0027] To keep the drawings concise, each figure only schematically shows the parts relevant to the invention, and these do not represent the actual structure of the product. Furthermore, to facilitate understanding, in some figures, only one of components with the same structure or function is schematically depicted, or only one is labeled. In this document, "one" not only means "only one," but can also mean "more than one."
[0028] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0029] In this document, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to the internal communication between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0030] Furthermore, in the description of this application, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0031] It should be noted that the above embodiments can be freely combined as needed. The above are merely preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
[0032] RTOS plays a crucial role in smart devices. Through efficient resource management and task scheduling, it ensures that smart devices can complete critical tasks within strict time constraints, thus meeting the dual requirements of real-time performance and low power consumption for devices such as smartwatches, automotive instruments, and industrial HMIs. However, existing technologies have significant limitations in multilingual font rendering for RTOS.
[0033] For example, there is insufficient multilingual support: for complex scripting languages such as Arabic and Hindi, most embedded font rendering solutions on the market can only "cram" in a single language, lacking a unified typesetting subsystem. When processing mixed text rendering, problems such as line break errors, font misalignment, or extremely slow rendering speed often occur, seriously affecting the display effect and user experience in multilingual environments. Another example is excessive resource consumption: RTOS devices have limited memory. If the entire font set is loaded directly, it will not only be huge in size but also lead to slow loading and excessive cache usage, affecting the system's real-time responsiveness. This conflicts with the requirements of smart devices for low power consumption and efficient resource utilization. Furthermore, the switching and rollback strategies are inadequate: existing solutions rely heavily on static priority or equivalent rollback when switching between multiple languages. Once a missing character or missing level font is encountered, it cannot respond quickly, causing display stuttering or even blank characters.
[0034] In view of this, the embodiments of this application provide an innovative multilingual display technology solution, which aims to solve the problems of insufficient multilingual support, excessive resource consumption, and imperfect switching and rollback strategies in the prior art.
[0035] The following explanation is based on the accompanying diagram:
[0036] Reference Appendix Figure 1 This illustrates an architecture diagram of an RTOS provided in an embodiment of this application. Figure 1 As shown, RTOS (reference appendix) Figure 1 The real-time operating system 100 includes an application layer 110 and a font rendering engine library 120. The font rendering engine library 120 includes a management module (or font management module), a typesetting module (or typesetting engine module), and a rendering module (or rendering interface adaptation module).
[0037] The application layer 110 is used to call the Application Programming Interface (API), such as drawing text, setting the main language, and updating text content. The management module in the font rendering engine library 120 is responsible for font loading, generating font sub-files (or subset files), generating cache files, and managing font cache, thereby reducing resource consumption and cache usage, and improving loading efficiency and real-time system response. The typesetting module is used for text content segmentation, inline typesetting and glyph replacement, character rollback, etc., enabling multi-language compatibility and avoiding problems such as line break errors, glyph misalignment, or extremely slow rendering speed when processing mixed text rendering. The rollback mechanism ensures that when certain niche character sets are missing or not yet loaded, other fonts can be used to complete rendering in a very short time, avoiding blank characters, garbled text, or display lag. The compatible languages include, but are not limited to, Arabic (RTL), Hindi (vowel combination, compound symbols), Thai (ligature rules), Latin, Chinese, Japanese, Korean, Slavic languages, Greek, and Hebrew. The rendering module is used to render raster and vector fonts, and to implement a lightweight general-purpose graphics library (LVGL) API wrapper.
[0038] Reference Appendix Figure 2 The diagram illustrates a flowchart of a multilingual display method provided in an embodiment of this application. This method is applied to the RTOS of the aforementioned embodiments, such as... Figure 2 As shown, it includes:
[0039] S200 segments the content of the displayed text based on the language types of multiple pre-cached font subfiles.
[0040] S210, based on the typesetting engine, re-layouts all segments and outputs the glyph outline information of all characters, including deformations and ligatures.
[0041] S220 determines the typesetting information based on the line width limit of a lightweight general-purpose graphics library. The typesetting information includes line break at the end of the line, word spacing, and adaptive scaling.
[0042] S230, based on the layout information and the glyph outline information of all characters, selects either the bitmap font drawing method or the vector font drawing method for rendering.
[0043] Multiple font sub-files are subsets of the complete font file, containing only the necessary characters. These sub-files are obtained by splitting the complete font file using a toolchain. These sub-files include, but are not limited to, JIS X 0208 Level 1 Chinese Characters, commonly used Korean characters from the "Basic Chinese Character List for Education," and commonly used Chinese characters. The complete font file can be in OTF (OpenType Font) or TTF (TrueType Font) format.
[0044] The bitmap font rendering method involves parsing the font configuration information using an improved FreeType font engine, calling the drawing API provided by a lightweight general-purpose graphics library, converting the bitmap data into frame data, and directly writing it into the frame buffer to complete the rendering.
[0045] The vector font rendering method involves enabling the FreeType font engine and a typesetting engine for secondary compilation. The FreeType font engine loads the complete font file and generates glyph outline information. This glyph outline information is then passed to the typesetting engine for glyph typesetting. Finally, the FreeType font engine rasterizes the glyphs into bitmaps and calls the drawing API provided by a lightweight general-purpose graphics library to directly write the bitmap data into the frame buffer, thereby completing the rendering.
[0046] The module acquires the display text and preloads its content. The typesetting module segments the display text according to the language types of various font subfiles and marks the font mode of each segment (the font mode can be a bitmap font or a vector font). The typesetting module then reformatts all segments using a typesetting engine (or Harfbuzz typesetting engine) and outputs the glyph outline information of all characters. This glyph outline information includes, but is not limited to, deformation, ligatures, coordinates, and size. Then, based on the line width limitations of a lightweight general-purpose graphics library, the module determines the typesetting information, including line breaks, word spacing, adaptive scaling, and the height and width of the text area. The width and height of the text area are calculated segment by segment using the typesetting engine. All character data is then aggregated and reformatted using the typesetting engine to calculate the required number of line breaks and the height of each line. Simultaneously, word segmentation rules are processed to prevent words from being cut due to line breaks. Finally, the width of each character and the height of each line are summed to obtain the height and width of the text area, and centering and x-coordinate offset issues are handled.
[0047] The system converts the glyph outlines of all characters into bitmap or frame data that can be recognized by a lightweight, general-purpose graphics library. The rendering module then selects either a raster font rendering method or a vector font rendering method based on the layout information and the converted bitmap or frame data. Specifically, when the font mode is raster, it is rendered using the raster font rendering method; when the font mode is vector, it is rendered using the vector font rendering method.
[0048] This application embodiment segments the displayed text by pre-caching the language types of multiple font sub-files. A typesetting engine then reformatts the segmented text and outputs glyph outline information including deformations and ligatures, supporting languages with complex scripts. Simultaneously, based on the line width limitations of a lightweight general-purpose graphics library, typesetting information, including line breaks, word spacing, and adaptive scaling, is dynamically determined to ensure optimal layout and display effects for text on different screen sizes or resolutions. Finally, based on the typesetting and glyph outline information, either a bitmap font rendering method or a vector font rendering method is selected for rendering. This method achieves multi-language compatibility while avoiding problems such as line break errors, glyph misalignment, or extremely slow rendering speeds that occur when processing mixed text rendering.
[0049] In some embodiments of this application, the method further includes: when an uncached character is encountered during the rendering process, determining the uncached character from multiple font sub-files according to a preset language priority; if no uncached character exists in the multiple font sub-files, then using a default placeholder to replace the uncached character.
[0050] In this embodiment of the application, when uncached characters are encountered during rendering, the uncached characters can be determined from multiple font subfiles according to the language priority order from the system's main language, mainstream languages to niche languages. If no uncached characters are found in multiple font subfiles, a default placeholder (or default universal placeholder) is used to replace the uncached characters. This method can use other fonts to complete rendering in a very short time when certain niche character sets are missing or not yet loaded, avoiding problems such as blank characters, garbled text, or display lag.
[0051] In some embodiments of this application, the method further includes: splitting the complete font file into multiple font sub-files according to the language type; selecting a font mode based on system performance, the font mode including bitmap fonts or vector fonts; and loading the system language file from the multiple font sub-files when the system starts up.
[0052] The management module can split a complete font file into multiple font files based on language type using a toolchain. It can modify macro configurations according to RTOS system performance to select the font mode. Multi-level caching can be set up, such as a pre-cache and a dynamic cache. During RTOS system startup, the management module can initialize the font rendering engine library and cache management, and load system language files from various font sub-files into the pre-cache. This ensures that frequently used characters can be rendered quickly and pre-loads some commonly used character data, preventing the cache from being created but unused after boot.
[0053] Furthermore, the display text can be obtained and its content preloaded. The typesetting module segments the display text according to the language types of various font subfiles and marks the font mode of each segment (the font mode can be a bitmap font or a vector font). The typesetting module reformatts all segments according to the typesetting engine (or Harfbuzz typesetting engine) and outputs the glyph outline information of all characters. Then, based on the line width limit of the lightweight general-purpose graphics library, the typesetting information is determined. The glyph outline information of all characters is converted into bitmap or frame data that the lightweight general-purpose graphics library can recognize. The rendering module selects the bitmap font rendering method or vector font rendering method based on the typesetting information and the converted bitmap or frame data for rendering.
[0054] This application embodiment splits the complete font file into multiple font sub-files according to language type, which can effectively reduce resource consumption and cache usage, and improve loading efficiency and system real-time response. Then, the font mode is selected according to system performance, which can avoid idle or excessive consumption of system resources. When the system starts up, the main system language text can be loaded immediately without waiting for the complete font to load, further improving loading efficiency and system real-time response.
[0055] In some embodiments of this application, the method further includes: loading font sub-files with a usage frequency greater than a threshold into the dynamic cache when the system starts, based on the user's usage frequency; and removing a font sub-file from the dynamic cache when the usage frequency of a font sub-file is less than the threshold.
[0056] The dynamic cache can dynamically allocate memory based on access frequency. If a user frequently uses a niche language, and the usage frequency of the font sub-file corresponding to that language exceeds a threshold, then the management module can load that font sub-file into the dynamic cache when the RTOS system starts. Conversely, if a user does not frequently use a niche language, and the usage frequency of the font file corresponding to that language does not exceed the threshold, then the management module can remove that font sub-file from the dynamic cache.
[0057] The dynamic cache management mechanism in this embodiment allows the dynamic cache to store only a limited number of font sub-files. Specifically, when the usage frequency of a font sub-file exceeds a threshold, it is loaded into the dynamic cache; when the usage frequency is below the threshold, it is removed from the dynamic cache, thereby freeing up memory and improving loading efficiency and system real-time response.
[0058] This application embodiment also provides a multilingual display system, including modules or means for executing the multilingual display method of any of the above embodiments. The system includes: a typesetting module for segmenting the content of the displayed text based on the language types of multiple pre-cached font sub-files; a typesetting module for reformatting all segments based on a typesetting engine and outputting the glyph outline information of all characters, the glyph outline information including deformation and ligatures; a typesetting module for determining typesetting information based on the line width limit of a lightweight general-purpose graphics library, the typesetting information including line breaks at the end of lines, word spacing, and adaptive scaling; and a rendering module for selecting a bitmap font rendering method / vector font rendering method for rendering based on the typesetting information and the glyph outline information of all characters.
[0059] The typesetting module in this embodiment segments the displayed text based on the language types of various pre-cached font sub-files. It then reformatts the segmented text using a typesetting engine, outputting glyph outline information including deformations and ligatures, supporting languages with complex scripting capabilities. Simultaneously, based on the line width limitations of a lightweight, general-purpose graphics library, it dynamically determines typesetting information, including line breaks, word spacing, and adaptive scaling, ensuring optimal layout and display across different screen sizes and resolutions. Finally, the rendering module selects either a bitmap font rendering method or a vector font rendering method based on the typesetting and glyph outline information. This method achieves multi-language compatibility while avoiding problems such as line break errors, glyph misalignment, or extremely slow rendering speeds that occur when rendering mixed text.
[0060] In some embodiments of this application, the typesetting module is used to determine the uncached characters from multiple font sub-files according to a preset language priority when encountering uncached characters during the rendering process; the typesetting module is used to replace the uncached characters with default placeholders if no uncached characters exist in the multiple font sub-files.
[0061] In some embodiments of this application, the system further includes: a management module for splitting a complete font file into multiple font sub-files according to language type; a management module for selecting a font mode based on system performance, wherein the font mode includes bitmap fonts or vector fonts; and a management module for loading the system language file among the multiple font sub-files when the system starts up.
[0062] In some embodiments of this application, the management module is used to load font sub-files with a usage frequency greater than a threshold into the dynamic cache when the system starts, based on the user's usage frequency; the management module is also used to remove a font sub-file from the dynamic cache when there is a font sub-file in the dynamic cache whose usage frequency is not greater than the threshold.
[0063] This application also provides a wearable smart device, including a memory, a processor, and a computer program stored in the memory. The processor executes the computer program to implement the steps of the multilingual display method of any of the above embodiments.
[0064] In some embodiments of this application, wearable smart devices include smartwatches.
[0065] The wearable smart device used in this application embodiment is basically similar to the method embodiment, so the description is relatively simple. For relevant details, please refer to the description of the method embodiment.
[0066] It should be noted that the above embodiments can be freely combined as needed. The above are merely preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A multilingual display method, characterized in that, include: Based on the language types of multiple pre-cached font sub-files, the content of the displayed text is segmented; The layout engine re-layouts all segments and outputs the glyph outline information of all characters, including deformation and ligatures. Based on the line width limit of a lightweight general-purpose graphics library, the typesetting information is determined, including line break at the end of the line, word spacing, and adaptive scaling. Based on the layout information and the glyph outline information of all characters, a bitmap font drawing method or a vector font drawing method is selected for rendering.
2. The multilingual display method according to claim 1, characterized in that, Also includes: When an uncached character is encountered during the rendering process, the uncached character is determined from multiple font subfiles according to a preset language priority. If the uncached character is not present in any of the font subfiles, a default placeholder is used to replace the uncached character.
3. The multilingual display method according to claim 1, characterized in that, Also includes: According to the language type, the complete font file is split into multiple font sub-files; The font mode is selected based on system performance; the font mode includes bitmap fonts or vector fonts. When the system starts up, it loads the system language files from various font subfiles.
4. The multilingual display method according to claim 3, characterized in that, Also includes: Based on the user's usage frequency, font sub-files with a usage frequency greater than a threshold are loaded into the dynamic cache area when the system starts up; If the usage frequency of a font sub-file in the dynamic cache is not greater than a threshold, the font sub-file is removed from the dynamic cache.
5. A multilingual display system, characterized in that, include: The typesetting module is used to segment the content of the displayed text based on the language types of various pre-cached font sub-files; The typesetting module is used to re-layout all segments based on the typesetting engine and output the glyph outline information of all characters, including deformation and ligatures. The typesetting module is used to determine typesetting information based on the line width limit of a lightweight general-purpose graphics library. The typesetting information includes line break at the end of the line, word spacing, and adaptive scaling. The rendering module is used to select either a bitmap font rendering method or a vector font rendering method for rendering based on the layout information and the glyph outline information of all characters.
6. The multilingual display system according to claim 5, characterized in that, The typesetting module is used to determine the uncached characters from multiple font subfiles according to a preset language priority when an uncached character is encountered during the rendering process. The typesetting module is configured to replace the uncached character with a default placeholder if the uncached character is not present in any of the font subfiles.
7. The multilingual display system according to claim 5, characterized in that, Also includes: The management module is used to split a complete font file into multiple font sub-files according to the language type; The management module is used to select a font mode based on system performance, and the font mode includes bitmap fonts or vector fonts; The management module is used to load the system language files from various font subfiles when the system starts up.
8. The multilingual display system according to claim 7, characterized in that, The management module is used to load font sub-files whose usage frequency is greater than a threshold into the dynamic cache area when the system starts, based on the user's usage frequency. The management module is used to remove a font sub-file from the dynamic cache when the usage frequency of a font sub-file in the dynamic cache is not greater than a threshold.
9. A wearable smart device, comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the multilingual display method according to any one of claims 1-4.
10. The wearable smart device according to claim 9, characterized in that, The wearable smart devices include smartwatches.