CN108762485B - Key font adjusting method and device, mobile terminal and storage medium - Google Patents

Key font adjusting method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN108762485B
CN108762485B CN201810362514.XA CN201810362514A CN108762485B CN 108762485 B CN108762485 B CN 108762485B CN 201810362514 A CN201810362514 A CN 201810362514A CN 108762485 B CN108762485 B CN 108762485B
Authority
CN
China
Prior art keywords
current
font
parameters
key
size
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.)
Active
Application number
CN201810362514.XA
Other languages
Chinese (zh)
Other versions
CN108762485A (en
Inventor
余飞
程坤
闫珂
翟吉博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
iFlytek Co Ltd
Original Assignee
iFlytek Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by iFlytek Co Ltd filed Critical iFlytek Co Ltd
Priority to CN201810362514.XA priority Critical patent/CN108762485B/en
Publication of CN108762485A publication Critical patent/CN108762485A/en
Application granted granted Critical
Publication of CN108762485B publication Critical patent/CN108762485B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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/04883Interaction 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

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 discloses a method for adjusting key fonts, which comprises the following steps: acquiring current ambient light intensity and a current distance between a user and a screen; acquiring current font parameters by using the current associated parameters, wherein the current font parameters are matched with the associated parameters, and the current associated parameters comprise at least two of current key layout, current environmental light intensity and current distance; and adjusting the font of the key according to the current font parameters. The invention also discloses a key font adjusting device, equipment and a readable storage medium. Through the mode, the visual experience of the user can be improved, and the possibility of mistaken touch is reduced.

Description

Key font adjusting method and device, mobile terminal and storage medium
Technical Field
The present invention relates to the field of mobile terminals, and in particular, to a method, an apparatus, a system, and a storage medium for adjusting a font of a key.
Background
With the development of electronic technology, mobile terminals are widely used. The mobile terminal comprises mobile electronic equipment such as a mobile phone, a tablet computer, a notebook computer and a vehicle-mounted computer. Mobile terminals are generally equipped with a touch screen as an input device. A number of keys may be displayed in a designated area of the display screen for user input. Each key typically has at least one character indicating the function of the key, and the display parameters of these characters may be referred to as the key font.
When the user operates, because factors such as the distance between human eyes and a screen and the ambient light intensity can change, the fixed key font can cause that the user can not clearly see characters in keys under certain conditions, the visual experience of the user is influenced, and the possibility of mistaken touch is improved.
Disclosure of Invention
The invention mainly solves the technical problem of providing a key font adjusting method, a key font adjusting device, a key font adjusting system and a storage medium, which can solve the problems that fixed key fonts influence the visual experience of a user and improve the possibility of mistaken touch in the prior art.
In order to solve the technical problem, the invention provides a key font adjusting method, which comprises the following steps: acquiring current ambient light intensity and a current distance between a user and a screen; acquiring current font parameters by using the current associated parameters, wherein the current font parameters are matched with the associated parameters, and the current associated parameters comprise at least two of current key layout, current environmental light intensity and current distance; and adjusting the font of the key according to the current font parameters.
In order to solve the above technical problem, the present invention provides a key font adjusting device, comprising: the first acquisition module is used for acquiring the current ambient light intensity and the current distance between a user and a screen; the second acquisition module is used for acquiring current font parameters by using the current associated parameters, the current font parameters are matched with the associated parameters, and the current associated parameters comprise at least two of current key layout, current environmental light intensity and current distance; and the adjusting module is used for adjusting the key font according to the current font parameter.
In order to solve the above technical problem, the present invention provides a mobile terminal, which includes a processor, an optical sensor, a display screen, and a touch screen, wherein the processor is coupled to the optical sensor, the display screen, and the touch screen, and the processor is configured to execute instructions to implement the foregoing method.
In order to solve the above technical problem, the present invention provides a readable storage medium storing instructions which, when executed, implement the foregoing method.
The invention has the beneficial effects that: the current associated parameters are used for obtaining the font parameters matched currently, the current associated parameters comprise at least two of the current key layout, the current environment light intensity and the current distance, the key fonts are adjusted according to the current font parameters, the self-adaptive adjustment of the key fonts is realized, the possibility that the user cannot clearly see the characters in the keys is reduced, the visual experience of the user is improved, and the possibility of mistaken touch is reduced.
Drawings
FIG. 1 is a flowchart illustrating a first embodiment of a method for adjusting a font of a key set according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for adjusting a font of a key set according to the present invention;
FIG. 3 is a flowchart illustrating a method for adjusting a font of a key set according to a third embodiment of the present invention;
FIG. 4 is a schematic view of the detailed process of S22 in FIG. 3;
FIG. 5 is a diagram illustrating a keyboard with a larger current font size for an input method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a keyboard with a smaller current font size for an input method in an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a fourth embodiment of a method for adjusting a font of a key set according to the present invention;
FIG. 8 is a flowchart illustrating a fifth exemplary embodiment of a method for adjusting a font of a key set according to the present invention;
FIG. 9 is a schematic structural diagram of a first embodiment of a key font adjusting apparatus according to the present invention;
FIG. 10 is a schematic structural diagram of a second embodiment of a key font adjusting apparatus according to the present invention;
fig. 11 is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
fig. 12 is a schematic structural diagram of a first embodiment of the readable storage medium of the present invention.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and examples. Non-conflicting ones of the following embodiments may be combined with each other.
As shown in fig. 1, a first embodiment of the method for adjusting a font of a key according to the present invention includes:
s1: and acquiring the current ambient light intensity and the current distance between the user and the screen.
The light sensor may be invoked to read the current ambient light intensity it detects. The light sensor generally includes a light sensitive element (e.g., a photo resistor, a photodiode, a phototransistor, etc.) and peripheral circuitry. The magnitude of the output value (typically a voltage) of the light sensor may indicate the intensity of the current ambient light.
A distance sensor may be invoked to obtain the current distance between the user and the screen. The screen may be a liquid crystal screen, a light emitting diode (OLED) screen, an electronic ink screen, or the like. The distance sensor may detect the distance between the user and the screen using infrared light, laser, ultrasound, or the like. In addition, the front camera can also be called to take a picture of the user, perform human eye recognition on the picture to locate the position and the size of the eyes of the user, and compare the position with the picture comprising the eyes at a known distance to calculate the position of the eyes of the user in the space. In this case, the current distance may be a vertical distance from the user's eyes to the screen, or a linear distance (not necessarily perpendicular to the screen) from the user's eyes to the display area of the key on the screen.
S2: and acquiring the current font parameters by using the current associated parameters.
The current font parameters may include at least one of a current font size, a current type, and a current color of the key font. The key font refers to display parameters of characters in keys, and the characters in the keys can be texts or icons. For text format key characters, the current font size may refer to its specific font size, e.g., 16sp, and for icon format key characters, the current font size may refer to its specific size. The current type may include a specific font of the keystroke character (applicable only to text, e.g., bold, sony, regular, etc.) and/or a shape marker (for indicating whether the character is bolded/tilted, etc.). The number of keys may be 1 or more, for example, a keyboard for an input method.
The current font parameters are matched with the current associated parameters, which means that the current font parameters meet the visual experience requirements of human eyes under the current associated parameters and are suitable for users to check. The current associated parameters include at least two of a current key layout, a current ambient light intensity, and a current distance. In addition, the current associated parameters may further include a current screen brightness, a current screen orientation (landscape or portrait), and the like. In general, the larger the current distance, the larger the current font size, the more conspicuous (e.g., bolded) the current type, and the darker the current color.
The current key layout may include at least one of a current key number, a current key distribution type, a distribution of characters in the current key, and a current key size. The current key distribution type refers to how a plurality of keys are arranged, for example, 4 keys may be arranged in a row, a column or a 2 × 2 array. The distribution of characters in the current key refers to how characters are arranged in the case where a plurality of characters are provided in one key. When the number of the keys is greater than 1, the current font parameters of the characters in different keys can be the same or different. When a plurality of characters are arranged in a certain key, the current font parameters of different characters in the key can be the same or different. The current key layout may be preset or determined before this step using the current ambient light intensity and the current distance. For example, the key size may be scaled according to the current ambient light intensity and the current distance. For another example, there are 4 keys in total, and when the current distance is greater than a certain threshold, the 4 keys are arranged in a row, and when the current distance is less than or equal to the threshold, the 4 keys are arranged in a 2 × 2 array. For another example, when the current ambient light intensity is less than or equal to a certain threshold, only one character is in the key, and when the current ambient light intensity is greater than the threshold, one character is added to the key as the superscript/subscript.
The specific manner of obtaining the current font parameters may refer to the description of the following embodiments.
S3: and adjusting the font of the key according to the current font parameters.
The portion of the key font that overlaps the current font parameters may be modified according to the current font parameters. And then calling a drawing function provided by the operating system, and drawing the character in the key according to the modified key font.
Through the implementation of the embodiment, the currently matched font parameters are obtained by using the current associated parameters, the current associated parameters comprise at least two of the current key layout, the current environmental light intensity and the current distance, the key font is adjusted according to the current font parameters, the self-adaptive adjustment of the key font is realized, the possibility that a user cannot see characters in the key clearly is reduced, the visual experience of the user is improved, and the possibility of mistaken touch is reduced.
As shown in fig. 2, a second embodiment of the key font adjusting method of the present invention is based on the first embodiment of the key font adjusting method of the present invention, and S2 includes:
s21: and calculating to obtain the current font parameters by using the current associated parameters and the constraint function.
The constraint function may be expressed as y ═ f (x), where f is the constraint function, x is the argument of the constraint function, and y is the dependent variable of the constraint function. The argument x of the constraint function comprises the current associated parameters and the dependent variable y of the constraint function comprises the current font parameters. For example, in case the currently associated parameters comprise the current distance and the current ambient light intensity, the current font parameter sc=f(dc,lc) Wherein d iscAs the current distance,/cThe current ambient light intensity.
The constraint function is typically pre-configured and stored in the memory of the mobile terminal. For example, before shipping, multiple experiments may be performed to collect font parameters that are suitable under different associated parameters, thereby determining the constraint function. In use, after obtaining the current font parameters, the constraint function may be updated with the current font parameters and the current associated parameters.
In addition to the associated parameters, the arguments of the constraint function may further include preset font parameters and corresponding preset associated parameters. Before that, the preset font parameters and the corresponding preset associated parameters may be searched in the mapping relationship between the pre-stored associated parameters and the font parameters.
In general, the association parameter with the highest matching degree with the current association parameter may be selected as the preset association parameter from all the association parameters included in the mapping relationship. The highest matching degree means that the overall error between the preset associated parameter and the current associated parameter is the smallest. The calculation of the overall error may be applied to some or all of the associated parameters, in which process different ones of the associated parameters may have different priorities/weights. For example, where the associated parameters include key layout, the key layout may have the highest priority/greatest weight.
For example, in a specific embodiment, the adjusted object is a key font of the input method keyboard, and the font parameters only include a font size. And under the condition that the input method keyboard layout found in the mapping relation is 9 keys, the preset character size is 20sp, and the corresponding preset distance isAt 30cm, the preset ambient light intensity is 500 lux. According to the formula sc=sd+((dc-dd)*doffset/dstep)*dweight+((ld-lc)*loffset/lstep)*(1-dweight) Calculating the current font size, where scIs the current font size, sdIs a preset number, dcIs a predetermined distance, ddAs the current distance, doffsetIs the offset of the change of the font size with distance; dstepFor reference distance change step length, lcTo preset the ambient light intensity,/dAs the current ambient light intensity,/offsetThe offset of the character size changing with the ambient light intensity; lstepThe reference ambient light intensity change step size.
In the mapping relationship, the value of the parameter in the associated parameter may be an interval or an isolated number. If each parameter in the current associated parameters is equal to or falls within the interval corresponding to the corresponding parameter in the preset associated parameters, the calculation process of the constraint function can be omitted and the preset font parameters can be directly used as the current font parameters.
In other embodiments of the present invention, the current font parameter may be obtained in other manners, for example, a corresponding candidate font parameter is determined according to each parameter in the current associated parameters, and then one of all candidate font parameters is selected as the current font parameter according to a preset rule, or the current font parameter is obtained by calculating (for example, weighting average) by combining all candidate font parameters.
As shown in fig. 3, the third embodiment of the key font adjusting method according to the present invention is based on the second embodiment of the key font adjusting method according to the present invention, and after S21, further includes:
s22: and adjusting the current font parameters by using the current key layout.
Besides the visual experience requirement of human eyes, the current font parameters also adapt to the current key layout, so that the current font parameters obtained by calculation can be adjusted by using the current key layout, and then the key fonts are adjusted according to the adjusted current font parameters. For example, to ensure the overall aesthetic appearance of the keys, the characters must not exceed the boundaries of the keys, but must not be too small. The following describes a specific adjustment method by taking the font size as an example. As shown in fig. 4, optionally, this step may specifically include:
s221: and judging whether the ratio of the size of the current font size character to the size of the current key is within a threshold range.
Taking square characters and keys as an example, the size of the characters and keys is determined by their width and height. The function of the operating system can be called to obtain the upper, lower, left and right boundaries of the character under the third font size, the difference between the left and right boundaries is the width of the character, and the difference between the upper and lower boundaries is the height of the character. When the judgment proportion is in the threshold value range, the width and height proportions can be separately judged, and the proportion of the size of the character and the size of the key area can also be directly judged. When the width and the height are separately determined, the threshold range of the width and the threshold range of the height may be the same or different.
For aesthetic display, it may be required that the character does not exceed the key boundary, and the upper limit of the threshold range may be 1.
And if the proportion is not in the threshold range, jumping to S222, otherwise, not adjusting the current font size.
S222: and carrying out scaling adjustment on the current word size.
The ratio of the current font size character size after the zoom adjustment to the current key size is within a threshold range.
By way of example, following the example of the input method keyboard above, the current font size s is calculatedcAfter that, the function Paint provided by the operating system is called. Rect r ═ newPaint (). getTextBounds (), is defined. The input quantity of the Paint function is s3The output quantities r include r.left, r.right, r.top and r.bottom, which respectively represent the third letter number s3Left, right, top, and bottom boundaries of the character. The width of the third character is r.right-r.left, and the height is r.bottom-r.top. The threshold ranges of the width ratio and the height ratio are both [ n,1 ]],0<n<1. Judging whether the width is [ n x kw, kw]Whether height is within [ n x kh, kh]Within, kw is the key width and kh is the key height. If it isBoth are within the range, the third letter number s3And if not, scaling the third font size to obtain the current font size. The width of the current font character is [ n × kw, kw]Within and having a height of [ n x kh, kh]Within.
After calculation and necessary adjustment, the obtained input method keyboard with the larger current font size is shown in fig. 5, and the obtained input method keyboard with the smaller current font size is shown in fig. 6.
As shown in fig. 7, the fourth embodiment of the key font adjusting method according to the present invention is based on the third embodiment of the key font adjusting method according to the present invention, and after S22, further includes:
s23: and storing the adjusted current font parameters and the current associated parameters in the mapping relation between the font parameters and the associated parameters.
In the case that the current associated parameters in the subsequent use process are matched with the stored current associated parameters (equal to or within the range), the stored current font parameters can be directly used, and the calculation and adjustment processes are omitted.
As shown in fig. 8, a fifth embodiment of the key font adjusting method according to the present invention is based on the first embodiment of the key font adjusting method according to the present invention, and further includes, after S2 and before S3:
s4: and correcting the current font parameters by using the user reference value.
In the actual use process, the user may perform manual adjustment on the font parameters that are automatically adjusted unsatisfactorily, and the font parameters that are manually adjusted and the associated parameters during manual adjustment may be stored as the user reference values. The current font parameters to be corrected may or may not be adjusted. If the current associated parameter is the same as or similar to an associated parameter in a pre-stored certain user reference value (the error is smaller than a specified threshold), calculating the correction ratio of the current font by using the pre-stored user reference value corresponding to the associated parameter; and then scaling the current font parameters according to the correction proportion to obtain the corrected current font parameters. And subsequently, the key font can be adjusted according to the corrected current font parameters to adapt to the use habit of the user.
To illustrate the specific correction algorithm, in one embodiment, the word size in a user reference is smThe associated parameter in the user reference value matches the current associated parameter, and the scaling ratio is min (abs ((s))m-sd)/(dc-dd)),abs((sm-sd)/(lc-ld) In) wherein s) isdIs a preset number, dcIs a predetermined distance, ddAs the current distance,/cTo preset the ambient light intensity,/dFor the current ambient light intensity, abs () represents the absolute value and min () represents the minimum value. Then the current word size is multiplied by the scaling as the corrected current word size and assigned to the current word size, i.e. sc=sc*ratio。
As shown in fig. 9, the first embodiment of the key font adjusting apparatus of the present invention includes:
the first acquisition module 11 is used for acquiring the current ambient light intensity and the current distance between the user and the screen;
a second obtaining module 12, configured to obtain a current font parameter by using the current associated parameter, where the current font parameter is matched with the associated parameter, and the current associated parameter includes at least two of a current key layout, a current ambient light intensity, and a current distance;
and the adjusting module 13 is configured to adjust the key font according to the current font parameter.
As shown in fig. 10, a second embodiment of the key font adjusting apparatus according to the present invention is based on the first embodiment of the key font adjusting apparatus according to the present invention, and the second obtaining module 12 includes:
the calculating unit 121 is configured to calculate and obtain a current font parameter by using the current associated parameter and a constraint function, where an independent variable of the constraint function includes the associated parameter, and a dependent variable of the constraint function includes the current font parameter.
The adjusting unit 122 is configured to adjust the current font parameter by using the current key layout to obtain the current font parameter.
Optionally, the independent variable of the constraint function further includes a preset font parameter and a corresponding preset associated parameter.
Optionally, the current font parameter includes a current font size, the current key layout includes a current key size, and the adjusting unit 121 is configured to determine whether a ratio of a current font size character size to the current key size is within a threshold range; and if the proportion is not in the threshold range, carrying out zoom adjustment on the current font size, wherein the proportion of the character size of the current font size after the zoom adjustment and the size of the current key is in the threshold range.
Optionally, the key font adjusting apparatus further includes a storage unit, configured to store the adjusted current font parameter and the current associated parameter in a mapping relationship between the font parameter and the associated parameter.
Optionally, the key font adjusting apparatus further includes a correction module, configured to correct the current font parameter by using the user reference value.
Optionally, the correction module includes:
and a ratio calculation unit for calculating a correction ratio using the user reference value.
And the scaling unit is used for scaling the current font parameters according to the correction proportion to obtain the corrected current font parameters.
Optionally, the key font adjusting apparatus further includes a determining module, configured to determine a current key layout by using the current ambient light intensity and the current distance.
The functions and feasible extensions of each part of the key font adjusting device of the present invention can refer to the descriptions in each embodiment of the key font adjusting device of the present invention, and are not described herein again.
As shown in fig. 11, the first embodiment of the mobile terminal of the present invention includes a processor 110, a light sensor 120, a display screen 130, and a touch screen 140. The processor 110 is coupled to the light sensor 120, the display screen 130, and the touch screen 140. The display screen 130 and the touch screen 140 are shown as two separate devices, and may be integrated. The mobile terminal may further include a distance sensor and/or a front camera (not shown).
The processor 110 controls the operation of the mobile terminal, and the processor 110 may also be referred to as a Central Processing Unit (CPU). The processor 110 may be an integrated circuit chip having the processing capability of signal sequences. The processor 110 may also be a general purpose processor, a digital signal sequence processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The processor 110 is configured to execute the instructions to implement the method provided by any one of the first to fifth embodiments of the key font adjusting method of the present invention and the non-conflicting combination.
As shown in fig. 12, the first embodiment of the storage medium readable by the present invention includes a memory 210, and the memory 210 stores instructions that, when executed, implement the method provided by any one of the first to fifth embodiments of the key font adjustment method according to the present invention and any non-conflicting combinations.
The Memory 210 may include a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a hard disk, an optical disk, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed method and apparatus can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (15)

