CN108762485A - Button font method of adjustment, device, mobile terminal and storage medium - Google Patents
Button font method of adjustment, device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN108762485A CN108762485A CN201810362514.XA CN201810362514A CN108762485A CN 108762485 A CN108762485 A CN 108762485A CN 201810362514 A CN201810362514 A CN 201810362514A CN 108762485 A CN108762485 A CN 108762485A
- Authority
- CN
- China
- Prior art keywords
- current
- font
- parameter
- button
- adjustment
- 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.)
- Granted
Links
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
-
- 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/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
Abstract
The invention discloses a kind of button font method of adjustment, this method includes:Obtain the current distance between current environment light intensity and user and screen;Current font parameter is obtained using current relevant parameter, current font parameter is matched with relevant parameter, and current relevant parameter includes at least two in current key arrangement, current environment light intensity and current distance;According to current font parameter adjustment button font.The invention also discloses a kind of button font adjusting apparatus, equipment and readable storage medium storing program for executing.By the above-mentioned means, the present invention can improve the visual experience of user, and reduce accidentally tactile possibility.
Description
Technical field
The present invention relates to field of mobile terminals, more particularly to a kind of button font method of adjustment, device, system and storage
Medium.
Background technology
With the development of electronic technology, mobile terminal is widely used.Mobile terminal includes mobile phone, tablet computer, notes
This computer, vehicle-mounted computer etc. can move the electronic equipment used.Mobile terminal is generally equipped with touch screen as input unit.It can
To show that several buttons input for user in the specified region of display screen.Generally there is at least one be used in each button
Indicate that the character of the keypress function, the display parameters of these characters can be referred to as button font.
User in operation, since the factors such as the distance between human eye and screen, environmental light intensity can change, fixed button
Font may cause user in some cases that can not see the character in button clearly, influence the visual experience of user, and improve and accidentally touch
Possibility.
Invention content
The invention mainly solves the technical problem of providing a kind of button font method of adjustment, device, system and storages to be situated between
Matter, can solve fixed button font in the prior art influences the visual experience of user and improves asking for accidentally tactile possibility
Topic.
In order to solve the above technical problem, the present invention provides a kind of button font method of adjustment, this method includes:It obtains
Current distance between current environment light intensity and user and screen;Current font parameter is obtained using current relevant parameter, when
Preceding font parameter is matched with relevant parameter, and current relevant parameter includes current key arrangement, current environment light intensity and current distance
In at least two;According to current font parameter adjustment button font.
In order to solve the above technical problem, the present invention provides a kind of button font adjusting apparatus, which includes:First
Acquisition module, for obtaining the current distance between current environment light intensity and user and screen;Second acquisition module, for profit
Current font parameter is obtained with current relevant parameter, current font parameter is matched with relevant parameter, and current relevant parameter includes working as
At least two in preceding key arrangement, current environment light intensity and current distance;Module is adjusted, for according to current font parameter tune
Whole button font.
In order to solve the above technical problem, the present invention provides a kind of mobile terminal, which includes processor, light
Sensor, display screen and touch screen, processor couple optical sensor, display screen and touch screen, and processor refers to for executing
It enables to realize method above-mentioned.
In order to solve the above technical problem, the present invention provides a kind of readable storage medium storing program for executing, are stored with instruction, and instruction is held
Method above-mentioned is realized when row.
The beneficial effects of the invention are as follows:The font parameter of current matching, current association ginseng are obtained using current relevant parameter
Number includes at least two in current key arrangement, current environment light intensity and current distance, and according to current font parameter adjustment
Button font realizes the adaptive adjustment of button font, the possibility for the character that user does not see in button is reduced, to change
The visual experience of kind user, and reduce accidentally tactile possibility.
Description of the drawings
Fig. 1 is the flow diagram of button font method of adjustment first embodiment of the present invention;
Fig. 2 is the flow diagram of button font method of adjustment second embodiment of the present invention;
Fig. 3 is the flow diagram of button font method of adjustment 3rd embodiment of the present invention;
Fig. 4 is the idiographic flow schematic diagram of S22 in Fig. 3;
Fig. 5 is the larger entering method keyboard schematic diagram of current font size in a specific embodiment of the invention;
Fig. 6 is the smaller entering method keyboard schematic diagram of current font size in a specific embodiment of the invention;
Fig. 7 is the flow diagram of button font method of adjustment fourth embodiment of the present invention;
Fig. 8 is the flow diagram of the 5th embodiment of button font method of adjustment of the present invention;
Fig. 9 is the structural schematic diagram of button font adjusting apparatus first embodiment of the present invention;
Figure 10 is the structural schematic diagram of button font adjusting apparatus second embodiment of the present invention;
Figure 11 is the structural schematic diagram of mobile terminal first embodiment of the present invention;
Figure 12 is the structural schematic diagram of readable storage medium storing program for executing first embodiment of the present invention.
Specific implementation mode
The present invention is described in detail with reference to the accompanying drawings and examples.What is do not conflicted in following embodiment can phase
Mutually combine.
As shown in Figure 1, button font method of adjustment first embodiment of the present invention includes:
S1:Obtain the current distance between current environment light intensity and user and screen.
Optical sensor can be called to read the current environment light intensity that it is detected.Optical sensor generally comprises light-sensitive element
(such as photo resistance, photodiode, phototriode etc.) and peripheral circuit.The output valve (generally voltage) of optical sensor
Size can show the power of current environment light.
Range sensor can be called to obtain the current distance between user and screen.Screen can be liquid crystal display, hair
Optical diode (OLED) screen, electronic ink screen etc..Range sensor can be detected using modes such as infrared light, laser, ultrasounds
The distance between user and screen.In addition it is also possible to which front camera is called to take pictures user, human eye knowledge is carried out to photo
Not to position the wherein position of eyes of user and size, and compared with the picture including eyes of known distance to calculate use
The position of family eyes in space.In this case, can using the vertical range of eyes of user to screen as current distance,
The air line distance (not necessarily normal to screen) of display area that can be by eyes of user to button on the screen as currently away from
From.
S2:Current font parameter is obtained using current relevant parameter.
Current font parameter may include at least one of current font size, current type, current color of button font.
Button font refers to the display parameters of character in button, and the character in button can be text or icon.For text formatting
Button character, current font size can refer to its specific font size, such as 16sp, for the button character of iconic format, currently
Font size can refer to its specific size.Current type may include that the specific font of button character (is only applicable to text, such as black
Body, the Song typeface, regular script etc.) and/or shape tag (be used to indicate character whether overstriking/inclination etc.).The quantity of button can be 1
It is a, can also be more, such as input method keyboard.
Current font parameter is matched with current relevant parameter, it is meant that current font parameter meets current relevant parameter servant
The visual experience requirement of eye, suitable user check.Current relevant parameter includes current key arrangement, current environment light intensity and current
At least two in distance.In addition, current relevant parameter may further include current screen brightness, current screen direction (cross
Screen or vertical screen) etc..In general, current distance is bigger, and current font size is bigger, and current type is more eye-catching (such as overstriking), when
Preceding color is deeper.
Current key arrangement may include character distribution in current number of keys, current button distribution pattern, current button,
At least one of current button size.Current button distribution pattern refers to how multiple buttons arrange, for example, 4 buttons
Can be in line, one row or 2 × 2 array.Character distribution refers to that multiple words are equipped in a button in current button
How character arranges in the case of symbol.When number of keys is more than 1, the current font parameter of the character in different key can phase
Together, it can also be different.When being equipped with multiple characters in some button, the current font parameter of the kinds of characters in the button can be with
It is identical, it can also be different.Current key arrangement can be pre-set, can also be that current environment is utilized before this step
What light intensity and current distance determined.For example, can be zoomed in and out to button size according to current environment light intensity and current distance.Again
For example, sharing 4 buttons, when current distance is more than some threshold value, in a row, current distance is less than or equal to 4 key arrangements
When the threshold value, 42 × 2 array arrangements of button.For another example when current environment light intensity is less than or equal to some threshold value, in button only
There are one characters, increase a character when current environment light intensity is more than the threshold value, in button as subscript/subscript.
The specific acquisition modes of current font parameter can refer to the description of subsequent embodiment.
S3:According to current font parameter adjustment button font.
Part Chong Die with current font parameter in button font can be modified according to current font parameter.Then
The drafting function that call operation system provides draws character in button according to modified button font.
By the implementation of the present embodiment, the font parameter of current matching, current association ginseng are obtained using current relevant parameter
Number includes at least two in current key arrangement, current environment light intensity and current distance, and according to current font parameter adjustment
Button font realizes the adaptive adjustment of button font, reduces the possibility that user does not see character in button, so as to improve
The visual experience of user, and reduce accidentally tactile possibility.
As shown in Fig. 2, button font method of adjustment second embodiment of the present invention, is adjusted in the method for the present invention button font
On the basis of first embodiment, S2 includes:
S21:Current font parameter is calculated using current relevant parameter and constraint function.
Constraint function can be expressed as y=f (x), and wherein f is constraint function, and x is the independent variable of constraint function, and y is constraint
The dependent variable of function.The independent variable x of constraint function includes current relevant parameter, and the dependent variable y of constraint function includes current font
Parameter.For example, in the case that current relevant parameter includes current distance and current environment light intensity, current font parameter sc=f (dc,
lc), wherein dcFor current distance, lcFor current environment light intensity.
Constraint function is usually to pre-set and store in a memory in the mobile terminal.For example, can before manufacture
To carry out many experiments, the font parameter being suitble under different relevant parameters is acquired, so that it is determined that constraint function.It was using
Cheng Zhong, constraint function can be updated using current font parameter and current relevant parameter later by obtaining current font parameter.
Other than relevant parameter, the independent variable of constraint function may further include default font parameter and corresponding pre-
If relevant parameter.Before this, it can be searched in the mapping relations between pre-stored relevant parameter and font parameter default
Font parameter and its corresponding default relevant parameter.
In general, it can be selected in all relevant parameters that mapping relations include with current relevant parameter matching degree most
Relevant parameter is preset in high conduct.Matching degree highest means default global error between relevant parameter and current relevant parameter
It is minimum.The calculating of global error can use some or all of parameter in relevant parameter, in this course, relevant parameter
In different parameters can have different priority/weights.For example, in the case where relevant parameter includes key arrangement, press
Key layout can have highest priority/maximum weight.
For example, in one embodiment, the object of adjustment is the button font of entering method keyboard, and font parameter is only
Including font size.In the case that the entering method keyboard layout found in mapping relations is 9 key, it is 20sp to preset font size, corresponding
Pre-determined distance is 30cm, and it is 500 luxs to preset environmental light intensity.According to formula sc=sd+((dc-dd)*doffset/dstep)*
dweight+((ld-lc)*loffset/lstep)*(1-dweight) calculate current font size, wherein scFor current font size, sdTo preset font size,
dcFor pre-determined distance, ddFor current distance, doffsetThe offset changed with distance for font size;dstepChange for reference distance and walks
It is long, lcTo preset environmental light intensity, ldFor current environment light intensity, loffsetThe offset changed with environmental light intensity for font size;lstepFor
Reference environment light intensity change step.
In mapping relations, the value of the parameter in relevant parameter can be section, can also be isolated number.If worked as
Each parameter in preceding relevant parameter is equal with the corresponding parameter in default relevant parameter or falls into its section, then can save
Go the calculating process of constraint function and directly using default font parameter as current font parameter.
In other embodiments of the present invention, other modes may be used to obtain current font parameter, for example, basis respectively
Each parameter in current relevant parameter determines a corresponding candidate font parameter, then according to default rule, from all
One is selected in candidate font parameter as current font parameter, or comprehensive all candidate font parameters are calculated and (such as weighted
It is average) obtain current font parameter.
As shown in figure 3, button font method of adjustment 3rd embodiment of the present invention, is adjusted in the method for the present invention button font
On the basis of second embodiment, further comprise after S21:
S22:Current font parameter is adjusted using current key arrangement.
Other than the visual experience of human eye requires, current font parameter will also adapt to current key arrangement, therefore can be with
The current font parameter being calculated is adjusted using current key arrangement, according still further to the current font parameter tune after adjustment
Whole button font.For example, overall beautiful in order to ensure button, character, but can not be too small no more than the boundary of button.Under
Face illustrates a kind of specific adjustment mode by taking font size as an example.As shown in figure 4, optional, this step can specifically include:
S221:Judge the ratio of current font size character boundary and current button size whether in threshold range.
By taking rectangular character and button as an example, the size of character and button is determined by its width and height.Behaviour can be called
Make the function of system to obtain the boundary up and down of character under third font size, the difference of right boundary is the width of character, up and down
The difference on boundary is the height of character.The ratio of width and height can separately be carried out when judging ratio whether in threshold range
Judge, directly the ratio of character and button size can also be judged.When width and height separately judge, width
Threshold range and the threshold range of height may be the same or different.
For the beauty of display, it can require character that cannot exceed button boundary, the upper limit of threshold range can be at this time
1。
If ratio not in threshold range, jumps to S222, otherwise current font size is not adjusted.
S222:Adjustment is zoomed in and out to current font size.
The ratio of current font size character boundary and current button size after scaling adjustment is in threshold range.
For example, then above entering method keyboard example, current font size s is calculatedcLater, call operation system
The function Paint of offer.Define Rect r=newPaint () .getTextBounds ().The input quantity of Paint functions is
s3, output quantity r includes r.left, r.right, r.top and r.bottom, respectively represents third font size s3Character it is left and right,
Upper and lower boundary.The width width=r.right-r.left of third font size character, height height=r.bottom-r.top.
The threshold range of width ratio and height ratio is [n, 1], and 0<n<1.Judge width whether within [n*kw, kw] and
Whether height is within [n*kh, kh], and kw is by width of key, and kh is button height.If both in range, by third
Font size s3As current font size, otherwise third font size is zoomed in and out to obtain current font size.The width of current font size character exists
Within [n*kw, kw] and height is within [n*kh, kh].
By the larger entering method keyboard of the current font size for calculating with after necessary adjustment, obtaining as shown in figure 5, obtaining
Current font size it is smaller entering method keyboard it is as shown in Figure 6.
As shown in fig. 7, button font method of adjustment fourth embodiment of the present invention, is adjusted in the method for the present invention button font
On the basis of 3rd embodiment, further comprise after S22:
S23:By after adjustment current font parameter and current relevant parameter be stored between font parameter and relevant parameter
Mapping relations in.
Current relevant parameter during follow-up use matches (equal or fall into range with stored current relevant parameter
It is interior) in the case of, stored current font parameter can be directly used, the process of calculating and adjustment is saved.
As shown in figure 8, the 5th embodiment of button font method of adjustment of the present invention, is adjusted in the method for the present invention button font
On the basis of first embodiment, after S2, further comprise before S3:
S4:Current font parameter is corrected using user's reference value.
In actual use, user may be dissatisfied to the font parameter of adjust automatically and be manually adjusted, can
To store the font parameter after manually adjusting and relevant parameter when manually adjusting as user's reference value.It is corrected current
Font parameter can be adjusted, and can also be without adjustment.If current relevant parameter and some pre-stored
Relevant parameter in user's reference value is same or similar like (error is less than specified threshold), can utilize the pre-stored pass
Join the correction ratio that the corresponding user's reference value of parameter calculates current font;Then by current font parameter according to correction ratio into
Row scaling is with the current font parameter after being corrected.Button word subsequently can be adjusted according to the current font parameter after correction
Body is to adapt to the use habit of user.
Specific correcting algorithm is illustrated, in a specific embodiment, the font size in some user's reference value is sm, should
Relevant parameter in user's reference value is matched with current relevant parameter, scaling ratio=min (abs ((sm-sd)/(dc-
dd)),abs((sm-sd)/(lc-ld))), wherein sdTo preset font size, dcFor pre-determined distance, ddFor current distance, lcTo preset ring
Border light intensity, ldFor current environment light intensity, abs () expressions ask absolute value, min () expressions to be minimized.Then current font size is multiplied
Current font size after using scaling as correction is assigned to current font size, i.e. sc=sc*ratio。
As shown in figure 9, button font adjusting apparatus first embodiment of the present invention includes:
First acquisition module 11, for obtaining the current distance between current environment light intensity and user and screen;
Second acquisition module 12, for obtaining current font parameter, current font parameter and pass using current relevant parameter
Join parameter matching, current relevant parameter includes at least two in current key arrangement, current environment light intensity and current distance;
Module 13 is adjusted, for according to current font parameter adjustment button font.
As shown in Figure 10, button font adjusting apparatus second embodiment of the present invention is to adjust to fill in button font of the present invention
On the basis of setting first embodiment, the second acquisition module 12 includes:
Computing unit 121 constrains letter for current font parameter to be calculated using current relevant parameter and constraint function
Several independents variable includes relevant parameter, and the dependent variable of constraint function includes current font parameter.
Adjustment unit 122, for being adjusted current font parameter to obtain current font using current key arrangement
Parameter.
Optionally, the independent variable of constraint function further comprises default font parameter and corresponding default relevant parameter.
Optionally, current font parameter includes current font size, and current key arrangement includes current button size, adjustment unit
Whether 121 for judging the ratio of current font size character boundary and current button size in threshold range;If ratio is not in threshold
It is worth in range, then adjustment, the current font size character boundary after scaling adjustment and current button size is zoomed in and out to current font size
Ratio in threshold range.
Optionally, button font adjusting apparatus further comprises storage unit, for the current font parameter after adjusting
And current relevant parameter is stored in the mapping relations between font parameter and relevant parameter.
Optionally, button font adjusting apparatus further comprises correction module, for utilizing user's reference value to current word
Body parameter is corrected.
Optionally, correction module includes:
Ratio computing unit, for calculating correction ratio using user's reference value.
Unit for scaling, for being zoomed in and out according to correction ratio current font parameter with the current font after being corrected
Parameter.
Optionally, button font adjusting apparatus further comprises determining module, for using current environment light intensity and currently
Distance determines current key arrangement.
The function of button font adjusting apparatus each section of the present invention and feasible extension can refer to button font tune of the present invention
Description in each embodiment of engagement positions, details are not described herein.
As shown in figure 11, mobile terminal first embodiment of the present invention includes processor 110, optical sensor 120, display screen
130 and touch screen 140.Processor 110 couples optical sensor 120, display screen 130 and touch screen 140.Display screen in figure
130 and touch screen 140 be two independent devices, it is both practical to integrate.Mobile terminal can be wrapped further
Include range sensor and/or front camera (being not drawn into figure).
Processor 110 controls the operation of mobile terminal, and processor 110 can also be known as CPU (Central Processing
Unit, central processing unit).Processor 110 may be a kind of IC chip, the processing capacity with signal sequence.Place
Reason device 110 can also be general processor, digital signal sequences processor (DSP), application-specific integrated circuit (ASIC), ready-made compile
Journey gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.It is logical
With processor can be microprocessor or the processor can also be any conventional processor etc..
Processor 110 is appointed for executing instruction with realizing in the first to the 5th embodiment of button font method of adjustment of the present invention
The method that one and the combination that does not conflict are provided.
As shown in figure 12, readable storage medium storing program for executing first embodiment of the present invention includes memory 210, and memory 210 is stored with
Instruction, which, which is performed, realizes any of first to the 5th embodiment of button font method of adjustment of the present invention and arbitrarily
The method that the combination not conflicted is provided.
Memory 210 may include read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), flash memory (Flash Memory), hard disk, CD etc..
In several embodiments provided by the present invention, it should be understood that disclosed method and apparatus can pass through it
Its mode is realized.For example, device embodiments described above are only schematical, for example, the module or unit
Division, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be by some interfaces, device or unit it is indirect
Coupling or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize present embodiment scheme
Purpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that the independent physics of each unit includes, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can be stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention
The all or part of step of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. the various media that can store program code.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this
Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field is included within the scope of the present invention.
Claims (16)
1. a kind of button font method of adjustment, which is characterized in that including:
Obtain the current distance between current environment light intensity and user and screen;
Current font parameter is obtained using current relevant parameter, the current font parameter is matched with the relevant parameter, described
Current relevant parameter includes at least two in current key arrangement, the current environment light intensity and the current distance;
According to button font described in the current font parameter adjustment.
2. according to the method described in claim 1, it is characterized in that,
It is described to include using current relevant parameter acquisition current font parameter:
The current font parameter is calculated using the current relevant parameter and constraint function, the constraint function becomes certainly
Amount includes the current relevant parameter, and the dependent variable of the constraint function includes the current font parameter.
3. according to the method described in claim 2, it is characterized in that,
The independent variable of the constraint function further comprises default font parameter and corresponding default relevant parameter.
4. according to the method described in claim 2, it is characterized in that,
Described be calculated after the current font parameter using the current relevant parameter and constraint function is further comprised:
The current font parameter is adjusted using the current key arrangement.
5. according to the method described in claim 4, it is characterized in that,
The current font parameter includes current font size, and the current key arrangement includes current button size, described to utilize institute
State current key arrangement to the current font parameter be adjusted including:
Judge the ratio of the current font size character boundary and the current button size whether in threshold range;
If the ratio zooms in and out adjustment not in the threshold range, to the current font size, after the scaling adjustment
Current font size character boundary and the current button size ratio in the threshold range.
6. according to the method described in claim 4, it is characterized in that,
Described be adjusted to the current font parameter using the current key arrangement is further comprised later:
By after adjustment the current font parameter and the current relevant parameter be stored between font parameter and relevant parameter
Mapping relations in.
7. according to the method described in any one of claim 1-6, which is characterized in that
Further comprise after the acquisition current font parameter using current relevant parameter:
The current font parameter is corrected using user's reference value.
8. the method according to the description of claim 7 is characterized in that
It is described using user's reference value to the current font parameter be corrected including:
Correction ratio is calculated using user's reference value;
The current font parameter is zoomed in and out according to the correction ratio with the current font parameter after being corrected.
9. according to the method described in any one of claim 1-6, which is characterized in that
Further comprise before the acquisition current font parameter using current relevant parameter:
The current key arrangement is determined using the current environment light intensity and the current distance.
10. a kind of button font adjusting apparatus, which is characterized in that including:
First acquisition module, for obtaining the current distance between current environment light intensity and user and screen;
Second acquisition module, for using current relevant parameter obtain current font parameter, the current font parameter with it is described
Relevant parameter matches, and the current relevant parameter includes current key arrangement, the current environment light intensity and the current distance
In at least two;
Module is adjusted, for according to button font described in the current font parameter adjustment.
11. device according to claim 10, which is characterized in that
Second acquisition module includes:
Computing unit, it is described for the current font parameter to be calculated using the current relevant parameter and constraint function
The independent variable of constraint function includes the relevant parameter, and the dependent variable of the constraint function includes the current font parameter.
12. according to the devices described in claim 11, which is characterized in that
Second acquisition module further comprises:
Adjustment unit, for being adjusted to the current font parameter using the current key arrangement.
13. device according to claim 12, which is characterized in that
The current font parameter includes current font size, and the current key arrangement includes current button size, and the adjustment is single
Whether member is for judging the ratio of the current font size character boundary and the current button size in threshold range;If described
Ratio then zooms in and out adjustment, the current font size after the scaling adjustment not in the threshold range to the current font size
The ratio of character boundary and the current button size is in the threshold range.
14. according to the device described in any one of claim 10-13, which is characterized in that further comprise:
Unit is corrected, for being corrected to the current font parameter using user's reference value.
15. a kind of mobile terminal, which is characterized in that including:Processor, optical sensor, display screen and touch screen, the processing
Device couples the optical sensor, the display screen and the touch screen, and the processor is for executing instruction to realize as weighed
Profit requires the method described in any one of 1-9.
16. a kind of readable storage medium storing program for executing is stored with instruction, which is characterized in that described instruction is performed realization such as claim
Method described in any one of 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810362514.XA CN108762485B (en) | 2018-04-20 | 2018-04-20 | Key font adjusting method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810362514.XA CN108762485B (en) | 2018-04-20 | 2018-04-20 | Key font adjusting method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108762485A true CN108762485A (en) | 2018-11-06 |
CN108762485B CN108762485B (en) | 2020-09-11 |
Family
ID=64010959
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810362514.XA Active CN108762485B (en) | 2018-04-20 | 2018-04-20 | Key font adjusting method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108762485B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825240A (en) * | 2019-11-01 | 2020-02-21 | 西南石油大学 | Keyboard with variable key surface size |
CN111290693A (en) * | 2020-01-20 | 2020-06-16 | 北京无限光场科技有限公司 | Virtual keyboard generation method and device, electronic equipment and computer storage medium |
CN112560396A (en) * | 2020-12-23 | 2021-03-26 | 广州六环信息科技有限公司 | Vehicle-mounted HMI (human machine interface) adjusting method, device and system, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101258462A (en) * | 2005-09-09 | 2008-09-03 | 微软公司 | Software key labeling on software keyboards |
CN105630167A (en) * | 2015-12-24 | 2016-06-01 | 浙江吉利控股集团有限公司 | Self-adaptive screen regulation method, self-adaptive screen regulation device and terminal device |
CN105808022A (en) * | 2016-03-10 | 2016-07-27 | 海信(山东)空调有限公司 | Projection key control method, projection key device and air conditioner |
CN106155477A (en) * | 2016-06-24 | 2016-11-23 | 北京奇虎科技有限公司 | The method of adjustment of screen-icon size, device and terminal |
CN107220050A (en) * | 2017-05-25 | 2017-09-29 | 努比亚技术有限公司 | Adaptive display method, terminal and computer-readable recording medium |
CN107491162A (en) * | 2017-09-29 | 2017-12-19 | 河南职业技术学院 | Display screen state adjustment method, display screen state adjusting device and terminal |
-
2018
- 2018-04-20 CN CN201810362514.XA patent/CN108762485B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101258462A (en) * | 2005-09-09 | 2008-09-03 | 微软公司 | Software key labeling on software keyboards |
CN105630167A (en) * | 2015-12-24 | 2016-06-01 | 浙江吉利控股集团有限公司 | Self-adaptive screen regulation method, self-adaptive screen regulation device and terminal device |
CN105808022A (en) * | 2016-03-10 | 2016-07-27 | 海信(山东)空调有限公司 | Projection key control method, projection key device and air conditioner |
CN106155477A (en) * | 2016-06-24 | 2016-11-23 | 北京奇虎科技有限公司 | The method of adjustment of screen-icon size, device and terminal |
CN107220050A (en) * | 2017-05-25 | 2017-09-29 | 努比亚技术有限公司 | Adaptive display method, terminal and computer-readable recording medium |
CN107491162A (en) * | 2017-09-29 | 2017-12-19 | 河南职业技术学院 | Display screen state adjustment method, display screen state adjusting device and terminal |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825240A (en) * | 2019-11-01 | 2020-02-21 | 西南石油大学 | Keyboard with variable key surface size |
CN111290693A (en) * | 2020-01-20 | 2020-06-16 | 北京无限光场科技有限公司 | Virtual keyboard generation method and device, electronic equipment and computer storage medium |
CN111290693B (en) * | 2020-01-20 | 2022-05-27 | 北京无限光场科技有限公司 | Virtual keyboard generation method and device, electronic equipment and computer storage medium |
CN112560396A (en) * | 2020-12-23 | 2021-03-26 | 广州六环信息科技有限公司 | Vehicle-mounted HMI (human machine interface) adjusting method, device and system, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108762485B (en) | 2020-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10304408B2 (en) | Method and apparatus for changing background color of toolbar with dominant color of picture | |
CN110837617A (en) | Webpage self-adaptive layout method, server and computer readable storage medium | |
CN108762485A (en) | Button font method of adjustment, device, mobile terminal and storage medium | |
CN109741281B (en) | Image processing method, image processing device, storage medium and terminal | |
CN107004396B (en) | Information processing unit and information processing method | |
DE202021102736U1 (en) | Electronic device including a variable screen size display | |
CN108628656A (en) | Interface adaptation method, device, computer equipment and storage medium on ios device | |
US9921719B2 (en) | Touch display apparatus and wallpaper replacing method thereof | |
CN104765600A (en) | Page processing method | |
CN103699233A (en) | Character string input method and device | |
CN106339086A (en) | Screen font adjustment method and device, and electronic equipment | |
US10073543B2 (en) | Image segmentation device and image segmentation method | |
WO2023045857A1 (en) | Image processing method and apparatus, electronic device and storage medium | |
CN106970746B (en) | Title bar setting method and device | |
US20120324382A1 (en) | User Interface Adjusting Method and Electronic Device Using the Same | |
CN107256122A (en) | Screen luminance adjustment method, device, terminal and computer-readable recording medium | |
CN104765599A (en) | Terminal | |
CN112817555A (en) | Volume control method and volume control device | |
CN111868779A (en) | Display control method and electronic equipment | |
CN117112090A (en) | Business page theme generation method, device, computer equipment, medium and product | |
US11211029B2 (en) | Electronic device with improved visibility of user interface | |
US9767765B2 (en) | Electronic device, code display method of electronic device and recording medium | |
CN114518859A (en) | Display control method, display control device, electronic equipment and storage medium | |
CN106598315B (en) | Touch display device and background image replacement method thereof | |
CN112650493A (en) | Method for generating control state image, using method, device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |