Method and device used for text size adjustment of page rendering
A text size and page technology, applied in the computer field, can solve problems such as text adaptation deviations, achieve the effects of solving deviations, avoiding deviations, and improving computing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058]The first aspect of the present invention provides a method for adjusting text size for page rendering, please refer to figure 1 . It should be noted that the mobile device of the method provided in this embodiment includes a mobile phone, a tablet computer, a smart watch or other devices equipped with an intelligent operating system, which is not specifically limited in the present invention. In addition, the operating system may be an Android system or other systems, and the present invention does not specifically limit this.
[0059] In order to make the description of Embodiment 1 clearer, it will be combined with figure 1 The implementation steps of the method provided by the embodiment of this application are introduced in detail.
[0060] First, step S101 is executed to acquire the screen width of the mobile device performing page rendering.
[0061] In the specific implementation process, the screen width of the mobile device is the width of the screen resolut...
Embodiment 2
[0081] This embodiment provides a text size adjustment device for page rendering, please refer to figure 2 , the device consists of:
[0082] The first acquiring module 201 acquires the screen width of the mobile device performing page rendering;
[0083] The second obtaining module 202 is used to obtain the ratio of the screen width of the mobile device to the width of the preset design draft;
[0084] The third obtaining module 203 is used to obtain the range of the first character size of the preset design draft;
[0085] An adjustment module 204, configured to adjust a second character size corresponding to the screen width according to the range of the first character size and the ratio;
[0086] The rendering module 205 is configured to perform page rendering according to the second text size.
[0087] In the device for adjusting text size for page rendering provided in this embodiment, the first text size of the preset design draft ranges from 12px to 44px, and the ...
Embodiment 3
[0097] This embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
[0098] Obtain the screen width of the mobile device for page rendering;
[0099] Obtain the ratio of the screen width of the mobile device to the width of the preset design draft;
[0100] Obtain the range of the first character size of the preset design draft;
[0101] adjusting a second character size corresponding to the screen width according to the range of the first character size and the ratio;
[0102] Perform page rendering according to the second text size.
[0103] aforementioned figure 1Various variations and specific examples of the method for adjusting text size for page rendering in the embodiment are also applicable to the computer-readable storage medium in this embodiment. Through the foregoing detailed description of the method for adjusting text size for page ren...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


