Embodiments of the present disclosure relate to a font adjusting method and an electronic device using the same.
Electronic devices such as a mobile phone include a screen to display information thereon using a predetermined font size. However, when in motion, such as walking, some users may not clearly see the information displayed on the screen using the predetermined font size.
Thus, there is a desire to overcome the above-described shortcomings.
The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of at least one embodiment. In the drawings, like reference numerals designate corresponding parts throughout the various views.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable medium include compact discs (CDs), digital video discs (DVDs), BLU-RAY disks, Flash memory, and hard disk drives.
Referring to
In the embodiment, the memory 11, the processor 12, the display screen 13, gravity sensor 14, and the velocity sensor 15 are connected with each other, directly or indirectly, for transferring data therebetween. In alternative embodiments, one of the gravity sensor 14 and the velocity sensor 15 may be omitted.
The state detecting module 101 controls the gravity sensor 14 and the velocity sensor 15 to detect a moving state of the electronic device 1 when the display screen 13 of the electronic device 1 turns on and is working normally. In one embodiment, the gravity sensor 14 detects an acceleration of the electronic device 1 when the display screen 13 of the electronic device 1 turns on and is working normally. The velocity sensor 15 may be a global positioning system receiver and detects a velocity of movement of the electronic device 1 when the display screen 13 of the electronic device 1 turns on and is working normally. When the detected acceleration or detected velocity is greater than predetermined values for a predetermined time, the processor 12 determines that the electronic device 1 is in a moving state. Otherwise, when the detected acceleration and detected velocity is less than or equal to the predetermined value for the predetermined time, the processor 12 determines that the electronic device 1 is stationary. In this embodiment, the first predetermined value of the acceleration and the second predetermined value of the velocity are pre-stored in the memory 11 by the processor 12.
The font size adjusting module 102 enlarges the font size of any text displayed on the display screen 13 to a predetermined font size when the electronic device 1 is determined to be in a moving state. In an alternative embodiment, the font size adjusting module 102 also gradually enlarges the font size of any text displayed on the display screen 13 commensurately with an increase of the detected velocity of the electronic device 1 or an increase of the detected acceleration of the electronic device 1 when the electronic device 1 is determined to be in a moving state.
In one embodiment, when the detected velocity is greater than a first predetermined value and less than a second predetermined value for the predetermined time, the font size adjusting module 102 enlarges the font size of text displayed on the display screen 13 to a first predetermined font size. When the detected velocity is greater than a second predetermined value for the predetermined time, the font size adjusting module 102 enlarges the font size of any text displayed on the display screen 13 to a second predetermined font size. The second predetermined font size is larger than the first predetermined font size. The second predetermined value is greater than the first predetermined value. In this embodiment, the first and the second predetermined font sizes and the first and the second predetermined values are pre-stored in the memory 11 by the processor 12.
In alternative embodiments, when the detected acceleration is greater than a first predetermined value and less than a second predetermined value for the predetermined time, the font size adjusting module 102 enlarges the font size of text displayed on the display screen 13 to a first predetermined font size. When the detected acceleration is greater than a second predetermined value for the predetermined time, the font size adjusting module 102 enlarges the font size of any text displayed on the display screen 13 to a second predetermined font size. The second predetermined font size is larger than the first predetermined font size. The second predetermined value is greater than the first predetermined value. In this embodiment, the first and the second predetermined font sizes and the first and the second values are pre-stored in the memory 11 by the processor 12.
The font size restoring module 103 resets, that is to say, reduces, the enlarged font size of the electronic device 1 to a default font size or an initial font size.
In step S01, the state detecting module 101 controls the sensors 14, 15 to detect if the electronic device 1 is in a moving state when the display screen 13 of the electronic device 1 is turned on and is working normally.
In step S02, the font size adjusting module 102 enlarges the font size of the electronic device 1 and controls the display screen 13 to display data in the enlarged font size when the electronic device 1 is detected to be in a moving state.
In step S03, the font size restoring module 103 restores and reduces the font size of the electronic device 1 to a default font size or an initial font size when the display screen 13 is turned off. In alternative embodiments, the font size restoring module 103 restores and reduces the font size of the electronic device 1 to a default font size or an initial font size when the electronic device 1 is detected to stop its movement for a period of time.
Even though numerous characteristics and advantages of certain inventive embodiments have been set out in the foregoing description, together with details of the structures and functions of the embodiments, the disclosure is illustrative only; and changes may be made in detail, especially in the matters of arrangement of parts within the principles of present invention to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
201210077785.3 | Mar 2012 | CN | national |