CN106339086B - Screen font adjusting method and device and electronic equipment - Google Patents
Screen font adjusting method and device and electronic equipment Download PDFInfo
- Publication number
- CN106339086B CN106339086B CN201610737045.6A CN201610737045A CN106339086B CN 106339086 B CN106339086 B CN 106339086B CN 201610737045 A CN201610737045 A CN 201610737045A CN 106339086 B CN106339086 B CN 106339086B
- Authority
- CN
- China
- Prior art keywords
- distance
- current distance
- font size
- type
- adjusting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 61
- 230000004438 eyesight Effects 0.000 claims abstract description 125
- 238000012937 correction Methods 0.000 claims description 52
- 230000006870 function Effects 0.000 claims description 17
- 238000009877 rendering Methods 0.000 claims description 14
- 208000001491 myopia Diseases 0.000 description 25
- 230000004379 myopia Effects 0.000 description 11
- 206010020675 Hypermetropia Diseases 0.000 description 10
- 238000010586 diagram Methods 0.000 description 10
- 230000008859 change Effects 0.000 description 7
- 230000016776 visual perception Effects 0.000 description 5
- 201000010041 presbyopia Diseases 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 239000010409 thin film Substances 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003750 conditioning effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000013178 mathematical model Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention relates to the technical field of terminals, in particular to a method and a device for adjusting screen fonts and electronic equipment. Wherein, the method comprises the following steps: acquiring the current distance between human eyes and a terminal screen and the vision type; and adjusting the font of the terminal screen according to the eyesight type and the current distance. The embodiment of the invention can adapt to consumer groups with different vision types, thereby meeting the requirements of diversified users.
Description
Technical Field
The invention relates to the technical field of terminals, in particular to a method and a device for adjusting screen fonts and electronic equipment.
Background
With the development of the user interface interaction technology, the mobile phone can form good interaction with different users, so that the diversified requirements of the different users are met. For example, a user may browse news using a cell phone, however, the font size of the news page needs to be adjusted by manually changing the settings of the system.
In the process of implementing the invention, the inventor finds that the following problems exist in the related art: for a normal-vision user, when the distance between the human eye and the screen exceeds the normal vision range, the user cannot easily clearly browse the screen characters. For a user with myopia, although the user wears the glasses with myopia to browse the screen characters like a user with normal eyesight, when the user with myopia does not wear the glasses with myopia, the user moves the screen close to the human eye or moves the screen away from the human eye, and the user with myopia is not good for the user to comfortably browse the screen characters. Similarly, for a user with far vision, the user looks like a user with near vision.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting screen fonts and electronic equipment, and solves the technical problem that the screen fonts cannot be adjusted according to the eyesight types of users by the conventional terminal.
In order to solve the technical problems, the invention provides the following technical scheme:
in a first aspect, an embodiment of the present invention provides a method for adjusting a font of a screen, where the method includes: acquiring the current distance between human eyes and a terminal screen and the vision type; and adjusting the font of the terminal screen according to the eyesight type and the current distance.
Optionally, before the obtaining of the vision type, the method includes: acquiring the use distance between human eyes and a terminal screen when a user normally uses the terminal; and determining the vision type according to the relationship between the use distance and the normal vision distance.
Optionally, the adjusting the font of the terminal screen according to the eyesight type and the current distance includes: adjusting the font size corresponding to the current distance presented by the terminal screen according to the vision type, the first adjustment relation between the current distance and the preset font size; or adjusting the font size corresponding to the current distance presented by the terminal screen according to the second adjustment relation between the eyesight type and the current distance.
Optionally, the second adjustment relationship is: the method comprises the steps that the font size of a current distance { (current distance-first correction parameter)/reference distance }. the reference font size, the first correction parameter is determined according to the eyesight type, and the reference distance and the reference font size are preset; or, the font size of the current distance is ± { (current distance/reference distance) × (second correction parameter }, the reference font size is preset, and the second correction parameter is determined according to the eyesight type.
Optionally, before the obtaining of the vision type, the method includes: receiving a selection event input by a user; determining the selected vision type based on the selection event.
Optionally, the method further comprises: acquiring scene information of a position where a user is located; and rendering the font color matched with the scene information according to the scene information.
Optionally, the scene information comprises light intensity; the method further comprises the following steps: and if the light intensity is lower than the threshold value, the flashlight function is started.
In a second aspect, an embodiment of the present invention provides an apparatus for adjusting a font on a screen, where the apparatus includes: the first acquisition module is used for acquiring the current distance between human eyes and a terminal screen and the vision type; and the adjusting module is used for adjusting the font of the terminal screen according to the eyesight type and the current distance.
Optionally, the apparatus further comprises: the second acquisition module is used for acquiring the use distance between human eyes and a terminal screen when a user normally uses the terminal; and the first determining module is used for determining the vision type according to the relationship between the using distance and the normal vision distance.
Optionally, the adjusting module comprises: the first adjusting unit is used for adjusting the font size corresponding to the current distance presented by the terminal screen according to the first adjusting relation among the eyesight type, the current distance and the preset font size; or, the second adjusting unit is configured to adjust the font size corresponding to the current distance and presented on the terminal screen according to the second adjusting relationship between the eyesight type and the current distance.
Optionally, the second adjustment relationship is: the method comprises the steps that the font size of a current distance { (current distance-first correction parameter)/reference distance }. the reference font size, the first correction parameter is determined according to the eyesight type, and the reference distance and the reference font size are preset; or, the font size of the current distance is ± { (current distance/reference distance) × (second correction parameter }, the reference font size is preset, and the second correction parameter is determined according to the eyesight type.
Optionally, the apparatus further comprises: the receiving module is used for receiving a selection event input by a user; a second determining module for determining the selected vision type based on the selection event.
Optionally, the apparatus further comprises: the third acquisition module is used for acquiring scene information of the position where the user is located; and the rendering module is used for rendering the font color matched with the scene information according to the scene information.
Optionally, the scene information comprises light intensity; the device further comprises: and the starting module is used for starting the flashlight function if the light intensity is lower than the threshold value.
In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores a program of instructions executable by the at least one processor to cause the at least one processor to: acquiring the current distance between human eyes and a terminal screen and the vision type; and adjusting the font of the terminal screen according to the eyesight type and the current distance.
In each embodiment of the invention, the current distance between the human eyes and the terminal screen and the eyesight type are obtained, and the font of the terminal screen is adjusted according to the eyesight type and the current distance, so that the method can adapt to consumer groups with different eyesight types, and further meet the requirements of diversified users.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a flow chart of a method for adjusting font of a screen according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for adjusting screen fonts according to an embodiment of the invention;
fig. 3 is a schematic plan view of a terminal screen according to an embodiment of the present invention;
FIG. 3a is a schematic structural diagram of another method for adjusting a font of a screen according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of another method for adjusting a font of a screen according to an embodiment of the present invention;
FIG. 4a is a diagram illustrating a terminal screen rendering process according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for adjusting font on a screen according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an apparatus for adjusting font on a screen according to an embodiment of the present invention;
FIG. 6a is a schematic structural diagram of a conditioning module according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The method for adjusting screen fonts of the embodiment of the invention can be executed in any suitable type of user terminal with a user interaction device and a processor with computing capability, such as a desktop computer, a smart phone, a tablet computer and other user terminals.
The screen font adjusting device of the embodiment of the invention can be used as one of software or hardware functional units and independently arranged in the user terminal, and also can be used as one of functional modules integrated in a processor to execute the screen font adjusting method of the embodiment of the invention.
Fig. 1 is a flowchart of a method for adjusting a font of a screen according to an embodiment of the present invention. As shown in fig. 1, the method includes:
0102, acquiring the current distance between human eyes and a terminal screen and the vision type;
when a user uses the terminal to browse the information content through the screen, the terminal presents characters corresponding to the information content in a display area of the screen, and the characters comprise fonts and meanings represented by the fonts. For convenience of description in conjunction with the embodiments, the text herein may be understood as a font, that is: the text of the screen presentation may be understood as the font of the screen presentation.
It should be understood by those skilled in the art that the terminal screen may be a touch screen or a non-touch screen, and may be a TFT screen (TFT Thin Film Transistor), a TFD screen (TFD Thin Film Diode), a UFB screen (Ultra Fine Bright, UFB), an STN Screen (STN), an OLED screen (Organic Light-Emitting Diode), an AMOLED screen (Active Matrix/Organic Light-Emitting Diode, AMOLED Active Matrix Organic Light-Emitting Diode panel), and so on.
Of course, in order to facilitate the user to browse the screen fonts more clearly, those skilled in the art may also select a terminal screen with a large size, a high contrast, a high definition, or other performance, which is not limited to the terminal screen shown in this embodiment.
In this embodiment, the terminal has a built-in distance detector. When a user holds the terminal to look at, the distance detector can collect the distance between eyes of the user and the terminal screen, and further the terminal calculates the current distance between the eyes and the terminal screen according to a preset distance model. The current distance here may be a distance between the human eye and the screen center point, or may be other parameters transformed according to a mathematical formula and used to evaluate the current distance between the human eye and the terminal screen. And polling the access distance detector by the terminal according to a certain frequency so as to obtain the current distance between the human eyes and the terminal screen at different time points. In some embodiments, the distance detector includes, but is not limited to, the following devices: infrared detectors, laser detectors, and echo detectors.
The vision types include a myopic eye type, a hyperopic eye type, and a normal eye type. The vision type of the user can be obtained by the terminal according to a preset rule, or can be obtained by the terminal according to the selection of the user on a terminal screen, and the method is not limited to the mode of obtaining the vision type.
0104, adjusting the font of the terminal screen according to the eyesight type and the current distance.
And the terminal adjusts the font of the terminal screen according to the eyesight type and the current distance. For example, when the user is of a near-sighted type, the terminal continuously adjusts the font size of the terminal screen following a change in the current distance, and optionally, the longer the distance, the larger the terminal adjusts the font size of the terminal screen. When the user is of a far-sighted type, the terminal continuously adjusts the font size of the terminal screen along with the change of the current distance, optionally, the longer the distance is, the larger the terminal adjusts the font size of the terminal screen, but when the current distances of the near-sighted user A and the far-sighted user B are the same, the method for differentially presenting the font sizes of the terminal screen is adopted, and the method can meet the visual demands of consumers with different vision types by considering the visual perception and the browsing demands of the near-sighted user A and the far-sighted user B, wherein the font size browsed by the near-sighted user A is larger than the font size browsed by the far-sighted user B, namely the font size presented by the terminal screen of the near-sighted user A is larger than that. Those skilled in the art should note that: the font adjustment strategy of the terminal screen is only described by way of example, and a designer can define various adjustment strategies according to job requirements, but the invention is not limited to this.
In this embodiment, the font includes font size, shape, color, type, and rendering position. Therefore, in addition to the above manner in which the terminal adjusts the font size, the terminal can also adjust the font shape, color, type, and rendering position to meet the needs of diversified users.
In the embodiment of the invention, by adopting the method, consumer groups with different vision types can be adapted, so that the requirements of diversified users are met.
In some embodiments, as shown in fig. 2, before performing step 0102, the method may further include:
0106, obtaining the use distance between eyes and a terminal screen when a user normally uses the terminal;
0108, determining the vision type according to the relationship between the use distance and the normal vision distance.
For a myopia user, the terminal collects the distance between the human eyes and the terminal screen at different time points when the terminal is used by the user in history through the distance detector, all collected data are counted, and the counted data are analyzed, so that the using distance between the human eyes and the terminal screen when the user uses the terminal normally is obtained. For example, when the user is of the myopic eye type, the data set collected by the terminal through the distance detector is (12, 10,11,10,15,13,11,12,8,9), and the distance of the embodiment is in centimeters and cm. The terminal counts the 10 groups of data and calculates an average value of 11.1cm, the terminal takes the calculated average value of 11.1cm as the use distance between human eyes and a terminal screen when a user normally uses the terminal, the use distance 11.1 is stored, and the use distance 11.1 is obtained before the terminal obtains the current distance between the human eyes and the terminal screen. Similarly, when the user is of the presbyopic type, the data set collected by the terminal through the distance detector is (25, 23,22,22,24,26,19,18,20,20), and the average value is found to be 21.9 cm. Those skilled in the art will note that: the use distance of the near-sighted type or the far-sighted type for different users varies from person to person, which is shown in the present embodiment by way of example only and is not meant to limit the "use distance" taught by the present embodiment, and the "use distance" may be a distance range in some embodiments, rather than a specific distance value.
The normal vision distance is the normal distance between the human eyes and the terminal screen when the user is in a normal eye type and can clearly browse the font of the terminal screen. The normal vision distance may be a specific distance value, or may be a range value. For example, the normal vision distance of the present embodiment is 15cm, or 15cm to 18 cm.
When the normal vision distance is a specific distance value, the terminal judges whether the use distance is larger than the normal vision distance after acquiring the use distance, if the use distance is larger than the normal vision distance value, the terminal determines that the user is in a presbyopia type, if the use distance is smaller than the normal vision distance value, the terminal determines that the user is in a myopic type, and if the use distance is equal to the normal vision distance value, the terminal determines that the user is in a normal eye type.
When the normal vision distance is a distance range value, the terminal judges whether the use distance is larger than the minimum value of the normal vision distance after acquiring the use distance, if the use distance is larger than the maximum value of the normal vision distance, the terminal determines that the user is of a presbyopia type, if the use distance is smaller than the minimum value of the normal vision distance, the terminal determines that the user is of a myopic type, and if the use distance falls into the normal vision distance, the terminal determines that the user is of a normal eye type.
In the embodiment, the terminal can automatically analyze the eyesight of the user, so that the method can be effectively adapted to various types of users.
In some embodiments, the terminal may adjust the objects on the terminal screen by looking up a table. Optionally, step 0104 comprises:
and adjusting the font size corresponding to the current distance presented by the terminal screen according to the first adjustment relation among the eyesight type, the current distance and the preset font size.
The designer constructs a font lookup table at the terminal in advance according to the operation purpose, and the terminal traverses the lookup table according to the eyesight type and the current distance to find out the font size corresponding to the current distance. Table 1 is a font size lookup table in a myopia type state according to an embodiment of the present invention.
TABLE 1
As shown in table 1, when the terminal determines that the user is a type of myopia, the terminal traverses the lookup table according to the current distance to find the font size corresponding to the current distance. For example, when the current distance is 6cm, the terminal finds: in the first row, the current distance of 6cm falls within the preset distance range of 5-7cm, and thus, when the current distance is 6cm, the terminal adjusts the screen font size to 5 mm. When the current distance is 10cm, the font size is adjusted to 6 mm. From table 1, it can be derived: when the current distance is less than 30cm, the current distance is in direct proportion to the size of the font, the shorter the current distance is, the smaller the font is, and the longer the current distance is, the longer the font is. From table 1 it can also be found that: when the current distance is greater than 16cm, the font size adjustment steps are from "1" to "2". In fact, when the preset distance range is 14-16cm, it represents the normal distance under the normal eye type. For a user with myopia, in order to adapt to the visual perception and definition of the user with myopia, the font size needs to be quickly adjusted to be larger when the distance is larger than the normal distance, and the font size can be slowly adjusted to be smaller when the distance is smaller than the normal distance. From table 1 it can also be found that: when the current distance is more than 30cm, the adjustment of the font size is fixed, and for a myopic eye type user, the adjustment manner of enlarging the font size over a long distance to enable the user to clearly see the font is meaningless, even in an enlarged state, when the font seen by the myopic eye user is blurred, and when the size of the font is considered in consideration of the size of the screen and the display content, the font size does not need to be enlarged again.
Table 2 is a table for looking up the font size in the presbyopia type state according to an embodiment of the present invention.
TABLE 2
As shown in table 2, it can be derived: when the current distance is less than 30cm, the current distance is in direct proportion to the size of the font, the shorter the current distance is, the smaller the font is, and the longer the current distance is, the longer the font is. From table 1 it can also be found that: when the current distance is greater than 16cm, the font size adjustment steps from "2" to "1". In fact, when the preset distance range is 14-16cm, it represents the normal distance under the normal eye type. For a presbyopic type user, in order to be suitable for the visual perception and the definition of the presbyopic user, the font size can be gently increased when the distance is larger than the normal distance, and the font size can be rapidly decreased when the distance is smaller than the normal distance. From table 1 it can also be found that: when the current distance is more than 30cm, the adjustment of the font size is fixed, and for the presbyopia type user, the adjustment manner of enlarging the font size over a long distance to enable the user to clearly see the font is meaningless, and the font size does not need to be enlarged again at this time in consideration of the size of the screen and the display contents.
It will be appreciated by those skilled in the art that the strategy for adjusting the font size for the near-sighted type or the far-sighted type shown herein is merely exemplary, and the designer may also flexibly change the adjustment strategy depending on the task. However, any replacement, as long as the table lookup is used to adjust the font size, should fall within the scope of the present invention.
In some embodiments, the terminal may adjust the objects of the terminal screen through a mathematical model. Optionally, step 0104 comprises:
and adjusting the font size corresponding to the current distance presented by the terminal screen according to the second adjustment relation between the eyesight type and the current distance.
In this embodiment, optionally, the second adjustment relationship is: the font size of the current distance { (current distance-first correction parameter)/reference distance }. the reference font size, the first correction parameter is determined according to the eyesight type, and the reference distance and the reference font size are preset.
When the user is of the myopic eye type, the first correction parameter is C1; when the user is of the presbyopic type, the first correction parameter is C2, where C1 is smaller than C2. When the user is of a normal eye type, the first correction parameter is C3, and C3 is larger than C1 and smaller than C2. When the current distances of the near-sighted user and the far-sighted user are the same, for example, for the near-sighted user, the current distance D1 is 10cm, the first correction parameter C1 is 2cm, the reference distance is 15cm, and the reference font size is 4mm, and thus, the font size Z1 of the current distance is 2.13 mm. However, for a far-sighted user, the current distance D1 is 10cm, the first correction parameter C2 is 4cm, the reference distance is 15cm, and the reference font size is 4mm, and therefore, the font size Z2 for the current distance is 1.6 mm. Similarly, for a normal eye type user, the first correction parameter is C3 is 3, and the font size Z3 for the current distance is 1.9 mm.
For another example, for a myopic user, the current distance D1 is 20cm, the first correction parameter C1 is 2cm, the reference distance is 15cm, and the reference font size is 4mm, so the font size Z1 for the current distance is 4.8 mm. However, for a far-sighted user, the current distance D1 is 20cm, the first correction parameter C2 is 4cm, the reference distance is 15cm, and the reference font size is 4mm, and therefore, the font size Z2 for the current distance is 4.27 mm. Similarly, for a normal eye type user, the first correction parameter is C3 is 3, and the font size Z3 for the current distance is 4.5 mm. The present embodiment adjusts the font size of the terminal screen of the myopic-type user to be larger than that of the hyperopic-type user at the same current distance in consideration of the visual perception and font definition of the myopic user and the hyperopic user.
In this embodiment, the value range of the first correction parameter is 0 to 5, and of course, the designer sets the value range of the first correction parameter by himself or herself according to the purpose of the work. However, the first correction parameter should not be too large in consideration of users with different eyesight types and font definition.
In some embodiments, optionally, the second adjustment relationship is:
the font size of the current distance is ± { (current distance/reference distance) × (second correction parameter }), the reference font size is preset, and the second correction parameter is determined according to the eyesight type.
Optionally, when the second correction parameter is a positive number, the font size of the current distance is equal to the reference font size + { (current distance/reference distance) × the second correction parameter }.
Optionally, when the second correction parameter is a negative number, the font size of the current distance is equal to the reference font size- { (current distance/reference distance) × the second correction parameter }.
When the user is of the myopic eye type, the second correction parameter is a positive number C4; when the user is of the presbyopic type, the second correction parameter is a positive number C5, wherein C5 is smaller than C4. When the user is of a normal eye type, the second correction parameter is a positive number C6, and C6 is greater than C5 and less than C4. When the current distances of the near-sighted user and the far-sighted user are the same, for example, for the near-sighted user, the reference font size is 1mm, the current distance is 10cm, the reference distance is 15cm, the second correction parameter C4 is 2, and the font size Z4 of the current distance is 2.3 mm. Similarly, for a hyperopic user, the second correction parameter C5 is 4 and the font size Z5 for the current distance is 3.7. Similarly, for a normal vision type user, the second correction parameter C6 is 3, and the font size Z6 for the current distance is 3 mm. The present embodiment adjusts the font size of the terminal screen of the myopic-type user to be larger than that of the hyperopic-type user at the same current distance in consideration of the visual perception and font definition of the myopic user and the hyperopic user.
In this embodiment, the value range of the second correction parameter is 0 to 5, and of course, the designer sets the value range of the second correction parameter by himself or herself according to the purpose of the work. However, the second correction parameter should not be too large in consideration of users with different eyesight types and font definition.
In some embodiments, as shown in FIG. 3, when the user's vision type is to be determined, the terminal screen 31 presents three vision modes for the user to select, including a near vision mode 311, a far vision mode 312, and a normal mode 313. Specifically, as shown in fig. 3a, before step 0102, the method includes:
step 0110, receiving a selection event input by a user;
and step 0112, determining the selected vision type according to the selection event.
After the terminal presents three vision modes on the screen, a user selects a corresponding vision mode on the screen according to own vision attributes, and the terminal distributes and receives selection events according to selection operations of the user on the screen. And the terminal determines the vision type selected by the user according to the selection event. In some embodiments, when the terminal receives the selection event, the terminal hides the near vision mode 311, the far vision mode 312, and the normal mode 313.
It should be understood by those skilled in the art that when a user performs a touch operation on the terminal screen, the terminal should have a touch-sensitive surface, which may be a touch screen display, and may be a touch pad. The touch-sensitive surface serves as an input interface for user operations, and operations of a user on the touch-sensitive surface can be detected, wherein the operations can be single-clicking, double-clicking, sliding, long-pressing, dragging and the like on the touch-sensitive surface. Each operation by the user generates a certain pressure intensity on the touch-sensitive surface, which can be detected using various methods and various sensors or combinations of various sensors. For example, by detecting the magnitude of the change in capacitance of the touch-sensitive surface at the touch-sensitive surface, or by detecting the magnitude of the change in resistance of the touch-sensitive surface, or by detecting the magnitude of the change in capacitance and the magnitude of the change in resistance of the touch-sensitive surface, and so on. In the above process, the intensity of the pressure generated by the touch-sensitive surface is converted into an electrical signal by the sensor, the terminal issues a selection event according to the electrical signal according to the control command generated by the user on the touch-sensitive surface, and receives and processes the selection event.
In the embodiment, three vision types are generated on the terminal screen for the user to select, and the terminal screen can adapt to consumer groups with different vision types, so that the requirements of diversified users are met, and the user experience is improved.
In some embodiments, to better improve the definition of the font of the terminal screen, it may also render the font color by using the scene according to the user. Specifically, as shown in fig. 4, the method further includes:
step 0114, scene information of the position of the user is obtained;
and step 0116, rendering the font color matched with the scene information according to the scene information.
The terminal shoots the scene of the position of the user by starting the camera. For example, when both the user and the terminal are exposed to the daytime and the light is strong. In the related art, since the light is strong, the user cannot clearly view the text on the terminal screen. However, when the scene information shot by the terminal through the camera is analyzed, if the light intensity is strong, the font 4a1 enlarged before is darkened and bolded into a new enlarged font 4a2 as shown in fig. 4 a. Of course, the designer can also render font colors by himself or herself according to the scene type.
In the embodiment, by rendering the font color according to the scene, on one hand, it is helpful to improve the definition of the font viewed by the user, and on the other hand, it can improve the user experience.
In some embodiments, the scene information includes light intensity. For some special scenes, for example, when the user holds the terminal in a weak-light scene, in order to be able to view the fonts on the screen of the terminal, specifically, as shown in fig. 4, the method further includes:
and 0118, if the light intensity is lower than the threshold value, the flashlight function is started.
The terminal analyzes the light intensity of the current position of the user from the scene information, if the light intensity is lower than the threshold value, the terminal distributes a starting event to the thread pool and executes the starting event so as to start the flashlight function, and therefore, even if the user is in a weak light environment, such as at night, the method can ensure that the user can clearly view the font size of the adjusted terminal screen.
Fig. 5 is a schematic structural diagram of an apparatus for adjusting a font on a screen according to an embodiment of the present invention. As shown in fig. 5, the apparatus 50 includes a first obtaining module 501 and an adjusting module 502. The first obtaining module 501 is used for obtaining the current distance between the human eyes and the terminal screen and the eyesight type. The adjusting module 502 is configured to adjust the font of the terminal screen according to the eyesight type and the current distance.
In the embodiment of the present invention, after the first obtaining module 501 obtains the current distance between the human eyes and the terminal screen and the eyesight type, for example, the current distance is 2OCM, and the eyesight type is myopia, the information is provided to the adjusting module 502, the adjusting module 502 adjusts the font presented on the terminal screen according to the received eyesight type and the current distance information, and the adjusting mode of the font may be automatically enlarging the font size or rendering the font color.
Since the embodiment of the apparatus of the present invention and the embodiment of the method of the present invention are based on the same inventive concept, the technical solutions in the embodiment of the method are also applicable to the embodiment of the apparatus, and therefore, detailed descriptions are omitted in the embodiment of the apparatus of the present invention. By adopting the device provided by the embodiment, the device can adapt to consumer groups with different vision types, thereby meeting the requirements of diversified users.
Fig. 6 is a schematic structural diagram of another apparatus for adjusting screen fonts according to an embodiment of the present invention. As shown in fig. 6, the apparatus 60 includes a first obtaining module 601 and an adjusting module 602. The first obtaining module 601 is used for obtaining the current distance between the human eyes and the terminal screen and the eyesight type. The adjusting module 602 is configured to adjust a font of the terminal screen according to the eyesight type and the current distance.
Optionally, the apparatus 60 further comprises a second obtaining module 603 and a first determining module 604. The second obtaining module 603 is configured to obtain a use distance between a user's eye and a terminal screen when the user normally uses the terminal. The first determining module 604 is used for determining the vision type according to the relationship between the use distance and the normal vision distance.
Optionally, as shown in fig. 6a, the adjusting module 602 comprises a first adjusting unit 6021. The first adjusting unit 6021 is configured to adjust a font size corresponding to the current distance presented on the terminal screen according to a first adjusting relationship between the eyesight type, the current distance, and a preset font size. Or,
optionally, the adjustment module 602 comprises a second adjustment unit 6022. The second adjusting unit 6022 is configured to adjust a font size corresponding to the current distance presented on the terminal screen according to the second adjusting relationship between the eyesight type and the current distance.
Optionally, the second adjustment relationship is: the method comprises the steps of determining a current distance, determining a first correction parameter according to the eyesight type, and determining a reference distance and a reference font size according to the eyesight type.
Optionally, the font size of the current distance ± { (current distance/reference distance) × (second correction parameter }), the reference font size being preset, and the second correction parameter being determined according to the eyesight type.
Optionally, the apparatus 60 further comprises a receiving module 605 and a second determining module 606. The receiving module 605 is used for receiving a selection event input by a user. The second determination module 606 is for determining the selected vision type based on the selection event.
Optionally, the apparatus 60 further comprises a third obtaining module 607 and a rendering module 608. The third obtaining module 607 is configured to obtain scene information of a location where the user is located. The rendering module 608 is configured to render font colors matching the scene information according to the scene information.
Optionally, the scene information comprises light intensity; the device 60 also includes an opening module 609. The turning on module 609 is used for turning on the flashlight function if the light intensity is lower than the threshold value.
In the embodiment of the present invention, before the first obtaining module 601 obtains the eyesight type of the user, the second obtaining module 603 may obtain the use distance between the eyes of the user and the terminal screen when the user uses the terminal normally, and the first determining module 604 determines the eyesight type according to the relationship between the use distance and the normal eyesight distance.
In this embodiment of the present invention, the adjusting module 602 includes a first adjusting unit 6021 or a second adjusting unit 6022, and the adjusting units may respectively select to adjust the font size according to different manners, for example, the adjusted font size may be determined by looking up a table, or the adjusted font size may be calculated according to an adjusting relationship. In addition, in the embodiment of the present invention, in addition to adjusting the font size, the font may also be rendered to match the scene information of the terminal.
Since the embodiment of the apparatus of the present invention and the embodiment of the method of the present invention are based on the same inventive concept, the technical solutions in the embodiment of the method are also applicable to the embodiment of the apparatus, and therefore, detailed descriptions are omitted in the embodiment of the apparatus of the present invention. In the embodiment, the fonts are adjusted according to different eyesight types and the current distance, so that the method can adapt to consumer groups with different eyesight types, thereby meeting the requirements of diversified users and improving the experience of the users. Moreover, in order to better improve the definition of the font of the terminal screen, the font color can be rendered by using the scene according to the user.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 7, the electronic device 70 includes one or more processors 701 and a memory 702. In fig. 7, one processor 701 is taken as an example.
The processor 701 and the memory 702 may be connected by a bus or other means, such as the bus connection shown in fig. 7.
The memory 702 is a non-volatile computer-readable storage medium and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for adjusting screen fonts in the embodiment of the present invention (for example, the modules shown in fig. 5 and the modules or units shown in fig. 6). The processor 701 executes various functional applications and data processing of the apparatus for adjusting screen font by running nonvolatile software programs, instructions and modules stored in the memory 702, that is, the functions of the method for adjusting screen font of the above method embodiment and the various modules of the above apparatus embodiment are realized.
The memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701, which may be connected to processor 701 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules are stored in the memory 702 and, when executed by the one or more processors 701, perform the method for controlling the zooming of the operation interface in any of the above-described method embodiments, for example, perform the steps illustrated in fig. 1, 2, 3a and 4 described above; the functions of the respective blocks in fig. 5, and the functions of the respective blocks and units in fig. 6 can also be implemented.
The electronic device 70 of embodiments of the present invention exists in a variety of forms in performing the various steps described above and shown in FIGS. 1, 2, 3a, and 4; the functions of the respective modules in fig. 5 and the functions of the respective modules and units in fig. 6 can also be implemented, and the electronic device 70 includes but is not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play video content, and generally also have mobile internet access features. This type of device comprises: video players, handheld game consoles, and intelligent toys and portable car navigation devices.
(4) And other electronic equipment with a video playing function and an internet surfing function.
Embodiments of the present invention also provide a non-volatile computer storage medium, which stores computer-executable instructions, which are executed by one or more processors, such as the processor 701 in fig. 7, and enable the one or more processors to perform the method for adjusting screen fonts in any of the above method embodiments, such as the steps shown in fig. 1, 2, 3a and 4 described above; the functions of the respective blocks in fig. 5, and the functions of the respective blocks and units in fig. 6 can also be implemented.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (11)
1. A method for adjusting screen fonts, comprising:
acquiring the current distance between human eyes and a terminal screen and the vision type;
adjusting the font of the terminal screen according to the eyesight type and the current distance;
the adjusting the font of the terminal screen according to the eyesight type and the current distance comprises:
adjusting the font size corresponding to the current distance presented by the terminal screen according to the vision type, the first adjustment relation between the current distance and the preset font size; or,
adjusting the font size corresponding to the current distance presented by the terminal screen according to the second adjustment relation between the eyesight type and the current distance;
the second regulation relation is as follows:
the method comprises the steps that the font size of a current distance { (current distance-first correction parameter)/reference distance }. the reference font size, the first correction parameter is determined according to the eyesight type, and the reference distance and the reference font size are preset; or,
the font size of the current distance is ± { (current distance/reference distance) × (second correction parameter }), the reference font size is preset, and the second correction parameter is determined according to the eyesight type.
2. The method of claim 1, wherein said obtaining the vision type is preceded by:
acquiring the use distance between human eyes and a terminal screen when a user normally uses the terminal;
and determining the vision type according to the relationship between the use distance and the normal vision distance.
3. The method of claim 1, wherein said obtaining the vision type is preceded by:
receiving a selection event input by a user;
determining the selected vision type based on the selection event.
4. The method according to any one of claims 1-3, further comprising:
acquiring scene information of a position where a user is located;
and rendering the font color matched with the scene information according to the scene information.
5. The method of claim 4, wherein the scene information comprises light intensity;
the method further comprises the following steps:
and if the light intensity is lower than the threshold value, the flashlight function is started.
6. An apparatus for adjusting font of a screen, comprising:
the first acquisition module is used for acquiring the current distance between human eyes and a terminal screen and the vision type;
the adjusting module is used for adjusting the font of the terminal screen according to the eyesight type and the current distance;
wherein the adjustment module comprises:
the first adjusting unit is used for adjusting the font size corresponding to the current distance presented by the terminal screen according to the first adjusting relation among the eyesight type, the current distance and the preset font size; or,
the second adjusting unit is used for adjusting the font size corresponding to the current distance and displayed on the terminal screen according to the second adjusting relation between the eyesight type and the current distance;
the second regulation relation is as follows:
the method comprises the steps that the font size of a current distance { (current distance-first correction parameter)/reference distance }. the reference font size, the first correction parameter is determined according to the eyesight type, and the reference distance and the reference font size are preset; or,
the font size of the current distance is ± { (current distance/reference distance) × (second correction parameter }), the reference font size is preset, and the second correction parameter is determined according to the eyesight type.
7. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring the use distance between human eyes and a terminal screen when a user normally uses the terminal;
and the first determining module is used for determining the vision type according to the relationship between the using distance and the normal vision distance.
8. The apparatus of claim 6, further comprising:
the receiving module is used for receiving a selection event input by a user;
a second determining module for determining the selected vision type based on the selection event.
9. The apparatus according to any one of claims 6-8, further comprising:
the third acquisition module is used for acquiring scene information of the position where the user is located;
and the rendering module is used for rendering the font color matched with the scene information according to the scene information.
10. The apparatus of claim 9, wherein the scene information comprises light intensity;
the device further comprises:
and the starting module is used for starting the flashlight function if the light intensity is lower than the threshold value.
11. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a program of instructions executable by the at least one processor, the program of instructions being executable by the at least one processor to cause the at least one processor to:
acquiring the current distance between human eyes and a terminal screen and the vision type;
adjusting the font of the terminal screen according to the eyesight type and the current distance;
the adjusting the font of the terminal screen according to the eyesight type and the current distance comprises:
adjusting the font size corresponding to the current distance presented by the terminal screen according to the vision type, the first adjustment relation between the current distance and the preset font size; or,
adjusting the font size corresponding to the current distance presented by the terminal screen according to the second adjustment relation between the eyesight type and the current distance;
the second regulation relation is as follows:
the method comprises the steps that the font size of a current distance { (current distance-first correction parameter)/reference distance }. the reference font size, the first correction parameter is determined according to the eyesight type, and the reference distance and the reference font size are preset; or,
the font size of the current distance is ± { (current distance/reference distance) × (second correction parameter }), the reference font size is preset, and the second correction parameter is determined according to the eyesight type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610737045.6A CN106339086B (en) | 2016-08-26 | 2016-08-26 | Screen font adjusting method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610737045.6A CN106339086B (en) | 2016-08-26 | 2016-08-26 | Screen font adjusting method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106339086A CN106339086A (en) | 2017-01-18 |
CN106339086B true CN106339086B (en) | 2018-03-02 |
Family
ID=57822315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610737045.6A Expired - Fee Related CN106339086B (en) | 2016-08-26 | 2016-08-26 | Screen font adjusting method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106339086B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547749A (en) * | 2017-09-08 | 2018-01-05 | 深圳天珑无线科技有限公司 | Word size adjusting method and device, terminal and computer-readable recording medium |
CN107800868A (en) * | 2017-09-21 | 2018-03-13 | 维沃移动通信有限公司 | A kind of method for displaying image and mobile terminal |
CN107888718A (en) * | 2017-09-28 | 2018-04-06 | 努比亚技术有限公司 | Terminal display screen, method of adjustment, mobile terminal and computer-readable recording medium |
CN108259664B (en) * | 2017-12-29 | 2021-03-19 | 北京元心科技有限公司 | Method and device for using mobile device as glasses |
CN108538343A (en) * | 2018-03-29 | 2018-09-14 | 重庆柚瓣家科技有限公司 | Collecting method based on artificial intelligence |
CN110660313A (en) * | 2018-06-29 | 2020-01-07 | 百度在线网络技术(北京)有限公司 | Information presentation method and device |
CN110109546A (en) * | 2019-05-05 | 2019-08-09 | 南京信息职业技术学院 | Character scaling device and method based on eyesight |
CN110569457A (en) * | 2019-08-01 | 2019-12-13 | 平安科技(深圳)有限公司 | page adjusting method and device, computer equipment and storage medium |
CN110716642B (en) * | 2019-09-29 | 2024-04-09 | 上海连尚网络科技有限公司 | Method and equipment for adjusting display interface |
CN112631491A (en) * | 2020-12-31 | 2021-04-09 | 咪咕文化科技有限公司 | Screen character adjusting method and device, network equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006126229A (en) * | 2004-10-26 | 2006-05-18 | Kyocera Mita Corp | Display apparatus and image forming apparatus |
CN102754046A (en) * | 2009-12-23 | 2012-10-24 | 摩托罗拉移动公司 | Method and device for visual compensation |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8209635B2 (en) * | 2007-12-20 | 2012-06-26 | Sony Mobile Communications Ab | System and method for dynamically changing a display |
CN101533327A (en) * | 2008-03-13 | 2009-09-16 | 英业达股份有限公司 | Window adjusting interface and adjusting method thereof |
CN102693067B (en) * | 2011-03-25 | 2017-12-12 | 吕洋波 | The adjustment system and method for font size |
CN103220386A (en) * | 2013-02-28 | 2013-07-24 | 高正峰 | Automatic adaptive terminal font size method and device according to human eyesight |
CN103558971A (en) * | 2013-10-29 | 2014-02-05 | 小米科技有限责任公司 | Browsing method, browsing device and terminal device |
KR101555216B1 (en) * | 2014-06-20 | 2015-09-23 | (주)디자인인트로 | Method and apparatus for calculating letter size for farsighted eyes |
CN105808190B (en) * | 2016-03-14 | 2019-01-25 | Oppo广东移动通信有限公司 | A kind of display control method and terminal device of display screen |
-
2016
- 2016-08-26 CN CN201610737045.6A patent/CN106339086B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006126229A (en) * | 2004-10-26 | 2006-05-18 | Kyocera Mita Corp | Display apparatus and image forming apparatus |
CN102754046A (en) * | 2009-12-23 | 2012-10-24 | 摩托罗拉移动公司 | Method and device for visual compensation |
Also Published As
Publication number | Publication date |
---|---|
CN106339086A (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106339086B (en) | Screen font adjusting method and device and electronic equipment | |
US11727695B2 (en) | Language element vision augmentation methods and devices | |
US20170277258A1 (en) | Method for adjusting screen luminance and electronic device | |
CN104167196B (en) | The control method of a kind of backlight illumination, device and electronic equipment | |
JP2006345529A (en) | Method and system of red-eye correction using user-adjustable threshold | |
CN106778623A (en) | Terminal screen control method and device and electronic equipment | |
CN105929951A (en) | Screen display method and device | |
WO2022063270A1 (en) | Method and apparatus for identifying attribute features of facial image, and electronic device | |
CN112214112A (en) | Parameter adjusting method and device | |
CN111857484A (en) | Screen brightness adjusting method and device, electronic equipment and readable storage medium | |
CN112947824A (en) | Display parameter adjusting method and device, electronic equipment and medium | |
CN109040427B (en) | Split screen processing method and device, storage medium and electronic equipment | |
CN113132642B (en) | Image display method and device and electronic equipment | |
CN112925497A (en) | Content display method and device, electronic equipment and readable storage medium | |
CN112581899B (en) | Control method and electronic device | |
CN114816065A (en) | Screen backlight adjusting method, virtual reality device and readable storage medium | |
CN113835804A (en) | Information display method and electronic equipment | |
CN110266881B (en) | Application control method and related product | |
CN109656499B (en) | Flexible screen display control method, terminal and computer readable storage medium | |
CN113824832B (en) | Prompting method, prompting device, electronic equipment and storage medium | |
CN110413115B (en) | Display control method and related equipment | |
CN112989890B (en) | Image detection method, device and storage medium | |
CN112153275B (en) | Photographing terminal and image selection method thereof | |
CN118569205A (en) | Augmented reality display method and device, storage medium and terminal | |
CN117472315A (en) | Eye protection system and method for tablet personal computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180302 |