1. A method for adjusting the font of a key is characterized by comprising the following steps:
acquiring current ambient light intensity and a current distance between a user and a screen;
determining the current key layout by using the current ambient light intensity and the current distance;
obtaining current font parameters by using current associated parameters, wherein the current font parameters are matched with the associated parameters, the current associated parameters comprise current key layout and further comprise at least one of current ambient light intensity and current distance, and the current key layout comprises at least one of current key number, current key distribution type, character distribution in current keys and current key size;
and adjusting the font of the key according to the current font parameter.
2. The method of claim 1,
the obtaining of the current font parameter by using the current associated parameter includes:
and calculating to obtain the current font parameters by using the current associated parameters and a constraint function, wherein the independent variable of the constraint function comprises the current associated parameters, and the dependent variable of the constraint function comprises the current font parameters.
3. The method of claim 2,
the independent variables of the constraint function further comprise preset font parameters and corresponding preset associated parameters.
4. The method of claim 2,
after the current font parameters are calculated and obtained by using the current associated parameters and the constraint function, the method further comprises the following steps:
and adjusting the current font parameters by using the current key layout.
5. The method of claim 4,
the current font parameters comprise a current font size, the current key layout comprises a current key size, and the adjusting the current font parameters by using the current key layout comprises:
judging whether the ratio of the size of the current font size character to the size of the current key is within a threshold range;
and if the proportion is not in the threshold range, carrying out zoom adjustment on the current font size, wherein the proportion of the character size of the current font size after the zoom adjustment to the size of the current key is in the threshold range.
6. The method of claim 4,
after the current font parameter is adjusted by using the current key layout, the method further includes:
and storing the adjusted current font parameters and the current associated parameters in the mapping relation between the font parameters and the associated parameters.
7. The method according to any one of claims 1 to 6,
after the obtaining of the current font parameters by using the current associated parameters, the method further comprises:
and correcting the current font parameters by using the user reference value.
8. The method of claim 7,
the correcting the current font parameter by using the user reference value comprises:
calculating a correction ratio using the user reference value;
and scaling the current font parameters according to the correction proportion to obtain the corrected current font parameters.
9. A key font adjusting apparatus, comprising:
the first acquisition module is used for acquiring the current ambient light intensity and the current distance between a user and a screen;
the determining module is used for determining the current key layout by using the current ambient light intensity and the current distance;
a second obtaining module, configured to obtain a current font parameter by using a current associated parameter, where the current font parameter is matched with the associated parameter, the current associated parameter includes a current key layout, and further includes at least one of the current ambient light intensity and the current distance, and the current key layout includes at least one of a current key number, a current key distribution type, a current key character distribution, and a current key size;
and the adjusting module is used for adjusting the key font according to the current font parameter.
10. The apparatus of claim 9,
the second acquisition module includes:
and the calculation unit is used for calculating the current font parameters by using the current associated parameters and a constraint function, wherein the independent variable of the constraint function comprises the associated parameters, and the dependent variable of the constraint function comprises the current font parameters.
11. The apparatus of claim 10,
the second obtaining module further comprises:
and the adjusting unit is used for adjusting the current font parameters by utilizing the current key layout.
12. The apparatus of claim 11,
the current font parameters comprise a current font size, the current key layout comprises a current key size, and the adjusting unit is used for judging whether the ratio of the current font size character size to the current key size is within a threshold range; and if the proportion is not in the threshold range, carrying out zoom adjustment on the current font size, wherein the proportion of the character size of the current font size after the zoom adjustment to the size of the current key is in the threshold range.
13. The apparatus of any of claims 9-10, further comprising:
and the correction unit is used for correcting the current font parameters by using the user reference value.
14. A mobile terminal, comprising: a processor, a light sensor, a display screen, and a touch screen, the processor coupled to the light sensor, the display screen, and the touch screen, the processor to execute instructions to implement the method of any of claims 1-8.
15. A readable storage medium storing instructions that, when executed, implement the method of any one of claims 1-8.
CN201810362514.XA 2018-04-20 2018-04-20 Key font adjusting method and device, mobile terminal and storage medium Active CN108762485B (en)

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 CN108762485A (en) 2018-11-06
CN108762485B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825240A (en) * 2019-11-01 2020-02-21 西南石油大学 Keyboard with variable key surface size
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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7752569B2 (en) * 2005-09-09 2010-07-06 Microsoft Corporation Software key labeling on software keyboards

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN108762485A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108762485B (en) Key font adjusting method and device, mobile terminal and storage medium
US11302286B2 (en) Picture obtaining method and apparatus and picture processing method and apparatus
CN109741281B (en) Image processing method, image processing device, storage medium and terminal
US10296803B2 (en) Image display apparatus, image display method, and computer program product
US11087516B2 (en) Electronic device and method for correcting handwriting by same
CN107330859B (en) Image processing method and device, storage medium and terminal
CN111695554B (en) Text correction method and device, electronic equipment and storage medium
US11275470B2 (en) Electronic device including display and method for correcting image displayed by electronic device
US20130215045A1 (en) Stroke display method of handwriting input and electronic device
CN106339086A (en) Screen font adjusting method and device and electronic equipment
CN110084219B (en) Interface interaction method and device
US8736893B2 (en) Reduction of pattern glare
CN110442313B (en) Display attribute adjusting method and related equipment
CN114140358A (en) Image display method, device, terminal and storage medium
WO2021143673A1 (en) Content display method and device, mobile terminal, and storage medium
CN114360420B (en) Image adjusting method of display device and display device
CN113689525A (en) Character beautifying method and device, readable storage medium and electronic equipment
CN109559707B (en) Gamma value processing method and device of display panel and display equipment
CN117032504A (en) Touch screen control method, system, computer equipment and medium
CN108681531B (en) Document input control method and device
CN114242023A (en) Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
CN113391779B (en) Parameter adjusting method, device and equipment for paper-like screen
US11211029B2 (en) Electronic device with improved visibility of user interface
US11631382B2 (en) Electronic device for controlling display position or area of image on basis of change of content of image
CN114518859A (en) Display control method, display control device, electronic equipment and storage medium

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