Character width self-adaption method and device, terminal and storage medium
A technology of character width and storage medium, which is applied in digital data processing, special data processing applications, natural language data processing, etc. It can solve problems such as unfavorable maintenance, increased development costs, and code changes, so as to facilitate subsequent maintenance and reduce development. cost effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] like figure 1 The method of the present flow diagram of a width of the adaptive embodiment of a text provided, comprising the steps of embodiment shown.
[0052] S101, to find all the required adaptive character width, and acquires the width of the respective adaptation needs text font attributes;
[0053] S102, according to the width of the respective adaptive required text font attributes, obtain all the text font attributes maximum actual width of the maximum actual width of the text obtained as an adaptive values;
[0054] S103, all the required width of the adaptive character width is set to the adaptive DOM label width value acquired.
[0055] Incidentally, DOM text width, i.e. the width of the label text.
[0056]An adaptive writing method according to a first embodiment of the present width, all required for the adaptive character width, the actual width of the text obtained in the actual width of the maximum width as an adaptive value, and all the required adaptive...
Embodiment 2
[0058] Considering the need for easy to find an adaptive character width, an adaptive writing method according to a second embodiment of the present width, text width preset adaptive need relevant identifier, the subsequent need to find out the adaptive character width according to the identification .
[0059] like figure 2 Present a schematic flowchart of an adaptive writing method according to a second width, comprising the steps of embodiment shown.
[0060] S201, when the initial development of the rules will require all adaptive width of the text using the font property parcel label, the label font style definition of the label attribute adaptive width.
[0061] S202, all text to find the required width of the label according to the adaptive style font property of the label.
[0062] That tag label style font attribute adaptive character width is needed is an adaptive character width.
[0063] S203, obtaining the individual need adaptive DOM text label width.
[0064] DOM to...
Embodiment 3
[0072] An adaptive writing method according to a third embodiment of the present width, the maximum width of the text in all of the adaptive character as the actual width of the adaptive value width, each character needs to obtain the actual width adaptive character width, the present embodiment creates a new font property tag, based on the individual needs of the new set of adaptive character width font property label, obtains the actual width of the new font property tag, so as to obtain the actual width of each character width required adaptation.
[0073] In particular, be processed according to the text font attributes, obtain all the properties of the font maximum width of the actual text, comprising the steps of:
[0074] Step one, create a new font attribute label;
[0075] Step two, turn each font property required width adaptive to the new text font attributes tag and the corresponding need for adaptation of the width of the text added to the contents of the new font pro...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com