CN116702701A - Word weight adjusting method, terminal and storage medium - Google Patents

Word weight adjusting method, terminal and storage medium Download PDF

Info

Publication number
CN116702701A
CN116702701A CN202211320408.8A CN202211320408A CN116702701A CN 116702701 A CN116702701 A CN 116702701A CN 202211320408 A CN202211320408 A CN 202211320408A CN 116702701 A CN116702701 A CN 116702701A
Authority
CN
China
Prior art keywords
word
weight value
word weight
light intensity
character
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.)
Pending
Application number
CN202211320408.8A
Other languages
Chinese (zh)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202211320408.8A priority Critical patent/CN116702701A/en
Publication of CN116702701A publication Critical patent/CN116702701A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a character weight adjusting method, a terminal and a storage medium, and belongs to the technical field of character weight adjustment. The method comprises the following steps: receiving a first mode switching operation, wherein the first mode switching operation is used for switching a display mode of a system into a dark color mode, and the dark color mode refers to a display mode with dark system background and light system characters; responding to a first mode switching operation, and determining a first character weight adjustment proportion according to the current character weight value of the system characters; and according to the first word weight adjustment proportion, reducing the word weight value of the system words. Therefore, after the deep color mode is started, the word weight value of the system words can be automatically reduced according to the current word weight value of the system words, the flexibility of word weight adjustment is improved, the problem that the user cannot see the words due to the fact that glare is possibly generated by the system words after the deep color mode is started is relieved, and the definition of the system words after the deep color mode is started is ensured.

Description

Word weight adjusting method, terminal and storage medium
Technical Field
The present application relates to the field of font adjustment technologies, and in particular, to a font weight adjustment method, a terminal, and a storage medium.
Background
The character weight refers to the thickness degree of the character font, and the font thickness degree of different character weights is different. The system fonts of the terminal equipment are usually configured with different word weights, and the terminal equipment can call the system characters with different word weights to be displayed on the display interface.
Currently, terminal devices provide a word weight adjustment control at a word weight setting interface, where the word weight adjustment control is used to support a word weight adjustment function of system words. The character weight adjusting control is a sliding control formed by a sliding bar and a sliding block, a user can adjust the character weight of the system characters by adjusting the position of the sliding block on the sliding bar, and the contrast of display elements in a screen can be changed by adjusting the character weight of the system characters, so that the reading experience of the user is improved.
However, the method for adjusting the word weight by the user through adjusting the word weight adjusting control is complex in operation and low in flexibility. For example, after the user adjusts the word weight, the adjusted word weight may not meet the reading requirement of the user any more along with the change of the usage scenario, and the user is required to adjust again.
Disclosure of Invention
The application provides a character weight adjusting method, a terminal and a storage medium, which can improve flexibility and adjusting efficiency of character weight adjustment and ensure definition of system characters. The technical scheme is as follows:
in a first aspect, a method for word readjustment is provided, the method comprising:
receiving a first mode switching operation, wherein the first mode switching operation is used for switching a display mode of a system into a dark color mode, and the dark color mode refers to a display mode with dark system background and light system characters; responding to a first mode switching operation, and determining a first character weight adjustment proportion according to the current character weight value of the system characters; and according to the first word weight adjustment proportion, reducing the word weight value of the system words.
Therefore, after the deep color mode is started, the word weight value of the system words can be automatically reduced according to the current word weight value of the system words, the flexibility and the adjusting efficiency of word weight adjustment are improved, the problem that the user cannot see the words clearly due to the fact that the system words possibly generate glare after the deep color mode is started is solved, the definition of the system words after the deep color mode is started is guaranteed, and the reading experience of the user is improved.
Optionally, determining the first word weight adjustment ratio according to the current word weight value of the system word includes: and determining a first character weight adjustment ratio according to the current character weight value of the system character and the corresponding relation between the character weight value and the character weight adjustment ratio. Or determining a word weight value interval in which the current word weight value of the system word is located, and determining a first word weight adjustment ratio according to the word weight value interval in which the current word weight value is located and the corresponding relation between the word weight value interval and the word weight adjustment ratio.
The word weight adjustment proportion is determined according to the current word weight value of the system word and the corresponding relation between the word weight value or the word weight value interval and the word weight adjustment proportion, so that the word weight adjustment proportion of the system word is matched with the current word weight value of the system word, the word weight adjustment precision of the system word is improved, and the definition of the system word is further ensured.
Optionally, the current word weight value of the system word is a first word weight value; according to the first word weight adjustment ratio, reducing the word weight value of the system word comprises: determining a second word weight value according to the first word weight value and the first word weight adjustment ratio, wherein the second word weight value is smaller than the first word weight value; and adjusting the word weight value of the system text to be a second word weight value.
Optionally, if the current word weight value of the system word is in the preset word weight value interval, determining the first word weight adjustment ratio according to the current word weight value of the system word. If the current word weight value of the system word is not in the preset word weight value interval, the word weight value of the system word is not adjusted.
When the current word weight value of the system word is not in the preset word weight value interval, the word weight value of the system word is not regulated, so that the accuracy of word weight regulation can be ensured, the word weight regulation is avoided under the unnecessary condition, and the operation amount and the electric quantity consumption of a terminal are saved.
Optionally, the current word weight value of the system word is a first word weight value, and the word weight value of the system word with reduced proportion is a second word weight value according to the first word weight adjustment; according to the first word weight adjustment proportion, after the word weight value of the system word is reduced, the method further comprises the following steps: receiving a second mode switching operation, wherein the second mode switching operation is used for switching a display mode of the system from a dark color mode to a light color mode, and the light color mode refers to a display mode with a light system background and dark system characters; and in response to the second mode switching operation, adjusting the word weight value of the system text from the second word weight value to the first word weight value.
Therefore, the character weight value of the system characters can be recovered after the terminal is switched back to the light-color mode, the definition of the system characters after the display mode of the terminal is switched back to the light-color mode is ensured, and the user experience of a user in the light-color mode is improved.
Optionally, the current word weight value of the system word is a first word weight value, and the word weight value of the system word with reduced proportion is a second word weight value according to the first word weight adjustment; according to the first word weight adjustment proportion, after the word weight value of the system word is reduced, the method further comprises the following steps: receiving an adjustment operation of a character weight adjustment control in a character weight setting interface; determining a second word weight adjustment ratio according to the adjustment operation; determining a third word weight value according to the default word weight value of the system word and the second word weight adjustment proportion; determining a third word weight adjustment ratio according to the third word weight value; determining a fourth word weight value according to the third word weight value and the third word weight adjustment proportion; and adjusting the word weight value of the system text from the second word weight value to a fourth word weight value.
Optionally, after adjusting the word weight value of the system text from the second word weight value to the fourth word weight value, the method further includes: receiving a second mode switching operation, wherein the second mode switching operation is used for switching a display mode of the system from a dark color mode to a light color mode, and the light color mode refers to a display mode with a light system background and dark system characters; and switching the word weight value of the system text from the fourth word weight value to the third word weight value in response to the second mode switching operation.
Therefore, the state of the character weight adjusting control is not changed when the character weight is adjusted in the dark color mode, the influence of the dark color mode can be eliminated after the dark color mode is switched back to the light color mode, the character weight value of the system characters is restored to the character weight value determined according to the default character weight value of the system characters and the character weight adjusting control, the definition of the system characters after the display mode of the terminal is switched back to the light color mode is ensured, and the user experience of the user when the terminal is switched back to the light color mode is improved.
Optionally, after determining the first word weight adjustment ratio according to the current word weight value of the system word, the method further includes: and reducing the line thickness value of the displayed scalable vector graphics according to the first character weight adjustment proportion, wherein the scalable vector graphics at least comprise icons.
That is, after the dark mode is started, the character weight of the system text can be uniformly adjusted, and the displayed line thickness value of the SVG can be adjusted. Therefore, the definition of the system text and SVG can be ensured, and the reading experience of the user is improved. For example, the line thickness value of the SVG can be automatically adjusted along with the word weight of the system text.
In a second aspect, a method for word readjustment is provided, the method comprising:
Acquiring the intensity of ambient light; if the ambient light intensity meets the preset condition, determining a target character weight adjustment proportion according to the ambient light intensity and the current character weight value of the system characters; and adjusting the word weight value of the system words according to the target word weight adjustment proportion.
Therefore, the applicability adjustment can be carried out on the character weight value of the system character according to the ambient light intensity, so that the adjusted character weight value is matched with the ambient light intensity, the definition of the system character under different ambient light intensities is ensured, and the user experience is improved. In addition, the word weight adjusting proportion is determined through the current word weight value of the system word, so that the matching of the word weight adjusting proportion of the system word and the current word weight value of the system word can be ensured, the word weight adjusting precision of the system word is improved, and the definition of the system word is further ensured.
Optionally, the preset conditions include: the ambient light intensity is in a preset light intensity interval; alternatively, the ambient light intensity is varied to a degree greater than or equal to a variation threshold.
Optionally, the preset condition is that the ambient light intensity is in a preset light intensity interval; the preset light intensity interval comprises a plurality of light intensity intervals, and the intersection of the light intensity intervals is empty; determining a target character weight adjustment ratio according to the ambient light intensity and the current character weight value of the system characters, wherein the method comprises the following steps: and determining a target character weight adjustment proportion according to the light intensity interval in which the ambient light intensity is located in the plurality of light intensity intervals and the current character weight value of the system characters.
Optionally, the plurality of light intensity intervals includes a first light intensity interval and a second light intensity interval, the light intensity in the second light intensity interval being greater than the light intensity in the first light intensity interval; determining a target character weight adjustment ratio according to a light intensity interval in which the ambient light intensity is located in a plurality of light intensity intervals and a current character weight value of the system characters, wherein the method comprises the following steps: if the ambient light intensity is in the first light intensity interval, determining a target character weight adjustment ratio according to the current character weight value of the system character and a first corresponding relation between character weight information and the character weight adjustment ratio, wherein the character weight information is a character weight value or a character weight value interval; if the ambient light intensity is in the second light intensity interval, determining a target character weight adjustment ratio according to the current character weight value of the system character and a second corresponding relation between character weight information and the character weight adjustment ratio.
Therefore, different corresponding relations can be set for the corresponding relation of different ambient light intensities, the target character weight adjusting proportion can be determined from different corresponding relations according to the different environments of the corresponding brightness of the ambient light, the determined target character weight adjusting proportion is guaranteed to be matched with the brightness of the ambient light, and the character weight adjusting accuracy is improved. Moreover, the word weight value of the system word can be correspondingly reduced according to the current word weight value of the system word when the ambient light is dark, and the word weight value of the system word can be correspondingly increased according to the current word weight value of the system word when the ambient light is bright, so that the definition of the system word under different ambient light brightness is ensured, and the user experience is improved.
Optionally, before adjusting the word weight value of the system word according to the target word weight adjustment ratio, the method further comprises: determining a character weight adjusting direction of the system character according to the light intensity intervals of the environment light intensity in the plurality of light intensity intervals, wherein the character weight adjusting direction at least comprises increasing and decreasing; according to the target word weight adjustment proportion, adjusting the word weight value of the system words, including: and adjusting the word weight value of the system words according to the word weight adjusting direction and the target word weight adjusting proportion.
Therefore, the character weight adjusting direction of the system characters can be determined according to the difference of the environment light corresponding to the brightness environment, the matching of the character weight adjusting direction and the brightness of the environment light is ensured, and the accuracy of character weight adjustment is improved.
Optionally, determining the character weight adjustment direction of the system text according to the light intensity interval where the ambient light intensity is located in the plurality of light intensity intervals includes: if the ambient light intensity is in the first light intensity interval, determining that the character weight adjusting direction is reduced; and if the ambient light intensity is in the second light intensity interval, determining that the character weight adjusting direction is increased.
Therefore, the character weight of the system characters can be reduced when the ambient light is in a dark light environment, and the character weight of the system characters can be increased when the ambient light is in a bright light environment, so that the definition of the system characters under different ambient light brightness is ensured.
Optionally, the method further comprises: if the ambient light intensity is in the third light intensity interval, the character weight adjusting direction is determined to be unchanged, and the light intensity in the third light intensity interval is larger than the light intensity in the first light intensity interval and smaller than the light intensity in the second light intensity interval.
Therefore, when the brightness of the environment is in the middle value, namely in the medium bright and medium dark environments, a user can see the system characters clearly, the character weight of the system characters is not adjusted, and the operation amount and the electric quantity consumption of the terminal are saved.
Optionally, the word weight adjustment ratio in the first correspondence is smaller than 1, and the word weight adjustment ratio in the second correspondence is larger than 1.
Therefore, the character weight of the system characters can be reduced when the ambient light is in a dark light environment, and the character weight of the system characters can be increased when the ambient light is in a bright light environment, so that the definition of the system characters under different ambient light brightness is ensured.
Optionally, if the ambient light intensity is in the first light intensity interval, determining the target word weight adjustment ratio according to the current word weight value of the system word and the first correspondence between the word weight information and the word weight adjustment ratio includes: if the ambient light intensity is in the first light intensity interval and the current word weight value of the system word is greater than or equal to the first word weight threshold value, determining a target word weight adjustment ratio according to the current word weight value of the system word and the first corresponding relation; if the ambient light intensity is in the second light intensity interval, determining a target character weight adjustment ratio according to the current character weight value of the system character and a second corresponding relation between character weight information and the character weight adjustment ratio, including: if the ambient light intensity is in the second light intensity interval and the current word weight value of the system word is smaller than or equal to the second word weight threshold value, determining a target word weight adjustment ratio according to the current word weight value of the system word and the second corresponding relation.
Therefore, the character weight of the system characters can be regulated only when the current character weight value of the system characters is within a certain character weight range, and the character weight of the system characters is not regulated if the current character weight value of the system characters is not within the character weight range, so that the accuracy of character weight regulation can be ensured, and the operation amount and the electric quantity consumption of a terminal are saved.
Optionally, the preset condition is that the ambient light intensity changes and the degree of change is greater than or equal to a change threshold; determining a target character weight adjustment ratio according to the ambient light intensity and the current character weight value of the system characters, wherein the method comprises the following steps: and determining a target character weight adjustment proportion according to the change trend of the ambient light intensity and the current character weight value of the system characters.
Optionally, determining the target word weight adjustment ratio according to the change trend of the ambient light intensity and the current word weight value of the system word includes: if the ambient light intensity becomes smaller, determining a target character weight adjustment ratio according to the current character weight value of the system character and a third corresponding relation between character weight information and the character weight adjustment ratio, wherein the character weight information is a character weight value or a character weight value interval; if the ambient light intensity becomes larger, determining a target character weight adjustment ratio according to the current character weight value of the system character and a fourth corresponding relation between character weight information and the character weight adjustment ratio.
Therefore, when the ambient light is changed from bright to dark and the change degree is greater than or equal to the change threshold value, the word weight value of the system word is correspondingly reduced according to the current word weight value of the system word; when the ambient light is changed from dark to bright and the change degree is larger than or equal to the change threshold value, the word weight value of the system word is correspondingly increased according to the current word weight value of the system word. Therefore, the character weight of the system characters can be adaptively adjusted along with the change of the ambient light intensity, the definition of the system characters under different ambient light intensities is ensured, and the user experience is improved. In addition, the word weight adjusting proportion is determined through the current word weight value of the system word, so that the matching of the word weight adjusting proportion of the system word and the current word weight value of the system word can be ensured, the word weight adjusting precision of the system word is improved, and the definition of the system word is further ensured.
Optionally, before adjusting the word weight value of the system word according to the target word weight adjustment ratio, the method further comprises: determining a character weight adjusting direction of the system characters according to the change trend of the ambient light intensity, wherein the character weight adjusting direction at least comprises increasing and decreasing; according to the target word weight adjustment proportion, adjusting the word weight value of the system words, including: and adjusting the word weight value of the system words according to the word weight adjusting direction and the target word weight adjusting proportion.
Therefore, the character weight adjusting direction of the system characters can be determined according to different change trends of the ambient light intensity, the change trend of the character weight adjusting direction and the ambient light is guaranteed, and the accuracy of character weight adjustment is improved.
Optionally, determining the character readjustment direction of the system character according to the change trend of the ambient light intensity includes: if the ambient light intensity becomes smaller, determining that the character readjustment direction is reduced; if the ambient light intensity becomes large, the character readjustment direction is determined to be increased.
Therefore, the character weight of the system characters can be reduced when the ambient light becomes dark, and the character weight of the system characters can be increased when the ambient light becomes bright, so that the definition of the system characters under different ambient light brightness is ensured.
Optionally, the method further comprises: if the ambient light intensity is unchanged or the ambient light intensity is changed but the change degree is smaller than the change threshold value, the character readjustment direction is determined to be unchanged.
Optionally, the word weight adjustment ratio in the third corresponding relation is smaller than 1, and the word weight adjustment ratio in the fourth corresponding relation is larger than 1. Therefore, the character weight of the system characters can be reduced when the ambient light becomes dark, and the character weight of the system characters can be increased when the ambient light becomes bright, so that the definition of the system characters under different ambient light brightness is ensured.
Optionally, if the intensity of the ambient light becomes smaller, determining the target word weight adjustment ratio according to the current word weight value of the system word and a third correspondence between the word weight information and the word weight adjustment ratio includes: if the ambient light intensity becomes smaller and the current word weight value of the system word is larger than or equal to a third word weight threshold value, determining a target word weight adjustment proportion according to the current word weight value of the system word and a third corresponding relation; if the ambient light intensity becomes larger, determining a target word weight adjustment ratio according to the current word weight value of the system word and a fourth corresponding relation between the word weight information and the word weight adjustment ratio, including: if the ambient light intensity becomes large and the current word weight value of the system word is smaller than or equal to the fourth word weight threshold value, determining a target word weight adjustment proportion according to the current word weight value of the system word and the fourth corresponding relation.
Therefore, the character weight of the system characters can be regulated only when the current character weight value of the system characters is within a certain character weight range, and the character weight of the system characters is not regulated if the current character weight value of the system characters is not within the character weight range, so that the accuracy of character weight regulation can be ensured, and the operation amount and the electric quantity consumption of a terminal are saved.
Optionally, the preset condition is that the ambient light intensity changes and the degree of change is greater than or equal to a change threshold corresponding to a change starting point of the ambient light intensity, and the change thresholds corresponding to different change starting points are different. Thus, the accuracy of character weight adjustment can be improved.
Optionally, the method further comprises:
and adjusting the line thickness value of the displayed scalable vector graphics according to the target word weight adjustment proportion, wherein the scalable vector graphics at least comprise icons.
That is, the embodiment of the application can not only uniformly adjust the word weight of the system words according to the ambient light brightness, but also adjust the line thickness value of the displayed SVG according to the ambient light brightness. Therefore, the definition of the system text and SVG can be ensured, and the reading experience of the user is improved. For example, the line thickness value of the SVG can be automatically adjusted along with the word weight of the system text.
In a third aspect, a word weight adjustment device is provided, which has a function of implementing the word weight adjustment method behavior in the first aspect or the second aspect. The word weight adjusting device comprises at least one module, and the at least one module is used for realizing the word weight adjusting method provided by the first aspect or the second aspect.
In a fourth aspect, a word weight adjustment device is provided, where the structure of the word weight adjustment device includes a processor and a memory, where the memory is configured to store a program for supporting the word weight adjustment device to execute the word weight adjustment method provided in the first aspect or the second aspect, and store data related to implementing the word weight adjustment method in the first aspect or the second aspect. The processor is configured to execute a program stored in the memory. The word weight adjustment device may further comprise a communication bus for establishing a connection between the processor and the memory.
In a fifth aspect, there is provided a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the word weight adjustment method of the first or second aspect described above.
In a sixth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the word weight adjustment method of the first or second aspect described above.
The technical effects obtained by the third, fourth, fifth and sixth aspects are similar to the technical effects obtained by the corresponding technical means in the first or second aspects, and are not described in detail herein.
Drawings
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present application;
FIG. 2 is a block diagram of a software system of a terminal according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a user interface for opening a word reset interface by setting an application provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of a user interface for an adjustment word weight adjustment control provided by an embodiment of the present application;
FIG. 5 is a diagram showing a comparison between a user interface after switching to a dark mode in the related art and a user interface after switching to a dark mode in an embodiment of the present application;
FIG. 6 is a diagram of a user interface for turning on a dark color mode according to an embodiment of the present application;
FIG. 7 is a flow chart of a word weight adjustment method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a correspondence between a word weight value interval and a word weight adjustment ratio according to an embodiment of the present application;
FIG. 9 is a flow chart of another word weight adjustment method provided by an embodiment of the present application;
fig. 10 is a schematic view of a usage time distribution of a terminal under different ambient light intensities according to an embodiment of the present application;
FIG. 11 is a flow chart of yet another word re-adjustment method provided by an embodiment of the present application;
FIG. 12 is a flow chart of yet another word re-adjustment method provided by an embodiment of the present application;
FIG. 13 is a schematic diagram of a word weight adjusting device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of another word weight adjusting device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that references to "a plurality" in this disclosure refer to two or more. In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may represent A or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and function. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
The character weight adjusting method provided by the embodiment of the application is applied to the terminal with the character display function, and the terminal can be a smart phone, a tablet personal computer, a computer, an electronic book reader, a personal portable computer and the like. In a possible implementation manner, the terminal uses the characters with the variable character weight characteristic as the system characters, and the character weight adjustment method provided by the embodiment of the application can uniformly adjust the character weight of the system characters and ensure the definition of the system characters at all positions of the system after adjustment.
In addition, by the character weight adjusting method provided by the embodiment of the application, the line thickness value of the scalable vector graphics (scalable vector graphics, SVG) of the system can be adjusted besides the unified adjustment of the character weight of the system characters. For example, the line thickness value of the scalable vector graphics can be automatically adjusted along with the word weight of the system text.
Wherein SVG is a graphics format for describing two-dimensional vector graphics based on extensible markup language. SVG generally includes 3 types of objects: vector graphics (graphic edges including straight lines, curved lines), dot matrix images, and text. For example, the SVG may be an icon, a control, or the like.
Before explaining the character re-adjusting method provided by the embodiment of the application in detail, a terminal related to the embodiment of the application is explained.
Fig. 1 is a schematic structural diagram of a terminal 100 according to an embodiment of the present application. Referring to fig. 1, the terminal 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identity module (subscriber identification module, SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal 100. In other embodiments of the application, terminal 100 may include more or less components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the terminal 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces, such as may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The wireless communication function of the terminal 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like. The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the terminal 100. The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied on the terminal 100.
Terminal 100 implements display functions via a GPU, display 194, and application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the terminal 100 may include 1 or N display screens 194, N being an integer greater than 1.
The terminal 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like. The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture still images or video. In some embodiments, terminal 100 may include 1 or N cameras 193, N being an integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize the memory capability of the extension terminal 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. Such as storing files of music, video, etc. in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 performs various functional applications of the terminal 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created by the terminal 100 during use, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The terminal 100 may implement audio functions such as music playing, recording, etc. through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, etc.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A is of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a capacitive pressure sensor comprising at least two parallel plates with conductive material. The capacitance between the electrodes changes when a force is applied to the pressure sensor 180A. The terminal 100 determines the strength of the pressure according to the change of the capacitance. When a touch operation is applied to the display 194, the terminal 100 detects the intensity of the touch operation according to the pressure sensor 180A. The terminal 100 may also calculate the location of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location, but at different touch operation strengths, may correspond to different operation instructions. Such as: when a touch operation with the touch operation intensity smaller than the pressure threshold is applied to the short message application icon, executing an instruction for checking the short message. And executing the instruction of newly creating the short message when the touch operation with the touch operation intensity being larger than or equal to the pressure threshold acts on the short message application icon.
The ambient light sensor 180L is used to sense ambient light level. The terminal 100 may adaptively adjust the brightness of the display 194 according to the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the terminal 100 is in a pocket to prevent false touches.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor 180K may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may be disposed on the surface of the terminal 100 at a different location than the display 194.
The software system of the terminal 100 will be described next.
The software system of the terminal 100 may employ a layered architecture, an event driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the application, an Android (Android) system with a layered architecture is taken as an example, and a software system of the terminal 100 is illustrated.
Fig. 2 is a block diagram of a software system of the terminal 100 according to an embodiment of the present application. Referring to fig. 2, the hierarchical architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run time) and system layer, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 2, the application package may include applications such as a System user interface (System user interface, system UI), camera, gallery, phone, map, navigation, WLAN, bluetooth, music, video, etc. The SystemUI is used for managing a human-computer interaction (UI) of the electronic device, for example, in the embodiment of the present application, the SystemUI may be used for managing the word weight of the system text, the line thickness of the SVG related resource, and the like. For example, the SystemUI can implement management of the word weight of the system text and the line thickness of the SVG related resources by calling the related interface of the application framework layer.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data, which may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc., and make such data accessible to the application. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to construct a display interface for an application, which may be comprised of one or more views, such as a view that includes displaying a text notification icon, a view that includes displaying text, and a view that includes displaying a picture. The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. For example, a notification manager is used to inform that the download is complete, a message alert, etc. The notification manager may also be a notification that appears in the system top status bar in the form of a chart or a scroll bar text, such as a notification of a background running application. The notification manager may also be a notification that appears on the screen in the form of a dialog window, such as a text message being prompted in a status bar, a notification sound being emitted, the electronic device vibrating, a flashing indicator light, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules, such as: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The kernel layer at least contains display driver, sensor driver, etc. The hardware layer at least comprises a display screen, an ambient light sensor and the like.
The workflow of the terminal 100 software and hardware is illustrated below in connection with a dark mode on scenario.
When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into the original input event (including information such as touch coordinates, time stamp of touch operation, etc.). The original input event is stored at the kernel layer. The application framework layer acquires an original input event from the kernel layer, and identifies a control corresponding to the original input event. Taking the touch operation as a clicking operation, taking a dark mode switch control as an example as a control corresponding to the clicking operation, the system user interface calls a related interface of an application program framework layer, starts a dark mode, and adjusts the word weight value of the system text according to the current word weight value of the system text.
In order to facilitate understanding, an application scenario related to the word weight adjustment method provided by the embodiment of the application is described below by taking a terminal as an example of a mobile phone.
As described in the background art, at present, although the terminal provides a character weight adjusting function, the user needs to adjust the character weight through adjusting the character weight adjusting control in the character weight setting interface, but the terminal cannot automatically adjust the character weight, so that the operation of the user is complicated, and the flexibility is low.
Referring to fig. 3, fig. 3 is a schematic diagram of a user interface for opening a word reset interface through a set application according to an embodiment of the present application. Fig. 3 (a) illustrates a user interface 301 of a mobile phone, where the user interface 301 includes application icons for applications such as settings, cameras, gallery, and the like. If the user clicks an application icon of the setting application in the user interface 301, the cellular phone starts the setting application in response to the user's operation, and displays a setting interface 302 of the setting application as shown in fig. 3 (b). As shown in fig. 3 (b), the setup interface 302 includes "display and brightness" options, and may also include other options such as "mobile network", "desktop and wallpaper". If the user clicks the "display and brightness" option in the setting interface 302, the mobile phone displays the setting interface 303 for setting display and brightness as shown in the (c) diagram in fig. 3 in response to the user's operation, where the setting interface 303 includes the "font thickness" option, and may further include other options such as "font style", "font size", and the like. The user clicks the "font thickness" option in the setting interface 303, and in response to the user's operation, the cellular phone displays a font resetting interface 304 for setting font thickness as shown in (d) diagram in fig. 3.
As shown in fig. 3 (d), the character reset interface 304 includes a character reset control 31 and a sample character 32, and the character reset control 31 is a slider control constituted by a slider and a slider. The user can adjust the weight of the system text by adjusting the position of the slider on the slider, such as by dragging the slider to adjust the position of the slider on the slider. For example, the user may decrease the font weight (font thinning) by dragging the slider to the left and increase the font weight (font thickening) by dragging the slider to the right. The font weight (font thickness) of the sample text 32 corresponds to the slider position of the font weight adjustment control 31.
The word weight adjustment range corresponding to the word weight adjustment control 31 may be preset. For example, the word weight adjustment range may be [ a, b ], a being the minimum word weight value and b being the maximum word weight value. For example, as shown in the diagram (d) in fig. 3, the system character is configured with a default character weight value, the default character weight value corresponds to a value of 100%, and when the slider of the character weight adjustment control 31 slides to the position shown in the diagram (d) in fig. 3, the character weight value of the system character is the default character weight value. The left end value of the weight adjustment control 31 is 64%, that is, the weight value of the system character decreases to 64% of the default weight value when the slider slides to the place, the right end value of the weight adjustment control 31 is 164%, that is, the weight value of the system character increases to 164% of the default weight value when the slider slides to the place, and in this case, the weight adjustment range corresponding to the weight adjustment control 31 is [ default weight value×64%, default weight value×164% ].
Referring to fig. 4, fig. 4 is a schematic diagram of a user interface of an adjustment word weight adjustment control according to an embodiment of the present application. After the user opens the font resetting interface 304 as shown in fig. 4 (a), if the user wants to thicken the font of the system text, the slider in the font weight control 31 may be dragged to slide rightward. As shown in the figure (b) of fig. 4, if the value corresponding to the stop position of the slider is 130%, the font weight value of the system text increases from the default font weight value to 130% of the default font weight value, i.e., the font becomes thicker. For example, if the default weight value is 400, the weight value of the sample character 32 in the diagram (a) in fig. 4 is 400, and the weight value of the sample character 32 in the diagram (b) in fig. 4 is 400×130+=520.
It should be understood that the embodiments of the present application are merely described by setting an application to open a word reset interface, and of course, the word reset interface may be opened in other manners, which are not limited in this embodiment of the present application. For example, the word reset interface may also be a drop down menu bar, i.e., the drop down menu bar includes a word reset control.
From the above, the user adjusts the word weight by adjusting the word weight adjusting control, so that the user operation is complicated and the flexibility is low. In addition, after the user adjusts the word weight of the system text through the word weight adjustment control, the adjusted word weight may not meet the reading requirement of the user any more along with the change of the use scene. For example, the usage scenario changes as follows:
Scene one
The end system is configured with a plurality of display modes, such as a light mode and a dark mode. The light-color mode refers to a display mode in which the system background is light and the system text is dark. The dark color mode refers to a display mode in which the system background is dark and the system text is light. And when the user starts the dark mode of the mobile phone after the character weight is adjusted, the adjusted character weight is possibly not suitable for the reading requirement of the dark mode. For example, after the dark mode is turned on, the system background will change from light to dark and the system text will change from dark to light, but the light text may be glare, resulting in a user not being able to see the text.
Referring to fig. 5, fig. 5 is a schematic diagram of a comparison between a user interface after being switched to a dark color mode in the related art and a user interface after being switched to a dark color mode in an embodiment of the present application. Fig. 5 (a) illustrates a memo interface 501 in a light mode, in which the system background is light, the system text is dark, and in which the weight value of the system text is adjusted to the default weight value x 130% by the weight adjustment control, as illustrated by memo interface 501. In the related art, as shown in (b) of fig. 5, the memo interface 502 in the dark mode of the mobile phone is switched from the light mode to the dark mode after the dark mode of the mobile phone is turned on, the system background changes to dark color and the system text changes to light color, but the word weight of the system text is unchanged. Comparing the (a) diagram in fig. 5 with the (b) diagram in fig. 5, it can be seen that, in the case of the same word weight, the light-colored text displayed in the dark-colored mode may generate glare relative to the dark-colored text displayed in the light-colored mode, so that the user cannot see the text clearly.
In the embodiment of the application, in order to alleviate the problem that the user cannot see the characters due to the possibility of glare generated by the system characters after the dark mode is started, the character weight value of the system characters can be correspondingly reduced according to the current character weight value of the system characters after the dark mode is started, namely, the characters of the system characters are thinned, so that the glare generated by the system characters in the dark mode is relieved, the definition of the system characters is improved, and the reading experience of the user is further improved.
Referring to the memo interface 503 in the dark mode shown in fig. 5 (c), in the embodiment of the present application, after the dark mode of the mobile phone is turned on, that is, after the display mode of the mobile phone is switched from the light mode to the dark mode, the mobile phone may correspondingly reduce the word weight value of the system text according to the current word weight value of the system text, for example, reduce the word weight value from the default word weight value×130% to the default word weight value×120%. Therefore, the memo interface 503 not only changes the system background to dark color and the system text to light color, but also reduces the font weight value of the system text (font thinning) with respect to the memo interface 501 shown in fig. 5 (a). Further, as can be seen from a comparison of fig. 5 (c) and fig. 5 (b), the system text after the word weight value is reduced in the dark mode is clearer. According to the embodiment of the application, after the light mode is switched to the dark mode, the font weight value of the system text is correspondingly reduced according to the current font weight value of the system text, so that the font of the system text is thinned after the light mode is switched to the dark mode, glare generated by the system text in the dark mode is relieved, and the definition of the system text is improved.
It should be noted that, in the embodiment of the present application, the state of the word weight adjustment control is not changed when the word weight is adjusted in the dark color mode, and after the dark color mode is switched back to the light color mode, the mobile phone may also restore the word weight value of the system text to the original word weight value. The original word weight value refers to a word weight value determined according to a default word weight value of the system text and a word weight adjusting control. For example, referring to fig. 5 (c), after the light mode is switched to the dark mode, if the dark mode is turned off, the word weight value of the system text is readjusted to the default word weight value×130%, for example, the memo interface 501 shown in fig. 5 (a) is switched back.
In one possible implementation, the handset may display a dark mode switch control in the associated interface that is used to turn on or off the dark mode. The user's operation to turn on the dark mode may be a trigger operation of a dark mode switch control. The deep color mode switch control can be displayed in a setting interface of a setting application or in other interfaces such as a drop-down menu.
Referring to fig. 6, fig. 6 is a schematic diagram of a user interface for turning on a dark mode according to an embodiment of the application. For example, the user may click on an application icon of the setup application to open a setup interface of the setup application, which includes "display and brightness" options. The user may open the setup interface for setting up the display and brightness by clicking on the "display and brightness" option in the setup interface. Fig. 6 (a) illustrates a setting interface 303 for setting display and brightness, where the setting interface 303 includes a "dark mode" option, and may further include other options such as "font thickness", "font style", "font size", and the like. The user clicks the "dark mode" option in the setting interface 303, and in response to the user's operation, the mobile phone displays a dark mode setting interface 306 as shown in fig. 6 (b), the dark mode setting interface 306 including the dark mode switch control 61. If the user clicks the dark mode switch control 61 while the dark mode is off, the mobile phone turns on the dark mode, i.e., switches the display mode from the light mode to the dark mode, in response to the user's operation. In addition, the dark mode setting interface 306 may also be used to set applications that turn on the dark mode, i.e., set which applications may adapt to the dark mode after the dark mode is turned on.
It should be understood that the embodiment of the present application is only described by taking the case of opening the dark mode setting interface through the setting application as an example, and of course, the dark mode setting interface may be opened in other manners, which is not limited by the embodiment of the present application. For example, the dark mode setting interface may also be a drop down menu bar, i.e., the drop down menu bar includes a dark mode switch control.
Scene two
After the user adjusts the word weight of the system text through the word weight adjusting control, the adjusted word weight may not be matched with the brightness of the environment where the mobile phone is located along with the change of the brightness of the environment where the mobile phone is located, so that the user cannot see the text clearly. For example, if the mobile phone is in a dark environment, the user cannot see the characters due to excessive character weight; if the mobile phone is in a brighter environment, the user cannot see the characters due to too small character weight.
In the embodiment of the application, in order to avoid the situation that the character weight of the system character is not matched with the brightness of the environment where the mobile phone is positioned, so that the user cannot see the character clearly, the environment light intensity can be obtained in the process of using the mobile phone by the user, and the character weight value of the system character is regulated according to the environment light intensity and the current character weight value of the system character. Therefore, the adjusted character weight value can be matched with the ambient light intensity, the definition of the system characters under different ambient light intensities is ensured, and the user experience is improved.
As an example, when the ambient light is dark, the word weight value of the system word can be correspondingly reduced according to the current word weight value of the system word; when the ambient light is brighter, the word weight value of the system word is correspondingly increased according to the current word weight value of the system word.
As another example, the font weight value of the system text may be correspondingly reduced according to the current font weight value of the system text when the ambient light is dimmed from bright and the degree of change is greater than or equal to the change threshold; when the ambient light is changed from dark to bright and the change degree is larger than or equal to the change threshold value, the word weight value of the system word is correspondingly increased according to the current word weight value of the system word.
It should be noted that, the specific implementation manner of the second scenario will be described in detail in the following embodiments of fig. 9, fig. 11 and fig. 12, and the embodiments of the present application are not described herein.
Next, a detailed description will be given of a word weight adjustment method according to an embodiment of the present application.
Fig. 7 is a flowchart of a word weight adjustment method according to an embodiment of the present application, where the method may be applied to a terminal, as shown in fig. 7, and the method may include the following steps:
step 701: and under the condition that the current word weight value of the system word is the first word weight value, receiving a first mode switching operation, wherein the first mode switching operation is used for switching the display mode of the system into a dark color mode.
The first mode switching operation refers to an operation of starting a dark mode, and the first mode switching operation may be a touch operation, a gesture operation, a voice operation, or the like.
For example, the terminal may display a dark mode switch control in the relevant interface, and the first mode switching operation may be a touch operation on the dark mode switch control. For example, the dark-mode switch control may be displayed in a setting interface of a setting application, or may be displayed in other interfaces such as a drop-down menu.
Step 702: in response to a first mode switching operation, a first word weight adjustment ratio is determined from the first word weight value.
In response to the first mode switching operation, the terminal may switch the display mode of the system from the light mode to the dark mode. In addition, in the embodiment of the application, in order to alleviate the problem that after the display mode of the system is switched from the light mode to the dark mode, the user cannot see the characters clearly because the system characters possibly generate glare, the terminal can determine the first character weight adjustment proportion of the system characters according to the current character weight value of the system characters so as to adjust the character weight value of the system characters according to the first character weight adjustment proportion.
It should be noted that, in the embodiment of the present application, the first word weight adjustment ratio of the system text is determined according to the current word weight value of the system text, and if the current word weight values of the system text are different, the corresponding first word weight adjustment ratios may be different.
As an example, the operation of determining the first word weight adjustment ratio according to the current word weight value of the system word may include the following two implementations:
the first implementation mode: and determining a first character weight adjustment ratio according to the current character weight value of the system character and the corresponding relation between the character weight value and the character weight adjustment ratio.
In a first implementation manner, a corresponding relation between the word weight value and the word weight adjustment proportion is preset, wherein the corresponding relation comprises different word weight values and the word weight adjustment proportion respectively corresponding to the different word weight values.
As an example, the word weight adjustment ratio in the corresponding relation between the word weight value and the word weight adjustment ratio is smaller than 1, so that the word weight value of the system word can be reduced when the word weight value of the system word is adjusted according to the first word weight adjustment ratio determined by the corresponding relation.
As one example, the word weight adjustment ratios for different word weight values are different. Therefore, the accuracy of word weight adjustment can be ensured, so that the adjusted word weight is matched with the current word weight value.
As one example, the smaller the word weight value, the greater its corresponding word weight adjustment ratio. Therefore, the word weight value of the system words can be obviously reduced when the word weight value of the system words is smaller, so that the glare influence of the system words in a dark color mode is effectively relieved, and the definition of the system words is improved.
As an example, the system text is preset with a plurality of word weight value ranges, and the word weight value of the system text can be adjusted among the plurality of word weight value ranges. For example, the plurality of word weight value gears are set with a word weight value of one hundred, the word weight value corresponding to each word weight value gear is a whole hundred, and the word weight values corresponding to adjacent word weight value gears differ by one hundred. For example, the plurality of word weight value ranges includes: 100. 200, 300, 400, 500, 600, 700, 800, 900, etc. Correspondingly, the corresponding relation between the word weight value and the word weight adjustment proportion comprises a plurality of word weight value gears and the word weight adjustment proportion corresponding to each word weight value gear. For example, the word weight adjustment ratios corresponding to different word weight value gears are different. For example, the smaller the word weight value corresponding to the word weight value gear, the larger the corresponding word weight adjustment ratio.
As an example, the correspondence of the word weight value and the word weight adjustment ratio may be as shown in table 1 below:
TABLE 1
Between word weight values Word weight adjustment ratio
900 or more Unchanged
900 90%
800 91%
700 92%
600 93%
500 94%
400 95%
300 96%
300 or less Unchanged
It should be understood that table 1 is only an example of the correspondence between the weight value and the weight adjustment ratio, and the value in the correspondence between the weight value and the weight adjustment ratio may be set to other values as required, which is not limited in the embodiment of the present application.
As an example, in determining the first word weight adjustment ratio according to the current word weight value of the system word and the corresponding relation between the word weight value and the word weight adjustment ratio, if the current word weight value of the system word is the first word weight value, the word weight adjustment ratio corresponding to the first word weight value may be determined from the corresponding relation between the word weight value and the word weight adjustment ratio, and the word weight adjustment ratio corresponding to the first word weight value may be used as the first word weight adjustment ratio.
The second implementation mode: and determining a word weight value interval in which the current word weight value of the system word is positioned, and determining a first word weight adjustment ratio according to the word weight value interval in which the current word weight value is positioned and the corresponding relation between the word weight value interval and the word weight adjustment ratio.
In a second implementation manner, a corresponding relation between the word weight value interval and the word weight adjustment proportion is preset, wherein the corresponding relation comprises different word weight value intervals and the word weight adjustment proportion respectively corresponding to the different word weight value intervals. Wherein the intersection of the different word weight value intervals is empty.
As an example, the word weight adjustment ratio in the corresponding relation between the word weight value interval and the word weight adjustment ratio is smaller than 1, so that the word weight value of the system word can be reduced when the word weight value of the system word is adjusted according to the first word weight adjustment ratio determined by the corresponding relation.
As one example, the word weight adjustment ratios corresponding to different word weight value intervals are different. Therefore, the accuracy of word weight adjustment can be ensured, so that the adjusted word weight is adapted to the word weight value interval to which the current word weight value belongs.
As one example, the smaller the word weight value interval, the greater its corresponding word weight adjustment ratio. Therefore, the word weight value of the system words can be obviously reduced when the word weight value of the system words is smaller, so that the glare influence of the system words in a dark color mode is effectively relieved, and the definition of the system words is improved.
As an example, the correspondence between the weight value interval and the weight adjustment ratio may be as shown in table 2 below:
TABLE 2
It should be understood that table 2 is only an example of the correspondence between the weight value interval and the weight adjustment ratio, and the values in the correspondence between the weight value interval and the weight adjustment ratio may be set to other values as required, which is not limited in the embodiment of the present application.
Referring to fig. 8, fig. 8 is a schematic diagram of a correspondence relationship between a word weight value interval and a word weight adjustment ratio according to an embodiment of the present application. Moreover, fig. 8 shows a text example corresponding to the different weight value sections, and a text example after the weight adjustment is performed according to the corresponding weight adjustment ratio.
As an example, in determining the first weight adjustment ratio according to the weight value interval in which the current weight value is located and the correspondence between the weight value interval and the weight adjustment ratio, if the weight value interval in which the current weight value is located is the first weight value interval, the weight adjustment ratio corresponding to the first weight value interval may be determined from the correspondence between the weight value interval and the weight adjustment ratio, and the weight adjustment ratio corresponding to the first weight value interval may be used as the first weight adjustment ratio.
As an example, before determining the first word weight adjustment ratio according to the first word weight value, it may also be determined whether the current word weight value of the system text is within a preset word weight value interval. If the current word weight value of the system word is in the preset word weight value interval, the step of determining the first word weight adjustment ratio and the subsequent steps according to the current word weight value of the system word are executed. If the current word weight value of the system word is not in the preset word weight value interval, the word weight value of the system word is not adjusted.
The preset word weight value interval is a preset word weight value interval which allows word weight value adjustment after switching to a dark color mode. If the current word weight value of the system word is within the preset word weight value interval, the word weight value of the system word is allowed to be adjusted after the system word is switched to the dark color mode. If the current word weight value of the system word is not in the preset word weight value interval, the word weight value of the system word is not allowed to be adjusted after the system word is switched to the dark color mode.
As one example, the preset word weight value interval may be [ first threshold, second threshold ], the second threshold being greater than the first threshold. That is, after the first mode switching operation is received, if the current word weight value of the system word is smaller than the first threshold value or larger than the second threshold value, the word weight value of the system word is not adjusted. The first threshold and the second threshold may be preset, for example, the first threshold is 300, and the second threshold is 900.
Step 703: and according to the first word weight adjustment proportion, reducing the word weight value of the system words, wherein the reduced word weight value is the second word weight value.
As one example, a second word weight value may be determined based on the first word weight value and the first word weight adjustment ratio, the second word weight value being less than the first word weight value. Then, the word weight value of the system word is adjusted to a second word weight value.
In one possible implementation, the product of the first word weight value and the first word weight adjustment ratio may be determined as the second word weight value. The first word weight adjustment ratio is smaller than 1, so that the second word weight value determined according to the first word weight value and the first word weight adjustment ratio can be ensured to be smaller than the first word weight value.
For example, the first word weight value is 400, the first word weight adjustment ratio is 96%, and the second word weight value is 400×96+=384.
In another possible implementation, a product of the first word weight value and the first word weight adjustment ratio may also be determined, and a difference between the first word weight value and the product is determined as the second word weight value.
Illustratively, the first word weight value is 400, the first word weight adjustment ratio is 4%, and the second word weight value is 400-400×4% =384.
In addition, after the scale is adjusted according to the first word weight and the word weight value of the system word is reduced, the terminal may switch back to the light-color mode again. In the embodiment of the application, in order to improve the user experience of switching back the light-color mode at the terminal, the character weight value of the system characters can be recovered after the terminal switches back to the light-color mode.
As one example, after the scale is adjusted according to the first word weight, the word weight value of the system text is reduced, a second mode switching operation is received, the second mode switching operation being used to switch the display mode of the system from the dark mode to the light mode. And in response to the second mode switching operation, adjusting the word weight value of the system text from the second word weight value to the first word weight value.
In addition, after the word weight value of the system text is reduced according to the first word weight adjustment proportion, the user may also adjust the word weight adjustment control in the dark color mode, so as to adjust the word weight of the system text by adjusting the word weight adjustment control, and then turn off the dark color mode. The implementation of this scenario is described in detail below by way of steps 704-711.
Step 704: and receiving an adjustment operation of a word weight adjustment control in the word weight setting interface.
The character reset interface comprises a character weight adjusting control, and the character weight adjusting control is used for adjusting the character weight value of the system characters. The adjustment operation of the word weight adjustment control can be touch operation or dragging operation of the word weight adjustment control.
For example, the user may open a word reset interface through the manner of operation shown in FIG. 3, where the word reset interface includes a word reset control, which is a slider control that is composed of a slider bar and a slider. The user can adjust the weight of the system text by adjusting the position of the slider on the slider, such as by dragging the slider to adjust the position of the slider on the slider.
Step 705: and determining a second word weight adjustment ratio according to the adjustment operation.
That is, the second word weight adjustment ratio adjusted by the adjustment operation can be determined. For example, the position of the slider on the slider bar in the weight adjustment control adjusted by the adjustment operation may be determined to determine the second weight adjustment ratio.
For example, referring to fig. 4, the user drags the slider rightward, and drags the slider from the position shown in fig. 4 (a) to the position shown in fig. 4 (b). Thus, the second word weight adjustment ratio can be determined to be 130%.
Step 706: and determining a third word weight value according to the default word weight value of the system word and the second word weight adjustment proportion.
For example, the product of the default word weight value of the system word and the second word weight adjustment ratio may be determined as the third word weight value.
For example, assuming that the default word weight value of the system word is 400, the second word weight adjustment ratio is 130%, the third word weight value is 400×130+=520.
In the embodiment of the present application, if the adjustment operation is received in the light-color mode, the weight value of the system text may be directly adjusted to a third weight value determined according to the default weight value and the second weight adjustment ratio. However, in the embodiment of the present application, the adjustment operation received in the dark mode is performed, so that in order to avoid the glare effect of the system text in the dark mode, after determining the third word weight value, a corresponding third word weight adjustment ratio may be determined according to the third word weight value, the third word weight value may be reduced to a fourth word weight value according to the third word weight adjustment ratio, and then the word weight value of the system text may be adjusted to the fourth word weight value.
Step 707: and determining a third word weight adjustment ratio according to the third word weight value.
The method for determining the third word weight adjustment ratio according to the third word weight value is the same as the method for determining the first word weight adjustment ratio according to the first word weight value in the step 702, and the specific implementation process may refer to the related description of the step 702, which is not repeated herein.
For example, referring to table 2 above, if the third word weight value is 520, the third word weight adjustment ratio is 94%.
Step 708: and determining a fourth word weight value according to the third word weight value and the third word weight adjustment proportion.
As one example, the product of the third word weight value and the third word weight adjustment ratio may be determined as the fourth word weight value.
For example, if the third word weight value is 520 and the third word weight adjustment ratio is 94%, the fourth word weight value is 520×94% =489.
As another example, a product of the third word weight value and the third word weight adjustment ratio may also be determined, and a difference between the third word weight value and the product may be determined as the fourth word weight value.
Step 709: and adjusting the word weight value of the system text from the second word weight value to a fourth word weight value.
That is, if the font weight value of the system text is the second font weight value and the display mode of the system is in the dark mode, the adjustment operation of the font weight adjustment control in the font weight setting interface is received, the steps 705-708 may be used to determine the fourth font weight value, and then the font weight value of the system text is adjusted from the second font weight value to the fourth font weight value.
For example, if the second word weight value is 384 and the fourth word weight value is 489, the word weight value of the system text may be adjusted from 384 to 489.
Step 710: a second mode switching operation is received, the second mode switching operation being for switching a display mode of the system from a dark mode to a light mode.
The second mode switching operation refers to an operation of closing a dark mode, and the second mode switching operation may be a touch operation, a gesture operation, a voice operation, or the like.
For example, the terminal may display a dark mode switch control in the relevant interface, and the second mode switching operation may be a touch operation on the dark mode switch control. For example, the dark-mode switch control may be displayed in a setting interface of a setting application, or may be displayed in other interfaces such as a drop-down menu.
Step 711: and in response to the second mode switching operation, adjusting the word weight value of the system text from the fourth word weight value to the third word weight value.
In response to the second mode switching operation, the terminal may switch the display mode of the system from the dark mode to the light mode. In addition, in the embodiment of the application, in order to ensure the definition of the system text after switching back to the light mode, the terminal can restore the font weight value of the system text, namely, restore the font weight value of the system text to the original font weight value, while switching the display mode of the system from the dark mode to the light mode. The original word weight value refers to a word weight value determined according to a default word weight value of the system text and a word weight adjusting control.
That is, in the embodiment of the application, the state of the word weight adjusting control is not changed when the word weight is adjusted in the dark color mode, and after the dark color mode is switched back to the light color mode, the influence of the dark color mode can be eliminated, and the word weight value of the system text is restored to the word weight value determined according to the default word weight value of the system text and the word weight adjusting control.
For example, if the fourth word weight value is 489 and the third word weight value is 520, the word weight value of the system word may be switched from 489 to 520.
In addition, in the embodiment of the application, after the deep color mode is started, the character weight of the system characters can be uniformly adjusted, and the displayed line thickness value of the SVG can be adjusted. For example, the line thickness value of the SVG can be automatically adjusted along with the word weight of the system text. The SVG may include icons, controls, and the like, among others.
For example, after the step 702, the scale may be adjusted according to the first word weight, so as to reduce the line thickness value of the displayed SVG. For example, the second line thickness value may be determined according to the displayed first line thickness value and the first character weight adjustment ratio of the SVG, and then the line thickness value of the SVG may be adjusted to the second line thickness value.
In the embodiment of the application, after the mode switching operation of switching the display mode of the system to the dark mode is received, the character weight adjustment proportion is determined according to the current character weight value of the system characters, and the character weight value of the system characters is reduced according to the determined character weight adjustment proportion, so that the fonts of the system characters can be thinned after the dark mode is started, the glare generated by the system characters in the dark mode is relieved, the definition of the system characters is improved, and the reading experience of a user is further improved. In addition, the word weight adjustment proportion is determined through the current word weight value of the system word, so that the word weight adjustment proportion of the system word is matched with the current word weight value of the system word, the word weight adjustment precision of the system word is improved, and the definition of the system word is further ensured.
Fig. 9 is a flowchart of another word weight adjustment method provided in an embodiment of the present application, where the method may be applied to a terminal, as shown in fig. 9, and the method may include the following steps:
step 901: the ambient light intensity is acquired.
The ambient light intensity is used for indicating the brightness of the ambient light where the terminal is located. The greater the intensity of the ambient light, the brighter the ambient light at which the terminal is located. The smaller the ambient light intensity, the darker the ambient light at which the terminal is located.
As one example, the terminal is configured with an ambient light sensor through which the terminal may obtain the ambient light intensity.
It should be noted that, the terminal may obtain the ambient light level in real time, or may obtain the ambient light level periodically, which is not limited in the embodiment of the present application.
Step 902: and judging whether the ambient light intensity meets preset conditions.
The preset conditions are preset environment light conditions allowing the word weight of the system words to be adjusted.
As one example, the preset conditions may include: the ambient light intensity is in a preset light intensity interval; alternatively, the ambient light intensity is varied to a degree greater than or equal to a variation threshold.
The preset light intensity interval and the change threshold value can be set in advance according to needs, and the embodiment of the application does not limit the preset light intensity interval and the change threshold value.
Step 903: if the ambient light intensity meets the preset condition, determining a target character weight adjustment proportion according to the ambient light intensity and the current character weight value of the system characters.
As an example, when the preset condition is that the ambient light intensity is in a preset light intensity interval, and the preset light intensity interval includes a plurality of light intensity intervals, and an intersection of the plurality of light intensity intervals is empty, the target word weight adjustment ratio may be determined according to the light intensity interval in which the ambient light intensity is in the plurality of light intensity intervals, and the current word weight value of the system word.
For example, different light intensity intervals in the light intensity intervals correspond to different corresponding relations, and the target character weight adjustment proportion can be determined according to the current character weight value of the system character and the corresponding relation of the environment light intensity in the light intensity intervals. The corresponding relation between different light intensity intervals is the corresponding relation between the character weight information and the character weight adjusting proportion, and the character weight information is a character weight value or a character weight value interval.
The plurality of light intensity intervals may be set as needed in advance. For example, the plurality of light intensity intervals may include a first light intensity interval corresponding to a dark light environment and a second light intensity interval corresponding to a bright light environment. For example, the first light intensity interval is [2, 100 ], and the second light intensity interval is [2K, ++).
As an example, the word weight adjustment ratio in the corresponding relationship of the first light intensity interval is smaller than 1, so that when the word weight value of the system text is adjusted according to the target word weight adjustment ratio determined by the corresponding relationship, the word weight value of the system text can be reduced. The word weight adjustment ratio in the corresponding relation of the second light intensity interval is larger than 1, so that the word weight value of the system word can be increased when the word weight value of the system word is adjusted according to the target word weight adjustment ratio determined by the corresponding relation.
In addition, a third light intensity interval can be set outside the preset light intensity interval, and the third light intensity interval corresponds to a medium bright and medium dark environment. For example, the third light intensity interval is [200,2 k). And when the ambient light intensity is in the third light intensity interval, indicating that the ambient light intensity does not meet the preset condition.
As an example, the plurality of light intensity intervals may be set according to the intensity of the ambient light in which the terminal is frequently located, such as according to the usage time duty cycle of the terminal at different ambient light intensities. Referring to fig. 10, fig. 10 is a schematic diagram of a usage time distribution of a terminal under different ambient light intensities according to an embodiment of the present application. As shown in fig. 10, the terminal is in the ambient light intensity intervals of [2, 100 ], [200,2K) and [2K, infinity) these sections have long service lives, and therefore, a plurality of light intensity sections can be set according to these sections. For example, the plurality of light intensity intervals includes a first light intensity interval [2, 100 ] and a second light intensity interval [2K, +.).
As another example, in the case where the preset condition is that the ambient light intensity is changed and the degree of change is greater than or equal to the change threshold, the target word weight adjustment ratio may be determined according to the trend of the change in the ambient light intensity and the current word weight value of the system word.
For example, different change trends correspond to different corresponding relations, and the target character weight adjustment proportion can be determined according to the current character weight value of the system characters and the corresponding relation corresponding to the current change trend of the ambient light intensity.
The trend of the change in the intensity of the ambient light may include increasing and decreasing, etc.
Step 904: and adjusting the word weight value of the system words according to the target word weight adjustment proportion.
As an example, the target word weight adjustment ratio may indicate a word weight adjustment direction and adjustment size, and thus the word weight value of the system word may be adjusted directly according to the target word weight adjustment ratio. For example, if the target word weight adjustment ratio is smaller than 1, the word weight adjustment value is reduced; and if the target word weight adjustment proportion is greater than 1, the word weight value is enlarged.
For example, the target word weight value may be determined according to the current word weight value and the target word weight adjustment ratio of the system word, and the word weight value of the system word may be adjusted to the target word weight value.
As another example, the word weight adjustment direction may be determined based on the ambient light intensity, and then the word weight value of the system word may be adjusted based on the word weight adjustment direction and the target word weight adjustment ratio. Wherein the word weight adjustment direction includes increasing and decreasing.
For example, the character readjusting direction may be determined according to a light intensity interval in which the ambient light intensity is located. For example, if the ambient light intensity is within the first light intensity interval, determining that the character weight adjustment direction is decreasing; and if the ambient light intensity is in the second light intensity interval, determining that the character weight adjusting direction is increased.
For another example, the character weight adjustment direction may be determined according to a trend of the ambient light intensity. For example, if the ambient light intensity becomes smaller, i.e., the ambient light becomes darker, the word weight adjustment direction is determined to be decreased; if the ambient light intensity becomes large, that is, the ambient light becomes bright, the character weight adjustment direction is determined to be increased.
Step 905: if the ambient light intensity does not meet the preset condition, the character weight value of the system characters is not adjusted.
In addition, in the embodiment of the application, the character weight of the system characters can be uniformly adjusted according to the ambient light intensity, and the displayed line thickness value of the SVG can be adjusted. For example, the line thickness value of the SVG can be automatically adjusted along with the word weight of the system text. The SVG may include icons, controls, and the like, among others.
For example, after the step 703, the scale may be adjusted according to the target word weight, so as to adjust the line thickness value of the displayed SVG. For example, the second line thickness value may be determined according to the displayed first line thickness value and the target word weight adjustment ratio of the SVG, and then the line thickness value of the SVG may be adjusted to the second line thickness value.
According to the embodiment of the application, the target character weight adjustment proportion is determined according to the environment light intensity and the current character weight value of the system character under the condition that the environment light intensity meets the preset condition, and the character weight value of the system character is adjusted according to the target character weight adjustment proportion, so that the adjusted character weight value is adapted to the environment light intensity, the definition of the system character under different environment light intensities is ensured, and the user experience is improved. In addition, the word weight adjusting proportion is determined through the current word weight value of the system word, so that the matching of the word weight adjusting proportion of the system word and the current word weight value of the system word can be ensured, the word weight adjusting precision of the system word is improved, and the definition of the system word is further ensured.
Fig. 11 is a flowchart of another word weight adjustment method provided in an embodiment of the present application, where the method may be applied to a terminal, as shown in fig. 11, and the method may include the following steps:
step 1101: the ambient light intensity is acquired.
Step 1102: judging whether the ambient light intensity is in a preset light intensity interval or not, wherein the preset ambient light intensity comprises a first light intensity interval and a second ambient light intensity interval, and the light intensity in the first light intensity interval is smaller than the light intensity in the second light intensity interval.
The first light intensity interval corresponds to a dark light environment, and the second light intensity interval corresponds to a bright light environment. For example, the first light intensity interval is [2, 100 ], and the second light intensity interval is [2K, ++).
Step 1103: if the ambient light intensity is not in the preset light intensity interval, the character weight value of the system characters is not adjusted.
For example, a third light intensity interval may be set outside the preset light intensity interval, where the third light intensity interval corresponds to a medium bright and medium dark environment. For example, the third light intensity interval is [200,2 k). When the ambient light intensity is in the third light intensity interval, the ambient light intensity is not in the preset light intensity interval, so that the character weight value of the system characters is not adjusted.
Step 1104: if the ambient light intensity is in the preset light intensity interval and in the first light intensity interval, judging whether the current character weight value of the system character is larger than or equal to a first character weight threshold value.
Step 1105: if the current word weight value of the system word is smaller than the first word weight threshold value, the word weight value of the system word is not adjusted.
The first word weight threshold may be preset, and is typically a smaller word weight value. For example, the first word weight threshold is 300. Therefore, when the current word weight value of the system word is smaller, the word weight value of the system word is not adjusted, so that the definition of the system word is further ensured.
Further, whether the current word weight value of the system word is in a preset word weight value interval can be judged. If not, the word weight value of the system word is not adjusted. If yes, executing the step and the subsequent steps of determining the target word weight adjustment ratio according to the current word weight value of the system word and the first corresponding relation between the word weight information and the word weight adjustment ratio.
For example, the preset word weight value interval may be [ first word weight threshold, second word weight threshold ], and the second word weight threshold is greater than the first word weight threshold. Illustratively, the first word weight threshold is 300 and the second word weight threshold is 900.
Step 1106: if the current word weight value of the system word is greater than or equal to the first word weight threshold value, determining a target word weight adjustment ratio according to the current word weight value of the system word and a first corresponding relation between the word weight information and the word weight adjustment ratio.
As an example, the word weight adjustment ratio in the first correspondence is smaller than 1, so that the word weight value of the system text can be reduced when the word weight value of the system text is adjusted according to the target word weight adjustment ratio determined by the first correspondence.
The word weight information is a word weight value or a word weight value interval. That is, according to the current word weight value of the system word and the first correspondence between the word weight information and the word weight adjustment ratio, determining the target word weight adjustment ratio may include the following two implementations:
The first implementation mode: and determining a target word weight adjustment ratio according to the current word weight value of the system word and the first corresponding relation between the word weight value and the word weight adjustment ratio.
In a first implementation manner, a first corresponding relation between the word weight value and the word weight adjustment ratio is preset, wherein the first corresponding relation comprises different word weight values and the word weight adjustment ratio respectively corresponding to the different word weight values. The first correspondence may be as shown in table 1 above, for example.
The second implementation mode: and determining a word weight value interval in which the current word weight value of the system word is positioned, and determining a target word weight adjustment ratio according to the word weight value interval in which the current word weight value is positioned and a first corresponding relation between the word weight value interval and the word weight adjustment ratio.
In a second implementation manner, a first corresponding relation between the word weight value interval and the word weight adjustment proportion is preset, wherein the first corresponding relation comprises different word weight value intervals and the word weight adjustment proportion respectively corresponding to the different word weight value intervals. Wherein the intersection of the different word weight value intervals is empty. The first correspondence may be as shown in table 2 above, for example.
Step 1107: and adjusting the proportion according to the target word weight, and reducing the word weight value of the system words.
The implementation manner of step 1107 is the same as that of step 703, and the specific implementation process may refer to the description related to step 703, which is not repeated in the embodiment of the present application.
Step 1108: if the ambient light intensity is in the preset light intensity interval and in the second light intensity interval, judging whether the current character weight value of the system character is smaller than or equal to a second character weight threshold value.
Step 1109: if the current word weight value of the system word is larger than the second word weight threshold value, the word weight value of the system word is not adjusted.
Wherein the second word weight threshold may be preset, typically a larger word weight value. For example, the second word weight threshold is 900. Therefore, when the current word weight value of the system word is larger, the word weight value of the system word is not adjusted, so that the operation amount of the terminal is reduced, and the energy consumption of the terminal is saved.
Further, whether the current word weight value of the system word is in a preset word weight value interval can be judged. If not, the word weight value of the system word is not adjusted. If yes, executing the step and the subsequent steps of determining the target word weight adjustment ratio according to the current word weight value of the system word and the second corresponding relation between the word weight information and the word weight adjustment ratio.
For example, the preset word weight value interval may be [ first word weight threshold, second word weight threshold ], and the second word weight threshold is greater than the first word weight threshold. Illustratively, the first word weight threshold is 300 and the second word weight threshold is 900. Alternatively, the first word weight threshold is 100 and the second word weight threshold is 600.
Step 1110: if the current word weight value of the system word is smaller than or equal to the second word weight threshold value, determining a target word weight adjustment ratio according to the current word weight value of the system word and a second corresponding relation between the word weight information and the word weight adjustment ratio.
Wherein the second correspondence is different from the specific numerical value in the first correspondence. For example, the word weight adjustment ratio in the first correspondence is smaller than 1, and the word weight adjustment ratio in the second correspondence is larger than 1. Under the condition that the word weight adjustment proportion in the second corresponding relation is larger than 1, the word weight value of the system word can be increased when the word weight value of the system word is adjusted according to the target word weight adjustment proportion determined by the second corresponding relation.
The word weight information is a word weight value or a word weight value interval. That is, according to the current word weight value of the system word and the second correspondence between the word weight information and the word weight adjustment ratio, determining the target word weight adjustment ratio may include the following two implementations:
The first implementation mode: and determining a target word weight adjustment ratio according to the current word weight value of the system word and a second corresponding relation between the word weight value and the word weight adjustment ratio.
In a first implementation manner, a second corresponding relation between the word weight value and the word weight adjustment proportion is preset, and the second corresponding relation comprises different word weight values and the word weight adjustment proportion respectively corresponding to the different word weight values.
As one example, the word weight adjustment ratios for different word weight values are different. Therefore, the accuracy of word weight adjustment can be ensured, so that the adjusted word weight is matched with the current word weight value.
As one example, the smaller the word weight value, the greater its corresponding word weight adjustment ratio. Therefore, the word weight value of the system words can be obviously increased when the word weight value of the system words is smaller, and the definition of the system words in a bright light environment is improved.
As an example, the second correspondence may be as shown in table 3 below:
TABLE 3 Table 3
Between word weight values Word weight adjustment ratio
600 or more Unchanged
600 105%
500 106%
400 107%
300 108%
200 109%
100 110%
100 or less Unchanged
It should be understood that table 3 is only an example of the second correspondence, and the values in the second correspondence may be set to other values as required, which is not limited in the embodiment of the present application.
The second implementation mode: and determining a word weight value interval in which the current word weight value of the system word is positioned, and determining a target word weight adjustment ratio according to the word weight value interval in which the current word weight value is positioned and a first corresponding relation between the word weight value interval and the word weight adjustment ratio.
In a second implementation manner, a second corresponding relation between the word weight value interval and the word weight adjustment proportion is preset, wherein the second corresponding relation comprises different word weight value intervals and the word weight adjustment proportion respectively corresponding to the different word weight value intervals.
As one example, the word weight adjustment ratios corresponding to different word weight value intervals are different. Therefore, the accuracy of word weight adjustment can be ensured, so that the adjusted word weight is matched with the current word weight value.
As one example, the smaller the word weight value in a word weight value interval, the greater its corresponding word weight adjustment ratio. Therefore, the word weight value of the system words can be obviously increased when the word weight value of the system words is smaller, and the definition of the system words in a bright light environment is improved.
As one example, the second correspondence may be as shown in table 4 below:
TABLE 4 Table 4
Word weight value interval Word weight adjustment ratio
600 or more Unchanged
501-600 105%
401-500 106%
301-400 107%
201-300 108%
101-200 109%
1-100 110%
It should be understood that table 4 is only an example of the second correspondence, and the values in the second correspondence may be set to other values as required, which is not limited in the embodiment of the present application.
Step 1111: and according to the target word weight adjustment proportion, increasing the word weight value of the system words.
As an example, the target word weight value may be determined based on the current word weight value and the target word weight adjustment ratio of the system word, where the target word weight value is greater than the current word weight value. Then, the word weight value of the system word is adjusted to the target word weight value.
In one possible implementation, the product of the current word weight value of the system word and the target word weight adjustment ratio may be determined as the target word weight value. The target word weight adjustment ratio is greater than 1, so that the target word weight value determined according to the current word weight value and the target word weight adjustment ratio can be ensured to be greater than the current word weight value.
Illustratively, the first word weight value is 400, the target word weight adjustment ratio is 107, and the second word weight value is 400×107+=428.
In another possible implementation, a product of the current word weight value and the target word weight adjustment ratio may also be determined, and a sum of the current word weight value and the product may be determined as the target word weight value.
Illustratively, the first word weight value is 400, the target word weight adjustment ratio is 7%, and the second word weight value is 400+400×7+=428.
As an example, if the ambient light intensity is switched from the other light intensity interval to the first light intensity interval, the font weight of the system text may be adjusted in the manner described above in steps 1104-1107. In addition, after the character weight is adjusted, if the ambient light intensity is switched back to other light intensity intervals, the character weight of the system character can be recovered, namely, the character weight value before adjustment is recovered.
As another example, if the ambient light intensity is switched from another light intensity interval to a second light intensity interval, the font weight of the system text may be adjusted in the manner described above in steps 1108-1101. In addition, after the character weight is adjusted, if the ambient light intensity is switched back to other light intensity intervals, the character weight of the system character can be recovered, namely, the character weight value before adjustment is recovered.
According to the embodiment of the application, the word weight value of the system word can be correspondingly reduced according to the current word weight value of the system word when the ambient light is dark, and the word weight value of the system word can be correspondingly increased according to the current word weight value of the system word when the ambient light is bright. Therefore, the definition of the system characters under different ambient light brightness can be ensured, and the user experience is improved. In addition, the word weight adjusting proportion is determined through the current word weight value of the system word, so that the matching of the word weight adjusting proportion of the system word and the current word weight value of the system word can be ensured, the word weight adjusting precision of the system word is improved, and the definition of the system word is further ensured.
Fig. 12 is a flowchart of another word weight adjustment method according to an embodiment of the present application, where the method may be applied to a terminal, as shown in fig. 12, and the method may include the following steps:
Step 1201: the ambient light intensity is acquired.
Step 1202: and judging whether the change degree of the ambient light intensity is larger than or equal to a change threshold value.
That is, the terminal may determine whether the ambient light intensity changes and whether the degree of change of the change is greater than or equal to the change threshold according to the obtained ambient light intensity.
Wherein, the change threshold value can be preset. In addition, different ambient light intensities may correspond to different variation thresholds.
As an example, it may be determined whether the degree of change in the ambient light intensity is greater than or equal to a change threshold corresponding to a change start point of the ambient light intensity, the change threshold corresponding to a different change start point being different.
For example, if it is determined that the ambient light intensity changes according to the obtained ambient light intensity, a target change threshold is determined according to a change starting point of the ambient light intensity and a correspondence between the light intensity and the change threshold, and then it is determined whether the change degree of the ambient light intensity is greater than or equal to the target change threshold.
The correspondence between the light intensity and the change threshold may be preset. The corresponding relation between the light intensity and the change threshold value comprises the change threshold values corresponding to different light intensities respectively. Illustratively, the change thresholds corresponding to different light intensities are different. For example, the greater the light intensity, the greater the corresponding change threshold.
Further, according to the variation trend of the ambient light intensity, the variation threshold corresponding to the different ambient light intensities is different under the different variation trend.
For example, if it is determined that the ambient light intensity changes according to the acquired ambient light intensity, a trend of the ambient light intensity is determined. If the ambient light intensity becomes smaller, determining a target change threshold according to the change starting point of the ambient light intensity and the fifth corresponding relation between the light intensity and the change threshold, and judging whether the change degree of the ambient light intensity is larger than or equal to the target change threshold. If the ambient light intensity becomes larger, determining a target change threshold according to the change starting point of the ambient light intensity and a sixth corresponding relation between the light intensity and the change threshold, and then judging whether the change degree of the ambient light intensity is larger than or equal to the target change threshold.
The specific values of the fifth corresponding relation and the sixth corresponding relation are different. The fifth correspondence is a correspondence set for the case where the ambient light becomes dark. The sixth correspondence is a correspondence set for the case where the ambient light becomes bright.
As one example, the fifth correspondence may be as shown in table 5 below:
TABLE 5
/>
It should be understood that table 5 is only an example of the fifth corresponding relationship, and the values in the fifth corresponding relationship may be set to other values as required, which is not limited in the embodiment of the present application.
As one example, the sixth correspondence may be as shown in table 6 below:
TABLE 6
It should be understood that table 6 is only an example of the sixth corresponding relationship, and the values in the sixth corresponding relationship may be set to other values as required, which is not limited in the embodiment of the present application.
Step 1203: if the change degree of the ambient light intensity is smaller than the change threshold value, the character weight value of the system characters is not adjusted.
Step 1204: and if the change degree of the ambient light intensity is greater than or equal to the change threshold value, determining the change trend of the ambient light intensity.
The trend of the change in the intensity of the ambient light includes increasing and decreasing. By increasing it is meant that the ambient light intensity increases from small, i.e. the ambient light is changed from dark to bright. A decrease refers to a decrease in the intensity of the ambient light from large, i.e. the ambient light goes from bright to dark.
Step 1205: if the ambient light intensity becomes smaller, judging whether the current word weight value of the system word is larger than or equal to a third word weight threshold value.
Step 1206: if the current word weight value of the system word is smaller than the third word weight threshold value, the word weight of the system word is not adjusted.
Wherein the third word weight threshold may be preset, typically a smaller word weight value. For example, the third word weight threshold is 300. Therefore, when the current word weight value of the system word is smaller, the word weight value of the system word is not adjusted, so that the definition of the system word is further ensured.
Further, whether the current word weight value of the system word is in a preset word weight value interval can be judged. If not, the word weight value of the system word is not adjusted. If yes, executing the step and the subsequent steps of determining the target word weight adjustment ratio according to the current word weight value of the system word and the third corresponding relation between the word weight information and the word weight adjustment ratio.
For example, the preset word weight value interval may be [ the third word weight threshold, the fourth word weight threshold ], and the fourth word weight threshold is greater than the third word weight threshold. Illustratively, the third word weight threshold is 300 and the fourth word weight threshold is 900.
Step 1207: if the current word weight value of the system word is greater than or equal to the third word weight threshold value, determining a target word weight adjustment ratio according to the current word weight value of the system word and a third corresponding relation between the word weight information and the word weight adjustment ratio.
As an example, the word weight adjustment ratio in the third corresponding relationship is smaller than 1, so that the word weight value of the system text can be reduced when the word weight value of the system text is adjusted according to the target word weight adjustment ratio determined by the third corresponding relationship.
The word weight information is a word weight value or a word weight value interval. That is, according to the current word weight value of the system word and the third correspondence between the word weight information and the word weight adjustment ratio, determining the target word weight adjustment ratio may include the following two implementations:
the first implementation mode: and determining a target word weight adjustment ratio according to the current word weight value of the system word and a third corresponding relation between the word weight value and the word weight adjustment ratio.
In the first implementation manner, a third corresponding relation between the word weight value and the word weight adjustment proportion is preset, and the third corresponding relation comprises different word weight values and the word weight adjustment proportion respectively corresponding to the different word weight values. For example, the third correspondence may be as shown in table 1 above.
The second implementation mode: and determining a word weight value interval in which the current word weight value of the system word is positioned, and determining a target word weight adjustment ratio according to the word weight value interval in which the current word weight value is positioned and a third corresponding relation between the word weight value interval and the word weight adjustment ratio.
In a second implementation manner, a third corresponding relation between the word weight value interval and the word weight adjustment proportion is preset, wherein the third corresponding relation comprises different word weight value intervals and the word weight adjustment proportion respectively corresponding to the different word weight value intervals. Wherein the intersection of the different word weight value intervals is empty. For example, the third correspondence may be as shown in table 2 above.
Step 1208: and adjusting the proportion according to the target word weight, and reducing the word weight value of the system words.
The implementation manner of step 1208 is the same as the implementation manner of reducing the word weight value of the system text according to the first word weight adjustment ratio in step 703, and the specific implementation process may refer to the description related to step 703, which is not repeated in the embodiment of the present application.
Step 1209: if the ambient light intensity becomes smaller, judging whether the current word weight value of the system word is smaller than or equal to a fourth word weight threshold value.
Step 1210: if the current word weight value of the system word is larger than the fourth word weight threshold value, the word weight of the system word is not adjusted.
The fourth word weight threshold may be preset, and is typically a larger word weight value. For example, the fourth word weight threshold is 900. Therefore, when the current word weight value of the system word is larger, the word weight value of the system word is not adjusted, so that the operation amount of the terminal is reduced, and the energy consumption of the terminal is saved.
Further, whether the current word weight value of the system word is in a preset word weight value interval can be judged. If not, the word weight value of the system word is not adjusted. If yes, executing the step and the subsequent steps of determining the target word weight adjustment ratio according to the current word weight value of the system word and the fourth corresponding relation between the word weight information and the word weight adjustment ratio.
For example, the preset word weight value interval may be [ the third word weight threshold, the fourth word weight threshold ], and the fourth word weight threshold is greater than the third word weight threshold. Illustratively, the third word weight threshold is 300 and the fourth word weight threshold is 900. Alternatively, the third word weight threshold is 100 and the fourth word weight threshold is 600.
Step 1211: if the current word weight value of the system word is smaller than or equal to the fourth word weight threshold value, determining a target word weight adjustment ratio according to the current word weight value of the system word and a fourth corresponding relation between the word weight information and the word weight adjustment ratio.
Wherein the specific numerical values in the fourth correspondence and the third correspondence are different. For example, the word weight adjustment ratio in the third correspondence is smaller than 1, and the word weight adjustment ratio in the fourth correspondence is larger than 1. When the word weight adjustment ratio in the fourth corresponding relation is larger than 1, it can be ensured that the word weight value of the system word can be increased when the word weight value of the system word is adjusted according to the target word weight adjustment ratio determined by the fourth corresponding relation.
The word weight information is a word weight value or a word weight value interval. That is, according to the current word weight value of the system word and the fourth correspondence between the word weight information and the word weight adjustment ratio, determining the target word weight adjustment ratio may include the following two implementations:
The first implementation mode: and determining a target word weight adjustment ratio according to the current word weight value of the system word and a fourth corresponding relation between the word weight value and the word weight adjustment ratio.
In the first implementation manner, a fourth corresponding relation between the word weight value and the word weight adjustment proportion is preset, wherein the fourth corresponding relation comprises different word weight values and the word weight adjustment proportion respectively corresponding to the different word weight values. As one example, the fourth correspondence may be as shown in table 3 above.
The second implementation mode: and determining a target word weight adjustment ratio according to the current word weight value of the system word and a fourth corresponding relation between the word weight value interval and the word weight adjustment ratio.
In a second implementation manner, a fourth corresponding relation between the word weight value interval and the word weight adjustment proportion is preset, wherein the fourth corresponding relation comprises different word weight value intervals and the word weight adjustment proportion respectively corresponding to the different word weight value intervals. As one example, the fourth correspondence may be as shown in table 4 above.
Step 1212: and according to the target word weight adjustment proportion, increasing the word weight value of the system words.
The implementation manner of step 1212 is the same as that of step 1111, and the specific implementation process may refer to the related description of step 1111, which is not repeated in the embodiment of the present application.
Step 1213: and continuously acquiring the ambient light intensity, and if the ambient light intensity is determined to be in a stable state according to the acquired ambient light intensity, recovering the character weight value of the system characters.
After the target character weight adjustment proportion is used for adjusting the character weight value of the system characters, the environment light intensity can be continuously acquired, and whether the environment light intensity is in a stable state or not is judged according to the acquired environment light intensity. If yes, restoring the word weight value of the system text, namely restoring the word weight value to the word weight value before adjustment. If not, repeating the steps, and continuously adjusting the word weight value of the system words.
For example, it may be determined whether the degree of change in the ambient light intensity is greater than or equal to a change threshold value according to the acquired ambient light intensity. If not, determining that the ambient light intensity is in a stable state. If so, go to step 1204 above.
According to the embodiment of the application, when the ambient light is changed from bright to dark and the change degree is greater than or equal to the change threshold value, the word weight value of the system word is correspondingly reduced according to the current word weight value of the system word; when the ambient light is changed from dark to bright and the change degree is larger than or equal to the change threshold value, the word weight value of the system word is correspondingly increased according to the current word weight value of the system word. Therefore, the character weight of the system characters can be adaptively adjusted along with the change of the ambient light intensity, the definition of the system characters under different ambient light brightness is ensured, and the user experience is improved. In addition, the word weight adjusting proportion is determined through the current word weight value of the system word, so that the matching of the word weight adjusting proportion of the system word and the current word weight value of the system word can be ensured, the word weight adjusting precision of the system word is improved, and the definition of the system word is further ensured.
Fig. 13 is a schematic structural diagram of a word weight adjusting device according to an embodiment of the present application, where the device may be implemented by software, hardware, or a combination of both, and may be part or all of a computer device, and the computer device may be the terminal shown in fig. 1. Referring to fig. 13, the apparatus includes: a receiving module 1301, a first determining module 1302 and an adjusting module 1303.
A receiving module 1301 configured to perform step 701 in the embodiment of fig. 7 described above;
a first determining module 1302, configured to perform step 702 in the embodiment of fig. 7;
an adjusting module 1303, configured to execute step 703 in the embodiment of fig. 7.
Optionally, the receiving module 1301 is further configured to receive a second mode switching operation, where the second mode switching operation is used to switch the display mode of the system from a dark mode to a light mode, and the light mode is a display mode in which the system background is light and the system text is dark;
the adjusting module 1303 is further configured to adjust a word weight value of the system text from the second word weight value to the first word weight value in response to the second mode switching operation.
Optionally, the apparatus further comprises: the device comprises a second determining module, a third determining module, a fourth determining module and a fifth determining module;
A receiving module 1301, configured to perform step 704 in the embodiment of fig. 7;
a second determining module, configured to perform step 705 in the embodiment of fig. 7;
a third determining module, configured to perform step 706 in the embodiment of fig. 7;
a fourth determining module, configured to perform step 707 in the embodiment of fig. 7;
a fifth determining module, configured to perform step 708 in the embodiment of fig. 7;
the adjusting module 1303 is further configured to execute step 709 in the embodiment of fig. 7.
Optionally, the receiving module 1301 is further configured to perform step 710 in the embodiment of fig. 7 described above;
the adjusting module 1303 is further configured to execute step 711 in the embodiment of fig. 7.
In the embodiment of the application, after the mode switching operation of switching the display mode of the system to the dark mode is received, the character weight adjustment proportion is determined according to the current character weight value of the system characters, and the character weight value of the system characters is reduced according to the determined character weight adjustment proportion, so that the fonts of the system characters can be thinned after the dark mode is started, the glare generated by the system characters in the dark mode is relieved, the definition of the system characters is improved, and the reading experience of a user is further improved. In addition, the word weight adjustment proportion is determined through the current word weight value of the system word, so that the word weight adjustment proportion of the system word is matched with the current word weight value of the system word, the word weight adjustment precision of the system word is improved, and the definition of the system word is further ensured.
Fig. 14 is a schematic structural diagram of another word weight adjusting device according to an embodiment of the present application, where the device may be implemented as part or all of a computer device, which may be the terminal shown in fig. 1, by software, hardware, or a combination of both. Referring to fig. 14, the apparatus includes: an acquisition module 1401, a first determination module 1402 and an adjustment module 1403.
An acquisition module 1401, configured to perform step 901 in the embodiment of fig. 9 described above;
a first determining module 1402, configured to perform step 903 in the embodiment of fig. 9 described above;
an adjustment module 1403 is configured to perform step 904 in the embodiment of fig. 9.
Optionally, the adjusting module 1403 is further configured to perform step 905 in the embodiment of fig. 9 described above.
Optionally, the first determining module 1402 includes a first determining unit and a second determining unit;
a first determining unit, configured to perform step 1106 in the embodiment of fig. 11;
a second determining unit, configured to perform step 1110 in the embodiment of fig. 11.
Optionally, the apparatus further comprises a second determination module;
the second determining module is used for determining the character weight adjusting direction of the system characters according to the light intensity intervals where the ambient light intensity is located in the plurality of light intensity intervals, wherein the character weight adjusting direction at least comprises increasing and decreasing;
The adjusting module 1403 is configured to adjust the scale of the system text according to the font weight adjusting direction and the target font weight.
Optionally, the first determining module 1402 includes a third determining unit and a fourth determining unit:
a third determining unit, configured to perform step 1207 in the embodiment of fig. 12;
a fourth determining unit for executing step 1211 in the embodiment of fig. 12.
Optionally, the apparatus further comprises a third determination module;
the third determining module is used for determining the character weight adjusting direction of the system characters according to the change trend of the ambient light intensity, wherein the character weight adjusting direction at least comprises increasing and decreasing;
the adjusting module 1403 is configured to adjust the scale of the system text according to the font weight adjusting direction and the target font weight.
According to the embodiment of the application, the target character weight adjustment proportion is determined according to the environment light intensity and the current character weight value of the system character under the condition that the environment light intensity meets the preset condition, and the character weight value of the system character is adjusted according to the target character weight adjustment proportion, so that the adjusted character weight value is adapted to the environment light intensity, the definition of the system character under different environment light intensities is ensured, and the user experience is improved. In addition, the word weight adjusting proportion is determined through the current word weight value of the system word, so that the matching of the word weight adjusting proportion of the system word and the current word weight value of the system word can be ensured, the word weight adjusting precision of the system word is improved, and the definition of the system word is further ensured.
It should be noted that: the word weight adjusting device provided in the above embodiment is only exemplified by the division of the above functional modules when adjusting the word weight, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
The functional units and modules in the above embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiments of the present application.
The word weight adjusting device and the word weight adjusting method provided in the foregoing embodiments belong to the same concept, and specific working processes and technical effects brought by units and modules in the foregoing embodiments may be referred to a method embodiment section, which is not repeated herein.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, data subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium such as a floppy Disk, a hard Disk, a magnetic tape, an optical medium such as a digital versatile Disk (Digital Versatile Disc, DVD), or a semiconductor medium such as a Solid State Disk (SSD), etc.
The above embodiments are not intended to limit the present application, and any modifications, equivalent substitutions, improvements, etc. within the technical scope of the present application should be included in the scope of the present application.

