CN104536560B - A kind of method and device for adjusting terminal font size - Google Patents

A kind of method and device for adjusting terminal font size Download PDF

Info

Publication number
CN104536560B
CN104536560B CN201410757173.8A CN201410757173A CN104536560B CN 104536560 B CN104536560 B CN 104536560B CN 201410757173 A CN201410757173 A CN 201410757173A CN 104536560 B CN104536560 B CN 104536560B
Authority
CN
China
Prior art keywords
terminal
font size
accessory
auxiliary positioning
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410757173.8A
Other languages
Chinese (zh)
Other versions
CN104536560A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410757173.8A priority Critical patent/CN104536560B/en
Publication of CN104536560A publication Critical patent/CN104536560A/en
Application granted granted Critical
Publication of CN104536560B publication Critical patent/CN104536560B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of method and device for adjusting terminal font size, methods described includes:Receive the current accessory positional information of auxiliary positioning accessory;Determine the current terminal positional information of terminal;The target range between the auxiliary positioning accessory and the terminal is determined according to the current accessory positional information and the current positional information of the terminal;Determine the target font size of the target range matching;The font size of the terminal is adjusted to the target font size.Using the present invention, the efficiency of the big minor adjustment of terminal font can be improved.

Description

A kind of method and device for adjusting terminal font size
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of method and device for adjusting terminal font size.
Background technology
With the development of terminal technology, terminal screen is increasing, it is therefore an objective to user with more preferable usage experience.For The user of the different eyesight states of terminal-pair is all suitable for, and same user is all suitable under different external environments, user Font of the terminal in terminal screen can be adjusted by font size setting and shows size, after this regulation, next time Before regulation, the font size that terminal is shown is all without changing.But, when external environment changes, such as terminal with After the distance of user changes, now the font size of terminal may be difficult to allow user clearly to distinguish, if user wants Font size is adjusted, the font display size that font size sets interface to adjust terminal can only be reentered.
The content of the invention
The embodiment of the present invention provides a kind of method and device for adjusting terminal font size, can improve terminal font size The efficiency of regulation.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of method for adjusting terminal font size, institute Stating the method for regulation terminal font size includes:
Receive the current accessory positional information of auxiliary positioning accessory;
Determine the current terminal positional information of terminal;
Determine that the auxiliary positioning is matched somebody with somebody according to the current accessory positional information and the current positional information of the terminal Target range between part and the terminal;
Determine the target font size of the target range matching;
The font size of the terminal is adjusted to the target font size.
Correspondingly, the embodiment of the present invention additionally provides a kind of device for adjusting terminal font size, the regulation terminal-word The device of body size includes:
Positional information receiving unit, the accessory positional information current for receiving auxiliary positioning accessory;
Location information acquiring unit, the terminal positional information current for determining terminal;
Distance determining unit, for true according to the current accessory positional information and the current positional information of the terminal Fixed target range between the auxiliary positioning accessory and the terminal;
Font size determining unit, the target font size for determining the target range matching;
Font size adjustment unit, for the font size of the terminal to be adjusted into the target font size.
The embodiment of the present invention is by determining the target range between terminal and auxiliary positioning accessory, and then the target range The target font size of matching, the target font size is adjusted to by the font size of terminal.Matched somebody with somebody with terminal and auxiliary positioning The distance between part is approximately equal to the distance between terminal and the eyes of using terminal user, realizes according to terminal and user's eye The distance between eyeball adjusts terminal font size, improves the efficiency of the big minor adjustment of terminal font.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of method for adjusting terminal font size provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for the regulation terminal font size that another embodiment of the present invention is provided;
Fig. 3 is the schematic flow sheet of the method for the regulation terminal font size that further embodiment of this invention is provided;
Fig. 4 is a kind of structural representation of the device for regulation terminal font size that the present invention is provided;
Fig. 5 is the structural representation of the location information acquiring unit shown in Fig. 4 in the embodiment of the present invention;
Fig. 6 is the structural representation of the font size determining unit shown in Fig. 4 in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The terminal that the present invention is referred to can include smart mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, the palm Upper computer, mobile internet device (MID, Mobile Internet Devices) or wearable intelligent equipment etc. have display screen The equipment of curtain.The application scenarios of the method for the regulation terminal font size can be when the increase of the distance between terminal and user Afterwards, terminal font size is adjusted to the font size of the distance after being adapted to increase between terminal and user by terminal automatically.
Fig. 1 is a kind of schematic flow sheet of method for adjusting terminal font size provided in an embodiment of the present invention, such as figure institute Show, the method for the regulation terminal font size can include:
S101, receives the current accessory positional information of auxiliary positioning accessory.
Above-mentioned auxiliary positioning accessory can include intelligent glasses, intelligent eyeshade, Intelligent bracelet, intelligent watch, smart pen etc. Accessory.Above-mentioned auxiliary positioning accessory obtains the accessory positional information of itself in real time, and above-mentioned accessory positional information is sent into terminal. Auxiliary positioning accessory can send the accessory positional information of itself to the terminal in real time, can also be in the position for receiving terminal When obtaining request, current accessory positional information is sent to the terminal, terminal receives the current of auxiliary positioning accessory transmission Accessory positional information.If auxiliary positioning accessory is when the position acquisition for receiving terminal is asked by current accessory positional information The terminal is sent to, it can be by default that above-mentioned terminal sends the step of position acquisition is asked to the auxiliary positioning accessory Clock timing is triggered or triggered after default font size regulation switch opening, can also be by default terminal applies Or termination function open after trigger, above-mentioned default terminal applies or termination function can be short message, e-book, browser, number Codebook, dial, e-mail box etc..
Specifically, above-mentioned auxiliary positioning accessory obtain the accessory positional information of itself in real time can be by auxiliary positioning accessory Three-axis gyroscope and/or acceleration transducer determine current accessory change in location information, according at the beginning of auxiliary positioning accessory position The initial position message and current accessory change in location information obtained after beginningization determines the current accessory position of auxiliary positioning accessory Confidence ceases.Above-mentioned accessory positional information by wifi or bluetooth can send terminal to by auxiliary positioning accessory.
Optionally, before step S101, methods described can also include step 11), 12) and 13):
11) the position initialization request of user's input, is received.
Specifically, before receiving the current accessory positional information of auxiliary positioning accessory, the position for receiving user's input is initial Change request, position initialization request is that terminal and auxiliary positioning accessory are placed on into the request that same position is initialized.
12) terminal positional information of terminal, is set to the initialized location information.
Specifically, the positional information of terminal to be set to represent to the initialized location information in home position, for example, terminal is logical Cross three-axis gyroscope and/or when acceleration sensor is positioned, the origin of the coordinate system set up is set to terminal now Position, and the positional information of terminal is set to origin.
13), position initialization instruction is sent to the auxiliary positioning accessory.
Terminal is carried out after position initialization, position initialization instruction is sent to the auxiliary positioning accessory, so that described auxiliary Help positioning accessory that the accessory positional information of itself is set into the initial position message.For example, auxiliary positioning accessory passes through three When axle gyroscope and/or acceleration sensor are positioned, the origin of the coordinate system set up be set to auxiliary positioning accessory this When position, and the positional information of auxiliary positioning accessory is set to origin.
S102, determines the current terminal positional information of terminal.
Above-mentioned terminal location change information includes terminal three-axis gyroscope data and/or terminal acceleration sensor data.Tool Body, the current terminal location change information of terminal is determined, according to the initial position message of terminal and the current terminal position Put change information and determine the current terminal positional information of the terminal.For example, the initial position message of terminal is origin, i.e., (0, 0,0), the current change in location information of terminal is that 5 unit lengths are moved on edge straight up, then the current terminal location of terminal Information is coordinate (0,5,0).
S103, determines that the auxiliary is fixed according to the current accessory positional information and the current positional information of the terminal Target range between position accessory and the terminal.
The end that the current accessory positional information of the auxiliary positioning accessory that is received according to step S101 and step S102 are determined The current terminal positional information in end, determines the target range between the auxiliary positioning accessory and the terminal.For example, according to step The current accessory positional information of auxiliary positioning accessory that rapid S101 is received is coordinate (1,2,3), the terminal that step S102 is determined Current terminal positional information is coordinate (1,2,6), then the target range between the auxiliary positioning accessory and the terminal For 3 unit lengths.
S104, determines the target font size of the target range matching.
Specifically, where the target range can be determined according to the corresponding relation of default distance range and font size The corresponding target font size of distance range.For example, default distance range and the corresponding relation of font size are:0cm- 10cm is small No. five words, and 10cm-15cm is No. five words, and 15cm-20cm is small No. four words, and 20cm-25cm is No. four words, 25cm- 35cm is small No. three words, and 35cm-45cm is No. three words, and 45cm-55cm is young waiter in a wineshop or an inn's word, and 55cm-70cm is No. two words, is more than 70cm is a small word.Above-mentioned target range is 65cm, then target font size is No. two words.
S105, the target font size is adjusted to by the font size of the terminal.
The font that the target font size matched according to the obtained target ranges of step S104 adjusts the terminal is big It is small.
The embodiment of the present invention is by determining the target range between terminal and auxiliary positioning accessory, and then the target range The target font size of matching, the target font size is adjusted to by the font size of terminal.Matched somebody with somebody with terminal and auxiliary positioning The distance between part is approximately equal to the distance between terminal and the eyes of using terminal user, realizes according to terminal and user's eye The distance between eyeball adjusts terminal font size, improves the efficiency of the big minor adjustment of terminal font.
Fig. 2 is a kind of schematic flow sheet of the method for regulation terminal font size that another embodiment of the present invention is provided, such as Shown in figure, the method for the regulation terminal font size can include:
S201, receives the position initialization request of user's input.
S202, the initial position message is set to by the terminal positional information of terminal.
S203, to the auxiliary positioning accessory send position initialization instruction so that the auxiliary positioning accessory by itself Accessory positional information be set to the initial position message.
S204, receive user input reference font size, and determine between current auxiliary positioning accessory and terminal away from From being used as reference distance.
Specifically, terminal can be placed on user by user can distinguish any position of terminal display font, terminal is used as Reference position, and auxiliary positioning accessory is placed near eyes of user, as accessory reference position, it is suitable that selection terminal is shown The font size of family discrimination is shared, terminal receives the font size of user's input, as referring to font size, and according to above-mentioned end End reference position and above-mentioned accessory reference position determine terminal and the current distance of auxiliary positioning accessory as reference distance.Example Such as, terminal is placed on a certain position for distinguishing terminal display font by user, as terminal reference position, and auxiliary is fixed Position accessory is placed near eyes of user, as accessory reference position, selects to be adapted to oneself discrimination from default font size Font size, such as No. three words, terminal receives No. three words of reference font size of user's input, and determines terminal reference position It is 100cm with the distance between accessory reference position, is used as reference distance.
S205, receives the current accessory positional information of auxiliary positioning accessory.
Specifically, in the corresponding position of accessory positional information and step S204 that above-mentioned auxiliary positioning accessory is currently located Accessory reference position can be same position or different positions.
S206, determines the current terminal positional information of terminal.
Specifically, the initial position message in the corresponding position of the current terminal positional information of above-mentioned terminal and step S203 Corresponding position can be same position or different positions.
S207, determines that the auxiliary is fixed according to the current accessory positional information and the current positional information of the terminal Target range between position accessory and the terminal.
S208, calculates the target range difference between the target range and the reference distance.
If specifically, default distance difference scope is the difference pair that reference distance subtracts target range in step S209 The distance difference scope answered, then the reference distance that calculation procedure S204 is received in step S208 subtracts the mesh of step S207 determinations The difference of subject distance, is used as target range difference.Accordingly, if in step S209 default distance difference scope be target away from From the corresponding distance difference scope of difference for subtracting reference distance, then in step S208 calculation procedure S207 determine target away from From the difference for the reference distance for subtracting step S204 receptions, target range difference is used as.For example, default distance in step S209 Difference range is the corresponding distance difference scope of difference that reference distance subtracts target range, the reference that step S204 is received away from From for 100cm, the target range that step S207 is determined is 50cm, then the target range difference is 50cm.
S209, according to default distance difference scope and the corresponding relation of font regulating command, determines target range difference The corresponding target font regulating command of distance difference scope at place.
The corresponding distance difference model of difference of target range is subtracted for example, default distance difference scope is reference distance Enclose, the unit length of the reference distance and the target range is all 1cm, and default the distance difference scope and font are adjusted Saving the corresponding relation instructed is:Less than -100 to be adjusted to maximum font size, -100 to -80 is tune up 5 font sizes, and -80 to -60 be tune Big 4 font sizes, -60 to -40 is tune up 3 font sizes, and -40 to -20 is tune up 2 font sizes, and -20 to 0 is tune up 1 font size, and 0 arrives 20 is turn 1 font size down, and 20 to 40 is turn 2 font sizes down, and 40 to 60 is turn 3 font sizes down, and 60 to 80 is turn 4 font sizes down, 80 to 100 is turn 5 font sizes down, are to be adjusted to minimum font size more than 100.The target range difference is 50cm, then corresponding word Body regulating command is to turn 3 font sizes down.
S210, the target word after regulation is determined according to the reference font size and the target font regulating command Body size.
Specifically, according to default font size rank, being referred to by the reference font size and target font regulation Order determines the target font size after regulation.If for example, the reference font size that step S204 is received is No. two words, step The font regulating command determined in S209 is turns 3 font sizes down, and default font size rank is word, small word, two Number word, young waiter in a wineshop or an inn's word, No. three words, small No. three words, No. four words, small No. four words, No. five words, small No. five words, the then target after adjusting Font size is small No. three words.
S211, the target font size is adjusted to by the font size of the terminal.
The embodiment of the present invention is by determining the target range between terminal and auxiliary positioning accessory, and then the target range The target font size of matching, the target font size is adjusted to by the font size of terminal.Matched somebody with somebody with terminal and auxiliary positioning The distance between part is approximately equal to the distance between terminal and the eyes of using terminal user, realizes according to terminal and user's eye The distance between eyeball adjusts terminal font size, improves the efficiency of the big minor adjustment of terminal font.
Fig. 3 is a kind of schematic flow sheet of the method for regulation terminal font size that further embodiment of this invention is provided, such as Shown in figure, the method for the regulation terminal font size can include:
S301, receives the position initialization request of user's input.
S302, the initial position message is set to by the terminal positional information of terminal.
S303, to the auxiliary positioning accessory send position initialization instruction so that the auxiliary positioning accessory by itself Accessory positional information be set to the initial position message.
S304, receive user input reference font size, and determine between current auxiliary positioning accessory and terminal away from From being used as reference distance.
Specifically, terminal can be placed on user by user can distinguish any position of terminal display font, terminal is used as Reference position, and auxiliary positioning accessory is placed near eyes of user, as accessory reference position, it is suitable that selection terminal is shown The font size of family discrimination is shared, terminal receives the font size of user's input, as referring to font size, and according to above-mentioned end End reference position and above-mentioned accessory reference position determine terminal and the current distance of auxiliary positioning accessory as reference distance.Example Such as, terminal auxiliary positioning accessory is placed on a certain position for distinguishing terminal display font by user, is used as terminal references position Put, and auxiliary positioning accessory is placed near eyes of user, as accessory reference position, selected from default font size Be adapted to the font size that user distinguishes, such as No. three words, then terminal receive No. three words of reference font size of user's input, and really The distance between terminal reference position and accessory reference position are determined for 100cm, are used as reference distance.
S305, default distance range and default font are set up according to the reference distance and the reference font size The corresponding relation of size.
Specifically, dividing the distance range and font size of different stage, the reference received according to step S304 in advance Distance and reference font size set up above-mentioned distance range and the corresponding relation of font size.For example, divide in advance not The distance range of same level is:0cm-10cm、10cm-15cm、15cm-20cm、20cm-25cm、25cm-35cm、35cm- 45cm, 45cm-55cm, 55cm-70cm, more than 70cm, the font size of default different stage is small No. five words, No. five words, Small No. four words, No. four words, small No. three words, No. three words, young waiter in a wineshop or an inn's word, No. two words, a small words.If the ginseng that step S304 is received It is respectively 23cm and small No. three words, then default distance range and pair of default font size to examine distance and refer to font size It should be related to for 0cm-10cm to be that No. five words, 10cm-15cm are that small No. four words, 15cm-20cm are that No. four words, 20cm-25cm are small No. three words, 25cm-35cm be No. three words, 35cm-45cm be young waiter in a wineshop or an inn's word, 45cm-55cm be No. two words, 55cm-70cm and It is a small word more than 70cm.If reference distance and be respectively 13cm and small No. five with reference to font size that step S304 is received Word, then the corresponding relation of default distance range and default font size is 0cm-10cm and 10cm-15cm is small No. five Word, 15cm-20cm are that No. five words, 20cm-25cm are that small No. four words, 25cm-35cm are that No. four words, 35cm-45cm are small No. three Word, 45cm-55cm are that No. three words, 55cm-70cm are young waiter in a wineshop or an inn's word, are No. two words more than 70cm.
S306, receives the current accessory positional information of auxiliary positioning accessory.
Specifically, in the corresponding position of accessory positional information and step S304 that above-mentioned auxiliary positioning accessory is currently located Accessory reference position can be same position or different positions.
S307, determines the current terminal positional information of terminal.
Specifically, the initial position message in the corresponding position of the current terminal positional information of above-mentioned terminal and step S303 Corresponding position can be same position or different positions.
S308, determines that the auxiliary is fixed according to the current accessory positional information and the current positional information of the terminal Target range between position accessory and the terminal.
S309, the target range is determined according to the corresponding relation of the default distance range and default font size The corresponding target font size of distance range at place.
Specifically, according to the default distance range set up in step S305 and the corresponding relation of default font size, Determine the corresponding target font size of target range that step S308 is determined.For example, the default distance set up in step S305 The corresponding relation of scope and default font size is:0cm-10cm is small No. five words, and 10cm-15cm is No. five words, 15cm- 20cm is small No. four words, and 20cm-25cm is No. four words, and 25cm-35cm is small No. three words, and 35cm-45cm is No. three words, 45cm- 55cm is young waiter in a wineshop or an inn's word, and 55cm-70cm is No. two words, is a small word more than 70cm.The target range determined in step S308 For 44cm, then corresponding target font size is No. three words.
S310, the target font size is adjusted to by the font size of the terminal.
The embodiment of the present invention is by determining the target range between terminal and auxiliary positioning accessory, and then the target range The target font size of matching, the target font size is adjusted to by the font size of terminal.Matched somebody with somebody with terminal and auxiliary positioning The distance between part is approximately equal to the distance between terminal and the eyes of using terminal user, realizes according to terminal and user's eye The distance between eyeball adjusts terminal font size, improves the efficiency of the big minor adjustment of terminal font.
Fig. 4 is a kind of structural representation of the device for regulation terminal font size that the present invention is provided, as illustrated, described The device of regulation terminal font size can include:Positional information receiving unit 401, location information acquiring unit 402, distance are really Order member 403, font size determining unit 404, font size adjustment unit 405, wherein:
Positional information receiving unit 401, the accessory positional information current for receiving auxiliary positioning accessory.
Above-mentioned auxiliary positioning accessory can include intelligent glasses, intelligent eyeshade, Intelligent bracelet, intelligent watch, smart pen etc. Accessory.Above-mentioned auxiliary positioning accessory obtains the accessory positional information of itself in real time, and above-mentioned accessory positional information is sent into position Information receiving unit 401.Auxiliary positioning accessory can send the accessory position of itself to the positional information receiving unit 401 in real time Confidence ceases, and current accessory positional information can also be sent into the position when the position acquisition for receiving terminal is asked Information receiving unit 401, positional information receiving unit 401 receives the current accessory positional information that auxiliary positioning accessory is sent. If current accessory positional information is sent to the terminal by auxiliary positioning accessory when the position acquisition for receiving terminal is asked, The action that above-mentioned terminal sends position acquisition request to the auxiliary positioning accessory can be triggered by default clock timing, Can be triggered after default font size regulation switch opening, can also be after default terminal applies or termination function be opened Triggering, above-mentioned default terminal applies or termination function can be short message, e-book, browser, numbering directory, dial, electronics Mail mailbox etc..
Specifically, above-mentioned auxiliary positioning accessory obtain the accessory positional information of itself in real time can be by auxiliary positioning accessory Three-axis gyroscope and/or acceleration transducer determine current accessory change in location information, according at the beginning of auxiliary positioning accessory position The initial position message and current accessory change in location information obtained after beginningization determines the current accessory position of auxiliary positioning accessory Confidence ceases.Above-mentioned accessory positional information can send the positional information to by wifi or bluetooth by auxiliary positioning accessory and receive Unit 401.
Optionally, described device can also include:Request reception unit 406, initialization unit 407, instruction sending unit 408, wherein:
Request reception unit 406, the position initialization request for receiving user's input.
Specifically, before the current accessory positional information of the reception auxiliary positioning accessory of positional information receiving unit 401, request Receiving unit 406 receives the position initialization request of user's input, and position initialization request is to match somebody with somebody terminal and auxiliary positioning Part is placed on the request that same position is initialized.
Initialization unit 407, for the terminal positional information of terminal to be set into the initialized location information.
Specifically, the positional information of terminal is set to represent the initialization bit confidence in home position by initialization unit 407 Breath, for example, when terminal is positioned by three-axis gyroscope and/or acceleration sensor, the origin for the coordinate system set up is set The position of terminal now is set to, and the positional information of terminal is set to origin.
Instruction sending unit 408, for sending position initialization instruction to the auxiliary positioning accessory.
Terminal is carried out after position initialization, and instruction sending unit 408 sends position initialization to the auxiliary positioning accessory Instruction, so that the accessory positional information of itself is set to the initial position message by the auxiliary positioning accessory.For example, auxiliary When positioning accessory is positioned by three-axis gyroscope and/or acceleration sensor, the origin for the coordinate system set up is set to The position of auxiliary positioning accessory now, and the positional information of auxiliary positioning accessory is set to origin.
Location information acquiring unit 402, the terminal positional information current for determining terminal.
Above-mentioned terminal location change information includes terminal three-axis gyroscope data and/or terminal acceleration sensor data.
Optionally, as shown in figure 5, above-mentioned location information acquiring unit 402 can include change information determining unit 4201 With positional information determining unit 4202, wherein:Change information determining unit 4201 is used to determine that the current terminal location of terminal becomes Change information, positional information determining unit 4202 is used to change according to the initial position message and the current terminal location of terminal Information determines the current terminal positional information of the terminal.For example, the initial position message of terminal is origin, i.e. (0,0,0), become Change information determination unit 4201 and determine that the current change in location information of terminal is that 5 unit lengths are moved on edge straight up, then Positional information determining unit 4202 determines that the current terminal positional information of terminal is coordinate (0,5,0).
Distance determining unit 403, for being believed according to the current position of the current accessory positional information and the terminal Breath determines the target range between the auxiliary positioning accessory and the terminal.
The current accessory of auxiliary positioning accessory that distance determining unit 403 is received according to positional information receiving unit 401 Positional information and the current terminal positional information of the terminal of the determination of location information acquiring unit 402, determine that the auxiliary positioning is matched somebody with somebody Target range between part and the terminal.For example, the auxiliary positioning accessory received according to positional information receiving unit 401 is worked as Preceding accessory positional information is coordinate (1,2,3), the current terminal positional information of the terminal that location information acquiring unit 402 is determined For coordinate (1,2,6), then the target range between the auxiliary positioning accessory and the terminal is 3 unit lengths.
Font size determining unit 404, the target font size for determining the target range matching.
Specifically, font size determining unit 404 can be according to default distance range and the corresponding relation of font size The corresponding target font size of distance range where determining the target range.For example, default distance range and font are big Small corresponding relation is:0cm-10cm is small No. five words, and 10cm-15cm is No. five words, and 15cm-20cm is small No. four words, 20cm- 25cm is No. four words, and 25cm-35cm is small No. three words, and 35cm-45cm is No. three words, and 45cm-55cm is young waiter in a wineshop or an inn's word, 55cm- 70cm is No. two words, is a small word more than 70cm.Above-mentioned target range is 65cm, then target font size is No. two words.
Font size adjustment unit 405, for the font size of the terminal to be adjusted into the target font size.
The target font size that the target range obtained according to font size determining unit 404 is matched adjusts the end The font size at end.
As a kind of optional embodiment, described device can also include reference information receiving unit 409, for described Instruction sending unit 408 is sent to the auxiliary positioning accessory after position initialization instruction, receives the reference word of user's input Body size.
The distance determining unit 403 is additionally operable to receive the reference of user's input in the reference information receiving unit 409 After font size, it is determined that current reference distance between auxiliary positioning accessory and terminal.
Specifically, terminal can be placed on user by user can distinguish any position of terminal display font, terminal is used as Reference position, and auxiliary positioning accessory is placed near eyes of user, as accessory reference position, it is suitable that selection terminal is shown The font size of family discrimination is shared, reference information receiving unit 409 receives the font size of user's input, as big with reference to font Small, distance determining unit 403 determines that terminal and auxiliary positioning are matched somebody with somebody according to above-mentioned terminal reference position and above-mentioned accessory reference position The current distance of part is used as reference distance.For example, terminal auxiliary positioning accessory is placed on by user a certain distinguishes that terminal is shown On the position of font, it is placed near eyes of user, is referred to as accessory as terminal reference position, and by auxiliary positioning accessory Position, selects to be adapted to the font size that user distinguishes from default font size, such as No. three words, then reference information receiving unit 409 receive No. three words of reference font size of user's input, and distance determining unit 403 determines terminal reference position and accessory ginseng The distance between position is examined for 100cm, reference distance is used as.
It is further alternative, as shown in fig. 6, the font size determining unit 404 can include:Difference computational unit 4401st, instruction-determining unit 4402 and instruction execution unit 4403, wherein:
Difference computational unit 4401, it is poor for calculating the target range between the target range and the reference distance Value.
If subtracting the corresponding range difference of difference of target range specifically, default distance difference scope is reference distance It is worth scope, then the reference distance that difference computational unit 4401 calculates the determination of distance determining unit 403 subtracts distance determining unit The difference of 403 target ranges determined, is used as target range difference.Accordingly, if default distance difference scope is target Distance subtracts the corresponding distance difference scope of difference of reference distance, then difference computational unit 4401 calculates distance determining unit 403 target ranges determined subtract the difference of the reference distance of the determination of distance determining unit 403, are used as target range difference.Example Such as, default distance difference scope is the corresponding distance difference scope of difference that reference distance subtracts target range, and distance is determined The reference distance that unit 403 is determined is 100cm, and the target range that distance determining unit 403 is determined is 50cm, then mathematic interpolation list It is 50cm that member 4401, which calculates the target range difference,.
Instruction-determining unit 4402, for the corresponding relation according to default distance difference scope and font regulating command, The corresponding target font regulating command of distance difference scope where determining target range difference.
The corresponding distance difference model of difference of target range is subtracted for example, default distance difference scope is reference distance Enclose, the unit length of the reference distance and the target range is all 1cm, and default the distance difference scope and font are adjusted Saving the corresponding relation instructed is:Less than -100 to be adjusted to maximum font size, -100 to -80 is tune up 5 font sizes, and -80 to -60 be tune Big 4 font sizes, -60 to -40 is tune up 3 font sizes, and -40 to -20 is tune up 2 font sizes, and -20 to 0 is tune up 1 font size, and 0 arrives 20 is turn 1 font size down, and 20 to 40 is turn 2 font sizes down, and 40 to 60 is turn 3 font sizes down, and 60 to 80 is turn 4 font sizes down, 80 to 100 is turn 5 font sizes down, are to be adjusted to minimum font size more than 100.The target range difference is 50cm, then instruction is determined Unit 4402 determines corresponding font regulating command to turn 3 font sizes down.
Instruction execution unit 4403, for determining to adjust according to the reference font size and the target font regulating command The target font size after section.
Specifically, instruction execution unit 4403 is according to default font size rank, by the reference font size and institute State the regulating command of target font and determine the target font size after regulation.If for example, reference information receiving unit 409 is received The reference font size arrived is No. two words, and the font regulating command that instruction-determining unit 4402 is determined is preset to turn 3 font sizes down Font size rank be word, it is a small word, No. two words, young waiter in a wineshop or an inn's word, No. three words, small No. three words, No. four words, small No. four Word, No. five words, small No. five words, then the target font size after instruction execution unit 4403 is adjusted are small No. three words.
In an alternative embodiment, described device can also include:Corresponding relation sets up unit 410, for The distance determining unit 403 is determined after the reference distance between auxiliary positioning accessory and terminal, according to the reference distance The corresponding relation of default distance range and default font size is set up with the reference font size.
In the specific implementation, the distance range and font size of different stage are divided in advance, according to reference information receiving unit Reference between auxiliary positioning accessory and terminal that the 409 reference font sizes received and distance determining unit 403 are determined away from From setting up above-mentioned distance range and the corresponding relation of font size.For example, the distance range of the different stage divided in advance For:0cm-10cm、10cm-15cm、15cm-20cm、20cm-25cm、25cm-35cm、35cm-45cm、45cm-55cm、55cm- 70cm, more than 70cm, the font size of default different stage is small No. five words, No. five words, small No. four words, No. four words, small by three Number word, No. three words, young waiter in a wineshop or an inn's word, No. two words, a small words.If the reference font that reference information receiving unit 409 is received is big Small is small No. three words, and the reference distance between auxiliary positioning accessory and terminal that distance determining unit 403 is determined is 23cm, then right It should be related to that it is that 0cm-10cm is No. five to set up unit 410 to set up default distance range and the corresponding relation of default font size Word, 10cm-15cm are that small No. four words, 15cm-20cm are that No. four words, 20cm-25cm are that small No. three words, 25cm-35cm are No. three Word, 35cm-45cm are that young waiter in a wineshop or an inn's word, 45cm-55cm are No. two words, 55cm-70cm and are a small word more than 70cm.If ginseng It is small No. five words, the auxiliary positioning that distance determining unit 403 is determined to examine the reference font size that information receiving unit 409 receives Reference distance between accessory and terminal is 13cm, then corresponding relation sets up unit 410 and sets up default distance range with presetting The corresponding relation of font size be 0cm-10cm and 10cm-15cm is that small No. five words, 15cm-20cm are No. five words, 20cm- 25cm is that small No. four words, 25cm-35cm are that No. four words, 35cm-45cm are that small No. three words, 45cm-55cm are No. three words, 55cm- 70cm is young waiter in a wineshop or an inn's word, more than 70cm is No. two words.
Further alternative, the font size determining unit 404 is used to set up the foundation of unit 410 according to corresponding relation Distance range where default distance range determines the target range with the corresponding relation of default font size is corresponding Target font size.
Specifically, setting up the default distance range and default font size of the foundation of unit 410 according to corresponding relation Corresponding relation, determines the corresponding target font size of target range that distance determining unit 403 is determined.For example, corresponding relation is built The default distance range and the corresponding relation of default font size that vertical unit 410 is set up be:0cm-10cm is small No. five words, 10cm-15cm is No. five words, and 15cm-20cm is small No. four words, and 20cm-25cm is No. four words, and 25cm-35cm is small No. three words, 35cm-45cm is No. three words, and 45cm-55cm is young waiter in a wineshop or an inn's word, and 55cm-70cm is No. two words, is a small word more than 70cm.Away from The target range determined from determining unit 403 is 44cm, then font size determining unit 404 determines corresponding target font size For No. three words.
The embodiment of the present invention is by determining the target range between terminal and auxiliary positioning accessory, and then the target range The target font size of matching, the target font size is adjusted to by the font size of terminal.Matched somebody with somebody with terminal and auxiliary positioning The distance between part is approximately equal to the distance between terminal and the eyes of using terminal user, realizes according to terminal and user's eye The distance between eyeball adjusts terminal font size, improves the efficiency of the big minor adjustment of terminal font.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (12)