Claims (29)

1. A method of word weight adjustment, the method comprising:
receiving a first mode switching operation, wherein the first mode switching operation is used for switching a display mode of a system into a dark color mode, and the dark color mode is a display mode with dark system background and light system text;
responding to the first mode switching operation, and determining a first character weight adjustment proportion according to the current character weight value of the system characters;
and according to the first word weight adjusting proportion, reducing the word weight value of the system words.
2. The method of claim 1, wherein determining the first word weight adjustment ratio based on the current word weight value of the system word comprises:
determining the first character weight adjustment ratio according to the current character weight value of the system character and the corresponding relation between the character weight value and the character weight adjustment ratio;
or alternatively, the process may be performed,
and determining a word weight value interval in which the current word weight value of the system word is positioned, and determining the first word weight adjustment ratio according to the word weight value interval in which the current word weight value is positioned and the corresponding relation between the word weight value interval and the word weight adjustment ratio.
3. The method of claim 1 or 2, wherein the current word weight value of the system word is a first word weight value; the step of reducing the word weight value of the system word according to the first word weight adjustment ratio comprises the following steps:
determining a second word weight value according to the first word weight value and the first word weight adjustment ratio, wherein the second word weight value is smaller than the first word weight value;
and adjusting the word weight value of the system text to be the second word weight value.
4. A method according to any one of claims 1-3, wherein said determining the first word weight adjustment ratio based on the current word weight value of the system word comprises:
and if the current word weight value of the system word is in the preset word weight value interval, determining a first word weight adjustment ratio according to the current word weight value of the system word.
5. The method of claim 4, wherein the method further comprises:
and if the current word weight value of the system word is not in the preset word weight value interval, not adjusting the word weight value of the system word.
6. The method of any one of claims 1-5, wherein the current word weight value of the system word is a first word weight value, and the word weight value of the system word after the reduction of the adjustment ratio of the first word weight is a second word weight value; and after the word weight value of the system word is reduced according to the first word weight adjustment proportion, the method further comprises the following steps:
Receiving a second mode switching operation, wherein the second mode switching operation is used for switching a display mode of a system from the dark mode to the light mode, and the light mode is a display mode with a light system background and dark system characters;
and in response to the second mode switching operation, adjusting the word weight value of the system text from the second word weight value to the first word weight value.
7. The method of any one of claims 1-5, wherein the current word weight value of the system word is a first word weight value, and the word weight value of the system word after the reduction of the adjustment ratio of the first word weight is a second word weight value;
and after the word weight value of the system word is reduced according to the first word weight adjustment proportion, the method further comprises the following steps:
receiving an adjustment operation of a character weight adjustment control in a character weight setting interface;
determining a second word weight adjustment ratio according to the adjustment operation;
determining a third word weight value according to the default word weight value of the system word and the second word weight adjustment proportion;
determining a third word weight adjustment ratio according to the third word weight value;
determining a fourth word weight value according to the third word weight value and the third word weight adjustment proportion;
And adjusting the word weight value of the system text from the second word weight value to the fourth word weight value.
8. The method of claim 7, wherein after adjusting the word weight value of the system word from the second word weight value to the fourth word weight value, further comprising:
receiving a second mode switching operation, wherein the second mode switching operation is used for switching a display mode of a system from the dark mode to the light mode, and the light mode is a display mode with a light system background and dark system characters;
and in response to the second mode switching operation, adjusting the word weight value of the system text from the fourth word weight value to the third word weight value.
9. The method according to any one of claims 1-8, wherein after determining the first word weight adjustment ratio according to the current word weight value of the system word, further comprising:
and reducing the line thickness value of the displayed scalable vector graphics according to the first character weight adjustment proportion, wherein the scalable vector graphics at least comprise icons.
10. A method of word weight adjustment, the method comprising:
acquiring the intensity of ambient light;
if the ambient light intensity meets the preset condition, determining a target character weight adjustment proportion according to the ambient light intensity and the current character weight value of the system characters;
And adjusting the word weight value of the system words according to the target word weight adjustment proportion.
11. The method of claim 10, wherein the preset conditions include:
the ambient light intensity is in a preset light intensity interval;
or alternatively, the process may be performed,
the ambient light intensity changes and the degree of change is greater than or equal to a change threshold.
12. The method of claim 10, wherein the predetermined condition is that the ambient light intensity is within a predetermined light intensity interval; the preset light intensity interval comprises a plurality of light intensity intervals, and the intersection of the light intensity intervals is empty;
the determining the target character weight adjustment proportion according to the ambient light intensity and the current character weight value of the system characters comprises the following steps:
and determining the target character weight adjustment proportion according to the light intensity interval in which the ambient light intensity is located in the plurality of light intensity intervals and the current character weight value of the system character.
13. The method of claim 12, wherein the plurality of light intensity intervals comprises a first light intensity interval and a second light intensity interval, the light intensity in the second light intensity interval being greater than the light intensity in the first light intensity interval;
The determining the target character weight adjustment proportion according to the light intensity interval in which the ambient light intensity is located in the plurality of light intensity intervals and the current character weight value of the system character comprises the following steps:
if the ambient light intensity is in the first light intensity interval, determining the target character weight adjustment ratio according to the current character weight value of the system character and a first corresponding relation between character weight information and character weight adjustment ratio, wherein the character weight information is a character weight value or a character weight value interval;
and if the ambient light intensity is in the second light intensity interval, determining the target character weight adjustment ratio according to the current character weight value of the system character and a second corresponding relation between character weight information and the character weight adjustment ratio.
14. The method of claim 13, wherein before adjusting the word weight value of the system word according to the target word weight adjustment ratio, further comprising:
determining a character weight adjusting direction of the system character according to the light intensity intervals of the environment light intensity in the plurality of light intensity intervals, wherein the character weight adjusting direction at least comprises increasing and decreasing;
the step of adjusting the word weight value of the system words according to the target word weight adjustment proportion comprises the following steps:
And adjusting the word weight value of the system words according to the word weight adjusting direction and the target word weight adjusting proportion.
15. The method of claim 14, wherein the determining the font weight direction of the system text based on the light intensity intervals in which the ambient light intensity is located among the plurality of light intensity intervals comprises:
if the ambient light intensity is in the first light intensity interval, determining that the character weight adjusting direction is reduced;
and if the ambient light intensity is in the second light intensity interval, determining that the character weight adjusting direction is increased.
16. The method of claim 15, wherein the method further comprises:
and if the ambient light intensity is in a third light intensity interval, determining that the character weight adjusting direction is unchanged, wherein the light intensity in the third light intensity interval is larger than the light intensity in the first light intensity interval and smaller than the light intensity in the second light intensity interval.
17. The method of claim 13, wherein the word weight adjustment ratio in the first correspondence is less than 1 and the word weight adjustment ratio in the second correspondence is greater than 1.
18. The method according to any one of claims 13-17, wherein determining the target weight adjustment ratio according to the current weight value of the system text and the first correspondence between weight information and weight adjustment ratio if the ambient light intensity is in the first light intensity interval comprises:
If the ambient light intensity is in the first light intensity interval and the current word weight value of the system word is greater than or equal to a first word weight threshold value, determining the target word weight adjustment proportion according to the current word weight value of the system word and the first corresponding relation;
if the ambient light intensity is in the second light intensity interval, determining the target word weight adjustment ratio according to the current word weight value of the system word and a second correspondence between word weight information and a word weight adjustment ratio, including:
and if the ambient light intensity is in the second light intensity interval and the current word weight value of the system word is smaller than or equal to a second word weight threshold value, determining the target word weight adjustment proportion according to the current word weight value of the system word and the second corresponding relation.
19. The method of claim 10, wherein the predetermined condition is that the ambient light intensity varies by an amount greater than or equal to a variation threshold; the determining the target character weight adjustment proportion according to the ambient light intensity and the current character weight value of the system characters comprises the following steps:
and determining the target character weight adjustment proportion according to the change trend of the ambient light intensity and the current character weight value of the system characters.
20. The method of claim 19, wherein said determining the target weight adjustment ratio based on the trend of the ambient light intensity and the current weight value of the system text comprises:
if the ambient light intensity becomes smaller, determining the target character weight adjustment ratio according to the current character weight value of the system character and a third corresponding relation between character weight information and character weight adjustment ratio, wherein the character weight information is a character weight value or a character weight value interval;
and if the ambient light intensity becomes larger, determining the target character weight adjustment ratio according to the current character weight value of the system character and a fourth corresponding relation between character weight information and character weight adjustment ratio.
21. The method of claim 20, wherein before adjusting the word weight value of the system word according to the target word weight adjustment ratio, further comprising:
determining a character weight adjusting direction of the system characters according to the change trend of the ambient light intensity, wherein the character weight adjusting direction at least comprises increasing and decreasing;
the step of adjusting the word weight value of the system words according to the target word weight adjustment proportion comprises the following steps:
And adjusting the word weight value of the system words according to the word weight adjusting direction and the target word weight adjusting proportion.
22. The method of claim 21, wherein determining the readjustment direction of the system text based on the trend of the ambient light intensity comprises:
if the ambient light intensity becomes smaller, determining that the character weight adjusting direction is reduced;
and if the ambient light intensity becomes larger, determining that the character weight adjusting direction is larger.
23. The method of claim 20, wherein the word weight adjustment ratio in the third correspondence is less than 1 and the word weight adjustment ratio in the fourth correspondence is greater than 1.
24. The method of any one of claims 20-23, wherein determining the target weight adjustment ratio based on the current weight value of the system text and a third correspondence between weight information and weight adjustment ratio if the ambient light intensity becomes smaller comprises:
if the ambient light intensity becomes smaller and the current word weight value of the system word is larger than or equal to a third word weight threshold value, determining the target word weight adjustment proportion according to the current word weight value of the system word and the third corresponding relation;
If the ambient light intensity becomes larger, determining the target word weight adjustment ratio according to the current word weight value of the system word and a fourth corresponding relation between the word weight information and the word weight adjustment ratio, including:
and if the ambient light intensity becomes large and the current word weight value of the system word is smaller than or equal to a fourth word weight threshold value, determining the target word weight adjustment proportion according to the current word weight value of the system word and the fourth corresponding relation.
25. The method of any one of claims 19-24, wherein the predetermined condition is that the ambient light intensity changes and the degree of change is greater than or equal to a change threshold corresponding to a change start point of the ambient light intensity, and the change threshold corresponding to a different change start point is different.
26. The method of any one of claims 19-25, wherein the method further comprises:
and if the ambient light intensity is not changed or the ambient light intensity is changed but the change degree is smaller than the change threshold value, not adjusting the word weight value of the system words.
27. The method of any one of claims 10-26, wherein the method further comprises:
And adjusting the line thickness value of the displayed scalable vector graphics according to the target word weight adjustment proportion, wherein the scalable vector graphics at least comprise icons.
28. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, which when executed by the processor implements the method of any one of claims 1 to 9 or 10 to 27.
29. A computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the method of any of claims 1 to 9 or 10 to 27.
CN202211320408.8A 2022-10-26 2022-10-26 Word weight adjusting method, terminal and storage medium Pending CN116702701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211320408.8A CN116702701A (en) 2022-10-26 2022-10-26 Word weight adjusting method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211320408.8A CN116702701A (en) 2022-10-26 2022-10-26 Word weight adjusting method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN116702701A true CN116702701A (en) 2023-09-05

Family

ID=87829984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211320408.8A Pending CN116702701A (en) 2022-10-26 2022-10-26 Word weight adjusting method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN116702701A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607733A (en) * 2015-08-25 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Regulation method, regulation device and terminal
CN107656727A (en) * 2017-10-20 2018-02-02 维沃移动通信有限公司 A kind of font object library generating method and mobile terminal
CN110413955A (en) * 2019-07-30 2019-11-05 北京小米移动软件有限公司 Word resets section method, apparatus, terminal and storage medium
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
CN111832253A (en) * 2020-07-03 2020-10-27 Oppo广东移动通信有限公司 Font adjusting method and device, storage medium and electronic equipment
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment
CN113391735A (en) * 2020-03-13 2021-09-14 华为技术有限公司 Display form adjusting method and device, electronic equipment and storage medium
WO2021249504A1 (en) * 2020-06-12 2021-12-16 华为技术有限公司 Distributed display method and related device
CN114138215A (en) * 2020-09-04 2022-03-04 华为技术有限公司 Display method and related equipment
CN115145436A (en) * 2021-03-31 2022-10-04 华为技术有限公司 Icon processing method and electronic equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607733A (en) * 2015-08-25 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Regulation method, regulation device and terminal
CN107656727A (en) * 2017-10-20 2018-02-02 维沃移动通信有限公司 A kind of font object library generating method and mobile terminal
CN110413955A (en) * 2019-07-30 2019-11-05 北京小米移动软件有限公司 Word resets section method, apparatus, terminal and storage medium
CN110609722A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Dark mode display interface processing method, electronic equipment and storage medium
CN113395388A (en) * 2020-02-26 2021-09-14 华为技术有限公司 Screen brightness adjusting method and electronic equipment
CN113391735A (en) * 2020-03-13 2021-09-14 华为技术有限公司 Display form adjusting method and device, electronic equipment and storage medium
WO2021249504A1 (en) * 2020-06-12 2021-12-16 华为技术有限公司 Distributed display method and related device
CN111832253A (en) * 2020-07-03 2020-10-27 Oppo广东移动通信有限公司 Font adjusting method and device, storage medium and electronic equipment
CN114138215A (en) * 2020-09-04 2022-03-04 华为技术有限公司 Display method and related equipment
CN115145436A (en) * 2021-03-31 2022-10-04 华为技术有限公司 Icon processing method and electronic equipment