1. a kind of method for adjusting terminal font size, it is characterised in that including:
Receive the position initialization request of user's input;The position initialization request is to be placed on terminal and auxiliary positioning accessory The request that same position is initialized;
The terminal positional information of terminal is set to initial position message;
Position initialization instruction is sent to the auxiliary positioning accessory, so that the auxiliary positioning accessory is by the accessory position of itself Information is set to the initial position message;
Receive the current accessory positional information of auxiliary positioning accessory;The current accessory positional information of the auxiliary positioning accessory is root Determined according to the initial position message and current accessory change in location information that are obtained after auxiliary positioning accessory position initialization;Its In, the auxiliary positioning accessory sets up data cube computation with the terminal by wifi or bluetooth;
Determine the current terminal location change information of terminal;
The current terminal of the terminal is determined according to the initial position message of terminal and the current terminal location change information Positional information;
According to the current accessory positional information and the current positional information of the terminal determine the auxiliary positioning accessory and Target range between the terminal;
Determine the target font size of the target range matching;
The font size of the terminal is adjusted to the target font size.
2. method according to claim 1, it is characterised in that the terminal location change information includes terminal three-axis gyroscope Data and/or terminal acceleration sensor data.
3. method according to claim 1, it is characterised in that described to send position initialization to the auxiliary positioning accessory and refer to After order, in addition to:
The reference font size of user's input is received, and determines the distance between current auxiliary positioning accessory and terminal as reference Distance;
The target font size for determining the target range matching includes:
Calculate the target range difference between the target range and the reference distance;
According to default distance difference scope and the corresponding relation of font regulating command, the distance where target range difference is determined The corresponding target font regulating command of difference range;
The target font size after regulation is determined according to the reference font size and the target font regulating command.
4. method according to claim 1, it is characterised in that the target font size of the determination target range matching Including:
According to where the corresponding relation of default distance range and default font size determines the target range apart from model Enclose corresponding target font size.
5. method according to claim 4, it is characterised in that described to send position initialization to the auxiliary positioning accessory and refer to After order, in addition to:
The reference font size of user's input is received, and determines the distance between current auxiliary positioning accessory and terminal as reference Distance;
The default distance range and default font size are set up according to the reference distance and the reference font size Corresponding relation.
6. method according to claim 1, it is characterised in that the auxiliary positioning accessory include intelligent glasses, intelligent eyeshade, Intelligent bracelet, intelligent watch, smart pen.
7. a kind of device for adjusting terminal font size, it is characterised in that including:
Request reception unit, for positional information receiving unit receive the current accessory positional information of auxiliary positioning accessory it Before, receive the position initialization request of user's input;The position initialization request is to be placed on terminal and auxiliary positioning accessory The request that same position is initialized;
Initialization unit, for the terminal positional information of terminal to be set into initialized location information;
Instruction sending unit, for sending position initialization instruction to the auxiliary positioning accessory, so that the auxiliary positioning is matched somebody with somebody The accessory positional information of itself is set to the initial position message by part;
Positional information receiving unit, the accessory positional information current for receiving auxiliary positioning accessory;The auxiliary positioning accessory Current accessory positional information is to be matched somebody with somebody according to the initial position message obtained after auxiliary positioning accessory position initialization with current What part change in location information was determined;Wherein, the auxiliary positioning accessory is set up data by wifi or bluetooth with the terminal and connected Connect;
Location information acquiring unit, the terminal positional information current for determining terminal;
Distance determining unit, for determining institute according to the current accessory positional information and the current positional information of the terminal State the target range between auxiliary positioning accessory and the terminal;
Font size determining unit, the target font size for determining the target range matching;
Font size adjustment unit, for the font size of the terminal to be adjusted into the target font size;
The location information acquiring unit includes:
Change information determining unit, the terminal location change information current for determining terminal;
Positional information determining unit, it is true for the initial position message according to terminal and the current terminal location change information The current terminal positional information of the fixed terminal.
8. device according to claim 7, it is characterised in that the terminal location change information includes terminal three-axis gyroscope Data and/or terminal acceleration sensor data.
9. device according to claim 7, it is characterised in that also include:
Reference information receiving unit, refers to for sending position initialization to the auxiliary positioning accessory in the instruction sending unit After order, the reference font size of user's input is received;
The distance determining unit, be additionally operable to the reference information receiving unit receive user input reference font size it Afterwards, it is determined that current the distance between auxiliary positioning accessory and terminal are used as reference distance;
The font size determining unit includes:
Difference computational unit, for calculating the target range difference between the target range and the reference distance;
Instruction-determining unit, for the corresponding relation according to default distance difference scope and font regulating command, determines target The corresponding target font regulating command of distance difference scope where distance difference;
Instruction execution unit, for determining the institute after regulation according to the reference font size and the target font regulating command State target font size.
10. device according to claim 7, it is characterised in that the font size determining unit is used for:
According to where the corresponding relation of default distance range and default font size determines the target range apart from model Enclose corresponding target font size.
11. device according to claim 10, it is characterised in that also include:
Reference information receiving unit, refers to for sending position initialization to the auxiliary positioning accessory in the instruction sending unit After order, the reference font size of user's input is received;
The distance determining unit, be additionally operable to the reference information receiving unit receive user input reference font size it Afterwards, it is determined that current the distance between auxiliary positioning accessory and terminal are used as reference distance;
Corresponding relation sets up unit, for setting up the default distance according to the reference distance and the reference font size The corresponding relation of scope and default font size.
12. device according to claim 7, it is characterised in that the auxiliary positioning accessory includes intelligent glasses, Brilliant Eyes Cover, Intelligent bracelet, intelligent watch, smart pen.
CN201410757173.8A 2014-12-10 2014-12-10 A kind of method and device for adjusting terminal font size Expired - Fee Related CN104536560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410757173.8A CN104536560B (en) 2014-12-10 2014-12-10 A kind of method and device for adjusting terminal font size

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410757173.8A CN104536560B (en) 2014-12-10 2014-12-10 A kind of method and device for adjusting terminal font size

Publications (2)

Publication Number Publication Date
CN104536560A CN104536560A (en) 2015-04-22
CN104536560B true CN104536560B (en) 2017-10-27

Family

ID=52852100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410757173.8A Expired - Fee Related CN104536560B (en) 2014-12-10 2014-12-10 A kind of method and device for adjusting terminal font size

Country Status (1)

Country Link
CN (1) CN104536560B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224182A (en) * 2015-10-27 2016-01-06 上海斐讯数据通信技术有限公司 A kind of method and system adjusting terminal font size
CN106200950B (en) * 2016-07-01 2019-11-08 Tcl移动通信科技(宁波)有限公司 A kind of method and mobile terminal of adjustable font size
CN110221897A (en) * 2019-06-13 2019-09-10 广东小天才科技有限公司 Character size adjusting method and device, terminal equipment and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271678A (en) * 2008-04-30 2008-09-24 深圳华为通信技术有限公司 Screen font zooming method and terminal unit
CN102339141A (en) * 2010-07-16 2012-02-01 联想(北京)有限公司 Mobile terminal and display control method thereof
CN102646408A (en) * 2012-03-27 2012-08-22 华为技术有限公司 Method and terminal for adjusting the font size
CN103017730A (en) * 2012-11-30 2013-04-03 中兴通讯股份有限公司 Single-camera ranging method and single-camera ranging system
CN103019384A (en) * 2012-12-21 2013-04-03 广东欧珀移动通信有限公司 Method and device for adjusting display interface on terminal
CN103491230A (en) * 2013-09-04 2014-01-01 三星半导体(中国)研究开发有限公司 Mobile terminal capable of automatically adjusting volume and fonts and automatic adjusting method thereof
CN103529468A (en) * 2013-10-08 2014-01-22 百度在线网络技术(北京)有限公司 Positioning method, positioning system and mobile terminal for wearable devices and wearable device
CN104101341A (en) * 2013-04-02 2014-10-15 广州三星通信技术研究有限公司 Method for positioning between mobile terminals and mobile terminal using the same

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101271678A (en) * 2008-04-30 2008-09-24 深圳华为通信技术有限公司 Screen font zooming method and terminal unit
CN102339141A (en) * 2010-07-16 2012-02-01 联想(北京)有限公司 Mobile terminal and display control method thereof
CN102646408A (en) * 2012-03-27 2012-08-22 华为技术有限公司 Method and terminal for adjusting the font size
CN103017730A (en) * 2012-11-30 2013-04-03 中兴通讯股份有限公司 Single-camera ranging method and single-camera ranging system
CN103019384A (en) * 2012-12-21 2013-04-03 广东欧珀移动通信有限公司 Method and device for adjusting display interface on terminal
CN104101341A (en) * 2013-04-02 2014-10-15 广州三星通信技术研究有限公司 Method for positioning between mobile terminals and mobile terminal using the same
CN103491230A (en) * 2013-09-04 2014-01-01 三星半导体(中国)研究开发有限公司 Mobile terminal capable of automatically adjusting volume and fonts and automatic adjusting method thereof
CN103529468A (en) * 2013-10-08 2014-01-22 百度在线网络技术(北京)有限公司 Positioning method, positioning system and mobile terminal for wearable devices and wearable device

Also Published As

Publication number Publication date
CN104536560A (en) 2015-04-22

Similar Documents

Publication Publication Date Title
CN109087239B (en) Face image processing method and device and storage medium
US10691220B2 (en) Method for display of information from real world environment on a virtual reality (VR) device and VR device thereof
CN106415510B (en) Data processing method and electronic equipment thereof
US10497341B2 (en) Screen display method, apparatus and mobile terminal
KR102582600B1 (en) Electronic device and operating method thereof
EP2824536B1 (en) Electronic device and method of controlling the same
EP3162284A1 (en) Communication method, apparatus and system for wearable device
EP2990852A1 (en) Head-mounted display hosting a smartphone for providing virtual reality environment
WO2017032019A1 (en) Screen brightness adjusting method and user terminal
CN104536560B (en) A kind of method and device for adjusting terminal font size
CN104539782B (en) A kind of event-prompting method and its device
US10948995B2 (en) Method and system for supporting object control, and non-transitory computer-readable recording medium
CN104813715B (en) It can recognize the cellular network scan control of radio signal source based on surrounding
CN102436304A (en) Method and terminal for switching horizontal and vertical display modes of screen
KR20150127989A (en) Apparatus and method for providing user interface
KR20150111157A (en) Method for adapting sound of hearing aid, hearing aid, and electronic device performing thereof
EP3644312A1 (en) Method and device for recovering audio signal
CN109741269B (en) Image processing method, image processing device, computer equipment and storage medium
KR20210064378A (en) Perspective rotation method and apparatus, device and storage medium
EP2947556A1 (en) Method and apparatus for processing input using display
CN107547749A (en) Word size adjusting method and device, terminal and computer-readable recording medium
CN112506345A (en) Page display method and device, electronic equipment and storage medium
CN108934025B (en) Wireless communication transmission method, device, mobile terminal and computer readable storage medium
CN111599298A (en) Color temperature adjusting method, wearable device and storage medium
JP2018510384A (en) System and method for determining the angle of repose of an asymmetric lens

Legal Events

Date Code Title Description
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171027