Similar Documents

Publication Publication Date Title
US20220413695A1 (en) Split-screen display method and electronic device
CN113805743B (en) Method for switching display window and electronic equipment
CN114327666B (en) Application starting method and device and electronic equipment
CN114816167B (en) Application icon display method, electronic device and readable storage medium
US20220253207A1 (en) Display method and electronic device
CN113805744A (en) Window display method and electronic equipment
EP4373062A1 (en) Display method, electronic device, and storage medium
CN117234398B (en) Screen brightness adjusting method and electronic equipment
CN115421603B (en) Handwriting processing method, terminal device and chip system
CN116664734B (en) Method for displaying ring chart, electronic device and readable storage medium
WO2023130990A1 (en) Image processing method and apparatus, device, storage medium, and program product
WO2021253922A1 (en) Font switching method and electronic device
CN116702701A (en) Word weight adjusting method, terminal and storage medium
CN116700554B (en) Information display method, electronic device and readable storage medium
CN116661645B (en) Method for displaying application card, electronic device and readable storage medium
CN116704927B (en) Display screen brightness adjustment method, electronic equipment and storage medium
CN116680133B (en) Black screen detection method and electronic equipment
CN113986406B (en) Method, device, electronic equipment and storage medium for generating doodle pattern
WO2024012354A1 (en) Display method and electronic device
CN116661670B (en) Method for managing gesture navigation window, electronic device and storage medium
CN116700813A (en) Method for loading widget, electronic device and readable storage medium
CN117707660A (en) Display method, readable storage medium, and electronic device
CN118093067A (en) Method for displaying card, electronic device and readable storage medium
CN117389437A (en) Multi-window display method and equipment
CN117806744A (en) Control display method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination