Text adjustment method and apparatus

CN115408986BActive Publication Date: 2026-09-18VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211186590.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-26
Publication Date
2026-09-18
Estimated Expiration
2042-09-26

AI Technical Summary

Technical Problem

[0004]本申请实施例的目的是提供一种文字调整方法和装置,能够解决现有技术中通过调整系统字体文字大小调整方式无法适应用户对字体显示的多样化需求,导致用户体验下降的问题

Benefits of technology

[0012] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115408986B_ABST
    Figure CN115408986B_ABST
Patent Text Reader

Abstract

The application discloses a character adjusting method and device, and belongs to the technical field of display. A first input of a first screenshot is received, the first screenshot is obtained by taking a screenshot of a first interface, and the first interface comprises characters. In response to the first input, the characters in the first screenshot are adjusted, and the characters in the first interface are adjusted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of display technology, specifically relating to a text adjustment method and apparatus. Background Technology

[0002] With the continuous development of electronic and screen technologies, the screen sizes of terminal devices are getting larger and larger, and the content that can be displayed on these devices is also increasing. However, in usage scenarios such as chatting and watching videos, some text on the screen is often too small, making it difficult for users to read, thus requiring adjustment of the text size.

[0003] Currently, adjusting the size of text displayed on the screen is generally done by setting the system font, which involves uniformly adjusting the system font size in the system font configuration interface. However, adjusting the text size through the system font causes the font size to change synchronously across the entire screen, failing to adapt to the diverse font display needs of users and resulting in a degraded user experience. Summary of the Invention

[0004] The purpose of this application is to provide a text adjustment method and apparatus that can solve the problem that the existing method of adjusting the size of the system font cannot meet the diverse needs of users for font display, resulting in a decline in user experience.

[0005] In a first aspect, embodiments of this application provide a text adjustment method, the method comprising:

[0006] Receive a first input for a first screenshot, wherein the first screenshot is obtained by taking a screenshot of a first interface, and the first interface includes text;

[0007] In response to the first input, the text in the first screenshot is adjusted, and the text in the first interface is also adjusted.

[0008] Secondly, embodiments of this application provide a text adjustment device, including a first input module and a text adjustment module, wherein:

[0009] The first input module is configured to receive a first input for a first screenshot, wherein the first screenshot is obtained by taking a screenshot of a first interface, and the first interface includes text;

[0010] The text adjustment module is configured to adjust the text in the first screenshot and the text in the first interface in response to the first input.

[0011] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0012] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0013] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0014] In this embodiment of the application, based on the first input to the first screenshot obtained from the first interface screenshot, the text in the first screenshot is adjusted, and the text in the first interface is also adjusted, thereby realizing the adjustment of the text in the first interface. The text displayed in the first interface can be adaptively adjusted according to user needs, meeting the diverse needs of users for font display and improving user experience. Attached Figure Description

[0015] Figure 1 This is a flowchart of a text adjustment method provided in an embodiment of this application;

[0016] Figure 2 This is a flowchart of another text adjustment method provided in the embodiments of this application;

[0017] Figure 3 This is a schematic diagram of a video playback interface provided in an embodiment of this application;

[0018] Figure 4 This is a schematic diagram illustrating the configuration of screen text information based on a selected area of ​​the screen, provided in an embodiment of this application.

[0019] Figure 5 This is a schematic diagram illustrating the display effect of text to be displayed based on a selected area of ​​the screen, provided in an embodiment of this application.

[0020] Figure 6 This is a schematic diagram of a chat interface provided in an embodiment of this application;

[0021] Figure 7 This is a schematic diagram illustrating the selection of screen text information based on screen element type, provided in an embodiment of this application.

[0022] Figure 8 This is a schematic diagram illustrating screen text information configuration based on screen element type, provided in an embodiment of this application.

[0023] Figure 9 This is a schematic diagram illustrating the display effect of text to be displayed based on screen element type, provided in an embodiment of this application.

[0024] Figure 10 This is a schematic diagram of the structure of a text adjustment device provided in an embodiment of this application;

[0025] Figure 11 This is a schematic diagram of an electronic device structure provided in an embodiment of this application;

[0026] Figure 12 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0027] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0028] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0029] In related technologies, when viewing content on terminal devices, some text is displayed too small, affecting the reading experience, especially on large-screen devices where excessively small fonts can make the text difficult to read. For example, foldable phones offer a larger screen size when unfolded, but when watching videos or chatting, the large screen makes text content harder to read, necessitating adjustments to increase the font size that users desire.

[0030] Currently, font adjustments are generally made through system settings, specifically by setting the system font size. However, this method causes the entire screen's content (including text and layout) to change synchronously, resulting in less content displayed and a poor user experience. Furthermore, in some application scenarios, the font does not support changes in sync with the system font. For example, subtitles in videos remain at a fixed size regardless of system font adjustments, failing to meet user needs and negatively impacting the user experience.

[0031] To address the aforementioned technical issues, this solution adjusts the text in the first screenshot obtained from the first interface screenshot, and also adjusts the text in the first interface, thereby enabling the adjustment of the text in the first interface. This allows for adaptive adjustment of the text displayed in the first interface according to user needs, meeting diverse user requirements for font display and improving user experience.

[0032] The text adjustment method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0033] Figure 1 A flowchart of a text adjustment method provided in an embodiment of this application is given, with reference to... Figure 1 The text adjustment methods include:

[0034] S101: Receive the first input for the first screenshot, wherein the first screenshot is obtained by taking a screenshot of the first interface, and the first interface includes text.

[0035] The first interface provided in this solution can be a video interface during video playback, a chat interface during chatting using a social application, etc., and it contains text (such as subtitles in a video interface, chat messages in a chat interface, etc.). When the first interface is displayed, initiating a screenshot operation will produce a first screenshot. The first input to the first screenshot can be initiated by editing the text within it. This first input can be a text configuration operation on the text in the first screenshot, used to set font parameters such as size, color, and font type, and generate corresponding text configuration information based on the set font parameters.

[0036] For example, after taking a screenshot of the first interface to obtain the first screenshot, the system can wait for the first input on the first screenshot, and upon receiving the first input, jump to step S102 to perform a response operation to the first input. The first input on the first screenshot can be adjusting the text in the first screenshot, such as adjusting the size, color, font, or other font parameters of the text in the first screenshot.

[0037] S102: In response to the first input, adjust the text in the first screenshot and adjust the text in the first interface.

[0038] For example, upon receiving a first input to the first screenshot, the text in the first screenshot is adjusted in response to the first input to adjust its display effect according to the first input, such as adjusting the text display effect according to text configuration information. The user can determine whether the expected text display effect has been achieved based on the adjusted text display effect in the first screenshot. If the expected text display effect has not been achieved, the user can continue to initiate a first input to the first screenshot to make the adjusted text display effect in the first screenshot reach the expected text display effect.

[0039] Furthermore, in response to the first input to the first screenshot, the text appearing in the first interface is adjusted according to the adjustment method of the text in the first screenshot by the first input, so that the display effect of the adjusted text in the first interface is consistent with the display effect of the adjusted text in the first screenshot. For example, the text display effect of the text appearing in the first interface is adjusted according to the text configuration information.

[0040] The text adjustment method provided in this solution adjusts the text in the first screenshot obtained from the first interface based on the first input, and also adjusts the text in the first interface. This allows for the adjustment of the text in the first interface, which can be adaptively adjusted according to user needs, meeting diverse user requirements for font display and improving user experience.

[0041] Optionally, the first screenshot may be obtained by taking a screenshot of the first interface of the first application. After adjusting the text in the first screenshot and the text in the first interface, it may also include adjusting the text in the first application.

[0042] In one embodiment, the text adjustment method provided by this solution further includes:

[0043] S103: Receive the fourth input for the third screenshot, wherein the third screenshot is obtained by taking a screenshot of the second interface, and the second interface and the first interface are different interfaces of the same application.

[0044] Optionally, while the second interface is displayed, a screenshot operation is initiated to obtain a third screenshot. A fourth input to the third screenshot can be initiated by editing the text within the third screenshot. In this solution, the second interface and the first interface are different interfaces of the same application. The fourth input to the third screenshot can be a text configuration operation on the text within the third screenshot. This text configuration operation is used to set font parameters such as size, color, and font type for the text, and generates corresponding text configuration information based on the set font parameters.

[0045] For example, after taking a screenshot of the second interface to obtain a third screenshot, a fourth input to the third screenshot can be awaited. Upon receiving the fourth input to the third screenshot, the process jumps to step S104 to perform a response operation to the fourth input. The fourth input to the third screenshot can be adjusting the text in the third screenshot, such as adjusting the size, color, font, or other font parameters of the text in the third screenshot.

[0046] S104: In response to the fourth input, adjust the text in the third screenshot and adjust the text in the second interface.

[0047] For example, upon receiving a fourth input to the third screenshot, the text in the third screenshot is adjusted in response to the fourth input to adjust its display effect according to the fourth input, such as adjusting the text display effect according to text configuration information. The user can determine whether the adjusted text display effect in the third screenshot achieves the expected text display effect. If the expected text display effect is not achieved, a fourth input can be initiated to the third screenshot to make the adjusted text display effect in the third screenshot achieve the expected text display effect.

[0048] Furthermore, in response to the fourth input to the third screenshot, the text appearing in the second interface is adjusted according to the adjustment method used for the text in the third screenshot by the fourth input, so that the display effect of the adjusted text in the second interface is consistent with the display effect of the adjusted text in the third screenshot. For example, the text display effect of the text appearing in the second interface is adjusted according to the text configuration information. At this time, the text display effect of the text appearing in the second interface changes from the text display effect corresponding to the first input to the text display effect corresponding to the fourth input.

[0049] This solution allows for initial input on the first screenshot or fourth input on the third screenshot at different time periods, enabling adjustments to the text on the first or second interface at varying times. This allows for different font effects at different times, meaning different text configuration operations can be initiated on the screenshots at different times, allowing for personalized font settings. For example, if different fonts are needed for different playback periods, text configuration operations can be initiated at different points in the video. Each text configuration operation applies to a different time interval, resulting in different font display effects within the time periods corresponding to two text configuration operations. This provides greater flexibility in setting font display effects.

[0050] In one possible embodiment, after receiving a first input to the first screenshot, the first screenshot corresponding to the first input and the text configuration information for the text can be saved to obtain a saved second screenshot and text configuration information. When it is necessary to adjust the text display effect, the text configuration information of a new screenshot (first screenshot) can be quickly configured based on the saved second screenshot and corresponding text configuration information. Based on this, the text adjustment method provided by this solution also includes:

[0051] S105: Receive a third input for the first and second screenshots.

[0052] S106: In response to the third input, adjust the text in the first screenshot according to the adjustment method of the text in the second screenshot, and adjust the text in the first interface.

[0053] The third input to the first and second screenshots can be an interactive operation on the first and second screenshots, such as dragging the second screenshot onto the first screenshot to copy the text configuration information corresponding to the second screenshot into the text configuration information of the second screenshot, thereby controlling the text display effect of the text corresponding to the second screenshot.

[0054] For example, after taking a screenshot of the first interface to obtain the first screenshot, a font editing interface for configuring font parameters of the text in the first screenshot and a screenshot selection interface for the saved second screenshot and the corresponding text configuration information are provided. In response to the selected screenshot copy operation of the saved second screenshot (e.g., dragging the selected second screenshot to the first screenshot), a third input is initiated on the first screenshot and the second screenshot.

[0055] Furthermore, the text configuration information corresponding to the selected second screenshot is determined, and the display effect of the text in the first screenshot is adjusted according to this text configuration information. The user can judge whether the adjusted text display effect in the first screenshot has achieved the expected text display effect. If the expected text display effect has not been achieved, the user can continue to initiate the first input on the first screenshot or reselect the second screenshot to initiate the third input, so that the adjusted text display effect in the first screenshot achieves the expected text display effect.

[0056] Furthermore, in response to a third input of the first and second screenshots, the text appearing in the first interface is adjusted according to the adjustment method used for the text in the second screenshot, so that the display effect of the adjusted text in the first interface is consistent with the display effect of the adjusted text in the second screenshot. This solution improves the efficiency of configuring text configuration information and optimizes the user experience by quickly configuring text configuration information by dragging and dropping screenshots.

[0057] Optionally, the system receives input of a first screenshot and a second screenshot, adjusts the text in the first screenshot based on the text in the second screenshot, and also adjusts the text in the first interface. This allows for convenient adjustment of the text in the first screenshot based on the second screenshot, ensuring that the display effect of the text in the first screenshot is the same as that of the second screenshot.

[0058] In one possible embodiment, if it is desired to restore the font display effect after setting the text adjustment method in the first interface, the text adjustment is unbound from the first interface by deleting the corresponding screenshot. Based on this, the text adjustment method provided in this solution also includes:

[0059] S107: Upon receiving a deletion operation for the first screenshot, delete the first screenshot and restore the display mode of the text in the first interface.

[0060] Optionally, a screenshot management interface is provided, which stores the first screenshots corresponding to different first inputs. Users can select the first screenshot corresponding to the font they want to restore based on their desired text display effect and initiate a deletion operation. Upon receiving a deletion operation for the first screenshot, the corresponding first screenshot is deleted, and the display mode of the text corresponding to that first screenshot in the first interface is restored. At this point, the text display effect in the first interface becomes consistent with the text display effect before the text adjustment. This solution quickly restores the text configuration information by deleting screenshots, improving the efficiency of text configuration information configuration and optimizing the user experience.

[0061] Based on the above embodiments, Figure 2 A flowchart of another text adjustment method provided in this application embodiment is given for reference.Figure 2 The text adjustment methods include:

[0062] S201: Receive the first input for the first screenshot, wherein the first screenshot is obtained by taking a screenshot of the first interface, and the first interface includes text.

[0063] S202: In response to the text adjustment range corresponding to the first input, adjust the text in the first screenshot that is within the text adjustment range, and adjust the text in the first interface that is within the text adjustment range.

[0064] The text adjustment method provided in this solution allows for adjustments to text on the first interface based on a predefined text adjustment range. This text adjustment range can be understood as the area within the first interface or the first screenshot to be adjusted. The text adjustment range can be a defined area on the screen or a defined element type (such as different types of visual controls, components, etc.). Optionally, the text adjustment range for the first input can be set when the first input to the first screenshot is issued, or the text adjustment range for the first input can be determined by setting the range of the first screenshot on the first interface when the first screenshot is taken.

[0065] The first input to the first screenshot can be text setting operations and text configuration operations performed on the text in the first screenshot. Text setting operations are used to define the text adjustment range for extracting text on the screen. Text setting operations can be used to specify the display area on the screen, or the elements displayed on the screen (such as text-related controls, components, etc.). Text configuration operations are used to set font parameters such as size, color, and font type for the text corresponding to the text adjustment range, and generate text configuration information corresponding to the text adjustment range based on the set font parameters.

[0066] For example, when it is necessary to customize the font of a portion of the screen, a text setting operation can be initiated on the text adjustment device, and the text adjustment range corresponding to the extracted text can be selected on the screen. The text adjustment device will respond to the text setting operation, determine the text adjustment range, and extract the screen text information currently displayed on the screen based on the text adjustment range. The text setting operation can be triggered by long-pressing the screen, setting a gesture, or using controls to trigger the text setting operation, etc., and this solution is not limited to these methods.

[0067] Optionally, when extracting screen text information based on the text adjustment range, if the text within the text adjustment range is successfully extracted, the extracted text is used as the screen text information; if the text within the text adjustment range is not extracted, the pre-set default text is used as the screen text information.

[0068] After determining the text adjustment range in response to a text setting operation and acquiring screen text information based on that range, a font editing interface is provided for configuring font parameters of the screen text information, and the screen text information is displayed on this interface. Users can perform text configuration operations on the font editing interface to set the font parameters of the screen text information according to their display needs. The text adjustment device will determine the text configuration information corresponding to the text adjustment range based on the font parameter settings of the screen text information obtained through the text configuration operation.

[0069] Optionally, when displaying screen text information, the font parameters corresponding to the initial screen text information can be consistent with the font parameters when it is initially displayed on the screen. That is, when displaying screen text information in the font editing interface, the display effect of the screen text information is consistent with the display effect when setting the text adjustment range (initiating the text setting operation). If the screen text information is the default text, it will be displayed according to the default font parameters preset for the default text.

[0070] For example, a first interface (e.g., the entire screen display area or the video playback area to be displayed, or the elements to be displayed on the screen) is obtained, the text adjustment range corresponding to the first input is determined, and the text is extracted from the first interface according to the text adjustment range, and the extracted text is determined as the text to be displayed. Optionally, extracting text from the first interface may involve obtaining text information within the text adjustment range, performing text recognition on the screen corresponding to the text adjustment range, or reading the text information to be displayed from the corresponding element.

[0071] This solution adjusts the text display effect of the text within the text adjustment range corresponding to the first input based on the text configuration information. The text configuration information is used to configure the font parameters of the extracted text to be displayed, such as the size, color, and font of the text. Furthermore, the text configuration information corresponds to the text adjustment range; for example, the text configuration information is set simultaneously with setting the text adjustment range. Optionally, when setting the text configuration information, the text extracted within the text adjustment range or the default text can be adjusted, and the adjusted text display effect can be displayed synchronously. The text configuration information is then determined based on the adjustment result.

[0072] For example, after extracting the text to be displayed from the first interface based on the text adjustment range, the extracted text to be displayed is updated according to the text configuration information corresponding to the text adjustment range (e.g., updating the font parameters such as the size, color, and font of the text to be displayed). When the updated text to be displayed is displayed, the display effect of the text to be displayed will correspond to the text configuration information.

[0073] For example, after updating the text to be displayed based on the text configuration information, the updated text to be displayed is displayed within the corresponding text adjustment range. At this time, the display effect of the text to be displayed corresponds to the text configuration information. For example, if the text size is increased and / or the text color is changed in the text configuration information, the updated text to be displayed will be displayed according to the updated text size and / or text color.

[0074] Understandably, when the updated text to be displayed is shown, the content on the screen outside the text adjustment range (including text content and content layout) will still be displayed in the original way and will not change with the text to be displayed, thus meeting the personalized customization needs of the text in the screen area.

[0075] In one possible embodiment, the text setting operation provided by this solution includes a first setting operation acting on a selected area of ​​the screen and / or a second setting operation acting on a screen element type. The first setting operation is used to define a selected area within the display range of the screen, for example, delineating an area on the screen corresponding to the display of video subtitles, and using this area as the selected area for the first setting operation. The second setting operation is used to define a screen element type within the display range of the screen, for example, selecting various types of controls (visual controls) displayed on the screen, and using the control type corresponding to the selected control as the screen element type for the second setting operation.

[0076] For example, when it is necessary to set an area on the screen to determine the text adjustment range, a first setting operation can be triggered on the screen, and an area can be selected on the screen. This selected area is the screen selection area, and the text adjustment range corresponding to the first setting operation is the screen selection area. For example, the first setting operation can be triggered by long-pressing the screen in a video playback interface, and a screen selection area can be set in the subtitle area of ​​the video playback interface (e.g., the rectangular area at the bottom of the video playback interface). This screen selection area is the text adjustment range.

[0077] Optionally, when the first setting operation is triggered on the screen, a selection box with adjustable size and position can be displayed on the screen in response to the triggering of the first setting operation (a selection box with default size and position can be generated by default, or a selection box with corresponding size and position can be generated according to the selection box generation operation). The user can identify and customize the text area to adjust the size and position of the selection box as needed. After the adjustment of the selection box is completed, the text adjustment range is determined based on the size and position of the selection box.

[0078] Furthermore, after determining the text adjustment range, the screen text information within the selected area of ​​the screen is obtained. For example, a screenshot of the selected area of ​​the screen is taken, and text recognition is performed on the screenshot. The text information obtained from the text recognition is then used as the screen text information within the selected area of ​​the screen.

[0079] In one possible embodiment, when the video playback interface receives a first setting operation applied to the selected area of ​​the screen, the determined text adjustment range can be bound to the video playback interface, video player, or video resource. When leaving the video playback interface, video player, or video resource, the extraction and updating of the text to be displayed based on the text adjustment range can be stopped. Instead, the extraction and updating of the text to be displayed are only performed when the video playback interface, video player, or video resource is being played, allowing for more flexible dynamic updates to the text display effect based on the user's customization needs. After determining the text adjustment range in the video playback interface, the video resource is acquired and a screenshot is taken. Text recognition is then performed on the screenshot to obtain the screen text information in the selected area of ​​the screen.

[0080] Correspondingly, when this solution extracts the text to be displayed from the first interface based on the text adjustment range corresponding to the first input, it specifically includes: extracting the text to be displayed from the screen selection area corresponding to the text adjustment range corresponding to the first input.

[0081] For example, the screen to be displayed is acquired in real time, and text recognition is performed on the selected area of ​​the screen corresponding to the text adjustment range of the first input to extract the text to be displayed from the first interface. The screen to be displayed can be the entire screen or a video frame corresponding to a video resource. This solution allows users to quickly and conveniently set the text adjustment range on the screen or video playback interface, and extract the text to be displayed from the screen to be displayed based on the selected area. When setting text configuration information, the display effect of the updated text to be displayed is consistent with the display effect of the text to be displayed after configuring the text configuration information. The setting of the text adjustment range and text configuration information is more intuitive, improving the efficiency of setting the text adjustment range and text configuration information.

[0082] In one possible embodiment, when the adjusted text needs to be displayed after adjusting the text within the text adjustment range in the first interface, the solution specifically includes: displaying the updated text to be displayed based on the selected screen area corresponding to the adjusted text.

[0083] For example, after extracting the text to be displayed from the screen to be displayed, the text to be displayed is updated based on the text configuration information corresponding to the current text adjustment range, and the updated text to be displayed is displayed in the selected area of ​​the screen. At this time, the display position of the text to be displayed after the font update is consistent with the display position of the text to be displayed on the screen or video playback interface, maintaining the user's text viewing position habits, and the text display effect is consistent with the user's text customization needs, satisfying the user's customization needs for the text in the area.

[0084] like Figure 3 The provided diagram illustrates a video playback interface, using a foldable phone as an example for text adjustment. When the phone is unfolded, it offers a larger screen size. However, this larger screen size can lead to subtitles appearing too small, negatively impacting the video viewing experience. To increase the font size of subtitles during video playback, a first setting operation can be triggered by long-pressing the video playback interface (video playback interface A in the diagram). A selection box (selection box B in the diagram) will then appear on the video playback interface. Users can adjust the size and position of the selection box according to the range and position corresponding to the subtitles. The range corresponding to the size and position of the selection box is the text adjustment range. A screenshot of the text adjustment range is taken, and the text in the screenshot is recognized to obtain the screen text information (the text corresponding to "subtitle text" in the diagram).

[0085] like Figure 4 The diagram illustrates a screen text information configuration method based on a selected screen area. After obtaining the screen text information corresponding to the text adjustment range, a font editing interface (font editing interface C in the diagram) is provided at the corresponding position to configure the font parameters of the screen text information, and the screen text information is displayed on the font editing interface. Users can perform text configuration operations on the font editing interface according to their text display needs, setting the font parameters of the screen text information to determine the text configuration information corresponding to the text adjustment range, and saving the set text adjustment range and the corresponding text configuration information.

[0086] like Figure 5 The provided illustration illustrates the display effect of text to be displayed based on a selected area of ​​the screen. After setting the text adjustment range and text configuration information, the text adjustment device acquires the first interface (video data stream) in real time, takes a screenshot of the first interface according to the text adjustment range, identifies the text to be displayed in the screenshot, updates the font parameters of the text to be displayed according to the corresponding text configuration information, and displays the updated text to be displayed at the position corresponding to the text adjustment range. It is evident that the display effect of the text to be displayed at this time is consistent with the final display effect of the screen text information when the text adjustment range and text configuration information were set, realizing the user's personalized configuration of the text within the text adjustment range.

[0087] Optionally, the text adjustment range and text configuration information can be bound to the video source played on the video playback interface. The subtitle text is updated only when that video source is playing, based on the text adjustment range and text configuration information. When playing other videos or exiting the current video source, the subtitle text is not updated based on the text adjustment range and text configuration information. Multiple text adjustment ranges and text configuration information can be saved simultaneously and bound to different video sources, allowing the subtitle text to be updated based on the bound text adjustment range and text configuration information during video playback.

[0088] The text adjustment method provided in this solution adjusts the text in a first screenshot (obtained from a first interface) based on a first input, and then adjusts the text on the first interface as well. This allows for adaptive adjustment of the text displayed on the first interface according to user needs, satisfying diverse font display requirements and improving user experience. Furthermore, by extracting the text to be displayed from the first interface according to a set text adjustment range, updating the extracted text according to the text configuration information corresponding to the text adjustment range, and then displaying the updated text, the method achieves text adjustment within the adjustment range. This allows for adaptive adjustment of the displayed text according to user needs, satisfying diverse font display requirements and improving user experience. Simultaneously, by setting a selected area on the screen corresponding to the text adjustment range on the screen or video playback interface, the display effect of the updated text is consistent with the display effect of the text after configuring the text configuration information. This makes setting the text adjustment range and text configuration information more intuitive and improves the efficiency of setting these parameters.

[0089] In one possible embodiment, the text adjustment method provided by this solution further includes: receiving a fifth input on a first element in a first screenshot, wherein the first element is obtained by extracting elements from a first interface; and adjusting the text in the first element in response to the fifth input. Correspondingly, when adjusting the text in the first interface, the text adjustment method provided by this solution includes: adjusting the text in a second element of the same type as the first element in the first interface in response to the fifth input.

[0090] The fifth input to the first element can be a text setting operation applied to the screen element type (the second setting operation applied to the screen element type). An element can be understood as a control, component, or other tool used to display content on the screen. Different types of elements can display different content or implement different interactive functions. For example, elements can be displayed through View controls. Correspondingly, the element type can be one or more combinations of text type (e.g., TextView for handling text content), button type (e.g., Button for being clicked), image type (e.g., ImageView for handling image content), input box type (e.g., EditText for receiving user information input), progress bar type (e.g., ProgressBar for handling progress bars), or the element type can be determined according to its corresponding content type. For example, element types can be divided into titles, contact names, chat messages, interactive buttons, reminder messages, etc. The content type of an element can also be determined based on the tags set for the element.

[0091] It is understandable that an interactive interface can contain one or more elements of different types, and elements of the same type can exist one or more at the same time. For example, in a chat interface, there is generally only one input box element (i.e., the chat input box), while there are multiple text elements (i.e., messages sent by the user or chat partner) sent by the user and / or chat partner.

[0092] For example, when it is necessary to set the screen element type for determining the text adjustment range on the screen, a second setting operation can be triggered on the screen, and the element type displayed on the screen can be selected. The selected element type is the screen element type corresponding to the second setting operation, and the text adjustment range corresponding to the second setting operation is the aforementioned screen element type (i.e., initiating the fifth input to the first element in the first screenshot). For example, in the chat interface of social software, the second setting operation is triggered by long-pressing the screen. The text adjustment device will respond to the triggering of the second setting operation by obtaining the first element currently displayed on the screen, determining the user's selection operation on the first element, and taking the element type corresponding to the selected first element as the screen element type corresponding to the second setting operation, and determining the screen element type as the text adjustment range corresponding to the second setting operation.

[0093] Furthermore, after determining the text adjustment range based on the screen element type, the screen text information corresponding to that screen element type is obtained, allowing the user to perform text configuration operations on the screen text information to obtain the text configuration information corresponding to the text adjustment range.

[0094] In one possible embodiment, when obtaining screen text information corresponding to a screen element type, if there is only one element corresponding to a screen element type on the screen, the text corresponding to that element is directly obtained as the screen text information. If there are multiple elements corresponding to screen element types on the screen, the text corresponding to one of the elements (e.g., the element that appears first and is in the foreground) is obtained as the screen text information. Based on this, before receiving the fifth input to the first element in the first screenshot, this solution further includes: receiving the sixth input to the first interface, extracting the third elements displayed on the first interface, and determining the element type of each third element; normalizing the third elements based on the element type to obtain the third elements corresponding to different element types, and determining the first element based on the seventh input to the third element.

[0095] The sixth input to the first interface is an extraction operation of the elements displayed on the screen. After initiating the sixth input to the first interface and extracting the elements displayed on the screen, the extracted elements are identified as third elements, and the element type of each third element is determined. The third elements can be normalized based on their element types to obtain third elements corresponding to different element types. The first element can be determined based on the seventh input to the third element, which can be a selection operation for the third element.

[0096] For example, upon detecting the triggering of the second setting operation, the text adjustment device acquires each third element currently displayed on the screen and determines the element type corresponding to these third elements. Further, after determining the element type of each third element displayed on the screen, it performs normalization processing on these third elements according to their element type. In the normalized third elements, only one third element of each third element type is retained (e.g., the first third element to appear; that is, the controls or groups displayed on the screen are atomically categorized, extracted and arranged according to element type, and identical third elements are normalized, displaying only the first third element to appear). The text corresponding to the retained third element is then determined as the screen text information of the corresponding element type. This solution, by normalizing the third elements, reduces the situation where too many third elements of the same type affect the display space of third elements of other element types, improving operational efficiency and optimizing user experience.

[0097] In one possible embodiment, when extracting the text to be displayed from the first interface according to the set text adjustment range, the solution specifically involves: extracting the text to be displayed from the screen to be displayed based on the screen element type corresponding to the set text adjustment range.

[0098] For example, after determining the text adjustment range based on the screen element type, each second element to be displayed on the screen is determined, and the element type corresponding to each second element is also determined. When the element type of a second element matches the type of the first element corresponding to the text adjustment range, the text in that second element is extracted. The text identified in that second element is the text to be displayed within the text adjustment range on the screen to be displayed. It is understood that for elements whose element type does not match the screen element type, the font parameters of their text remain unchanged, and they are still displayed according to the original display effect. This solution extracts the text to be displayed from the elements corresponding to the screen element type corresponding to the text adjustment range, thus providing more targeted personalized display of text content that users need to customize.

[0099] In one possible embodiment, when displaying the updated text to be displayed, this solution specifically involves: displaying the updated text to be displayed based on the screen element type corresponding to the text to be displayed.

[0100] For example, after updating the text to be displayed based on the text configuration information corresponding to the text adjustment range, a second element corresponding to the screen element type is added to the screen (the addition position of this second element on the screen is the same as the addition position on the screen when the text to be displayed was not updated), and the updated text is displayed on this second element. This solution updates the identified text to be displayed on the second element through the text configuration information and displays the updated text to be displayed on the second element, achieving more flexible text updates. Even if the display position of the second element changes, the text on the second element is still displayed according to the updated display effect, resulting in greater flexibility in text display.

[0101] like Figure 6 The provided diagram illustrates a chat interface display, using a foldable phone as an example. When the phone is unfolded, it offers a larger screen size. However, this larger screen size can lead to small text in chat messages, negatively impacting the chat experience. To increase the font size of chat messages, a second settings operation can be triggered by long-pressing the chat interface (chat interface D in the diagram).

[0102] like Figure 7The diagram illustrates a screen text information selection method based on screen element types. The text adjustment device, responding to a second setting operation, extracts the third elements displayed on the screen, determines the element type of each third element, and normalizes the third elements to obtain screen text information corresponding to different element types. This information is then displayed through an element list (e.g., element list E in the diagram). Assume the element types included in the diagram are contact names (corresponding to "Contact 1" in the diagram), chat messages (normalized "Good Morning" in the diagram), interactive buttons ("Send" in the diagram), and reminder messages (input content in the diagram). Users can select screen text information corresponding to different third element types. The element type corresponding to the selected screen text information is the text adjustment range, and the selected third element is the first element.

[0103] like Figure 8 The diagram illustrates a screen text information configuration method based on screen element type. After selecting a screen element type from the element list, a font editing interface (font editing interface F in the diagram) is provided to configure the font parameters of the screen text information corresponding to that element type. The selected screen element type's corresponding screen text information (assuming the selected screen element type is a chat message) is displayed on the font editing interface. Users can perform text configuration operations on the font editing interface according to their text display needs, setting the font parameters of the screen text information to determine the text configuration information corresponding to the text adjustment range, and saving the set text adjustment range and corresponding text configuration information.

[0104] like Figure 9 The provided illustration illustrates the display effect of text to be displayed based on screen element type. After setting the text adjustment range and text configuration information, the text adjustment device acquires the first interface in real time, i.e., the second element to be displayed on the chat interface, and determines the element type corresponding to each second element. When the element type of the second element matches the element type of the first element corresponding to the text adjustment range, the text in that second element is extracted as the text to be displayed. The font parameters of the text to be displayed are updated according to the corresponding text configuration information, and the corresponding second element and the updated text to be displayed are displayed on that element in the chat interface. It is evident that the display effect of the text to be displayed at this time is consistent with the final display effect of the screen text information when the text adjustment range and text configuration information are set, realizing the user's personalized configuration of the text within the text adjustment range. The size of the second element can adaptively change according to the text parameters of the text to be displayed (e.g., increasing the size of the second element).

[0105] In one possible embodiment, certain targets (e.g., people, events, locations, times, etc.) appearing within the first interface (e.g., the text adjustment range within the first interface) can be displayed differently. For example, by setting the corresponding text display effects for the first person and the first text in the first screenshot, and applying the text display effects to the entire video, different people in the video can have different fonts. Based on this, when the first interface is a video interface, this solution, when receiving the first input on the first screenshot, includes: receiving the second input on the first person and the first text in the first screenshot.

[0106] The second input provided in this solution can be a target setting operation for the first person and the first text in the first screenshot (i.e., setting the name of the person corresponding to the first person and the font display effect of the first text). For example, a user can initiate a target setting operation for the first person and the first text. For instance, the user can enter the name of the person corresponding to the first person in the target input box provided in the text configuration information editing interface, and perform a text configuration operation for the first text on the font editing interface according to the font display requirements for the first person, thereby initiating a target setting operation for the first person and the first text. After receiving the target setting operation for the first person and the first text, the text adjustment device provides a target font editing interface for editing the font parameter configuration of the first text, and determines the target configuration information corresponding to the first text (used to indicate the font display effect of the text corresponding to the first person) based on the font parameter configuration of the first text on the target font editing interface. Optionally, one or more second inputs can be initiated in the video playback interface for different first persons and first texts in the first screenshot, and different first persons can be configured with the same or different target configuration information.

[0107] Correspondingly, upon receiving the second input regarding the first person and the first text in the first screenshot, when this solution adjusts the text in the first screenshot and the text in the first interface in response to the first input, it includes: adjusting the text corresponding to the first person and the first text in the first screenshot in response to the second input, and adjusting the text corresponding to the first person and the first text in the video corresponding to the video interface.

[0108] For example, in response to the second input, the first text in the first screenshot is adjusted to adjust the display effect of the first text in the first screenshot according to the second input. Further, the text to be displayed is extracted from the video corresponding to the video interface, and it is determined whether the text to be displayed contains text corresponding to the first character (e.g., lines corresponding to the first character). If the text to be displayed contains text corresponding to the first character, then that text is identified as the text in the video corresponding to the video interface that corresponds to both the first character and the first text, and the text in the video corresponding to the video interface that corresponds to both the first character and the first text is updated based on the corresponding text configuration information.

[0109] Understandably, after updating the text to be displayed based on text configuration information and updating the target text to be displayed based on target configuration information, when displaying the updated text to be displayed, the display effect of the text in the text to be displayed that is not the target text corresponds to the text configuration information, and the display effect of the target text corresponds to the target configuration information. For example, when watching a video or chatting, if it is necessary to highlight the text corresponding to a certain person, the person's name can be used as the first person, and the text corresponding to that person can be used as the first text. By setting the target for the first person and the first text, a second input can be initiated for the first person and the first text. For example, if the target configuration information is set to bold, then when the corresponding text for that person (e.g., when the corresponding text to be displayed is identified as the subtitle corresponding to the first person) appears in the video subtitle or chat message, the corresponding text will be displayed in bold.

[0110] Additionally, the target effective time for the target text or target configuration information can be set, and the target text to be displayed will only be updated according to the target configuration information within the target effective time. Based on this, this solution adjusts the text corresponding to the first person and the first text in the video corresponding to the video interface, including: adjusting the text corresponding to the first person and the first text in the video corresponding to the video interface within the effective time of the second input.

[0111] For example, when initiating a second input for the first person and the first text in the first screenshot, an effective time corresponding to the second input is also set. The effective time can be one or more time periods. During video playback on the video interface, if the current time is within the effective time period corresponding to the second input, the text in the video corresponding to the first person and the first text on the video interface continues to be adjusted. If the current time has exceeded the effective time period corresponding to the second input, there is no need to adjust the text in the video corresponding to the first person and the first text on the video interface based on the expired second input.

[0112] This solution updates the text corresponding to a person by configuring the text display effects for the first person and the first text. While customizing the text display, it differentiates the text for people the user cares about, enriching the user experience. Furthermore, it allows setting the effective time for the second input, enabling more flexible text display.

[0113] The text adjustment method provided in this solution adjusts the text in a first screenshot (obtained from a first interface) based on a first input, and then adjusts the text on the first interface as well. This allows for adaptive adjustment of the text displayed on the first interface according to user needs, satisfying diverse font display requirements and improving user experience. Furthermore, by extracting the text to be displayed from the first interface according to a set text adjustment range, updating the extracted text according to the text configuration information corresponding to the text adjustment range, and then displaying the updated text, the method achieves text adjustment within the adjustment range. This allows for adaptive adjustment of the displayed text according to user needs, satisfying diverse font display requirements and improving user experience. Simultaneously, by setting a selected area on the screen corresponding to the text adjustment range on the screen or video playback interface, the display effect of the updated text is consistent with the display effect of the text after configuring the text configuration information. This makes setting the text adjustment range and text configuration information more intuitive and improves the efficiency of setting these parameters. In addition, by adjusting the screen element type corresponding to the text adjustment range, the text to be displayed can be extracted from the elements corresponding to the screen to be displayed and updated, so as to more specifically personalize the text content that users need to customize.

[0114] It should be noted that the text adjustment method provided in this application embodiment can be executed by a text adjustment device or a control module within that text adjustment device for performing the text display method. This application embodiment uses the text adjustment device performing the text display method as an example to illustrate the text adjustment device provided in this application embodiment.

[0115] Figure 10 This is a schematic diagram of the structure of a text adjustment device provided in an embodiment of this application, as shown below. Figure 10 As shown, the text adjustment method includes a first input module 201 and a text adjustment module 202.

[0116] Wherein: the first input module 201 is used to receive the first input for the first screenshot, wherein the first screenshot is obtained by taking a screenshot of the first interface, and the first interface includes text; the text adjustment module 202 is used to adjust the text in the first screenshot and the text in the first interface in response to the first input.

[0117] Optionally, the first input module 201 includes a second input unit, wherein:

[0118] The second configuration unit is configured to receive second input on the first person and the first text in the first screenshot when the first interface is a video interface.

[0119] The text adjustment module 202 includes a first text adjustment unit, wherein:

[0120] The first text adjustment unit is configured to respond to the second input by adjusting the text corresponding to the first person and the first text in the first screenshot, and by adjusting the text corresponding to the first person and the first text in the video corresponding to the video interface.

[0121] Optionally, the text adjustment module 202 includes a second text adjustment unit, wherein:

[0122] The second text adjustment unit is configured to adjust the text corresponding to the first person and the first text in the video corresponding to the video interface during the effective time of the second input.

[0123] Optionally, the text adjustment module 202 includes a second text adjustment unit, wherein:

[0124] The second text adjustment unit is configured to respond to the text adjustment range corresponding to the first input, adjust the text in the first screenshot that is within the text adjustment range, and adjust the text in the first interface that is within the text adjustment range.

[0125] Optionally, the text adjustment device further includes a text restoration module, wherein:

[0126] The text restoration module is configured to delete the first screenshot and restore the display of the text in the first interface when a deletion operation is received.

[0127] Optionally, the text adjustment device further includes a third input module, and the text adjustment module 202 includes a third text adjustment unit, wherein:

[0128] The third input module is configured to receive a third input to the first and second screenshots;

[0129] The third text adjustment unit is configured to respond to the third input, adjust the text in the first screenshot according to the adjustment method of the text in the second screenshot, and adjust the text in the first interface.

[0130] Optionally, the text adjustment device further includes a fourth input module, and the text adjustment module 202 includes a fourth text adjustment unit, wherein:

[0131] The fourth input module is configured to receive a fourth input for the third screenshot, wherein the third screenshot is obtained by taking a screenshot of the second interface, and the second interface and the first interface are different interfaces of the same application.

[0132] The fourth text adjustment unit is configured to adjust the text in the third screenshot and the text in the second interface in response to the fourth input.

[0133] Optionally, the text adjustment device further includes a fifth input module, and the text adjustment module 202 includes a fifth text adjustment unit and a fifth text adjustment subunit, wherein:

[0134] The fifth input module is configured to receive a fifth input to the first element in the first screenshot, wherein the first element is obtained by extracting elements from the first interface;

[0135] The fifth text adjustment unit is configured to adjust the text in the first element in response to the fifth input;

[0136] The fifth text adjustment unit is also configured to adjust the text in the second element of the same type as the first element in the first interface in response to the fifth input.

[0137] Optionally, the text adjustment device further includes a sixth input module, and the text adjustment module 202 includes a sixth text adjustment unit, wherein:

[0138] The sixth input module is configured to receive the sixth input to the first interface, extract the third element displayed on the first interface, and determine the element type of each third element.

[0139] The sixth text adjustment unit is configured to normalize the third element based on the element type to obtain the third element corresponding to different element types, and determine the first element based on the seventh input to the third element.

[0140] The text adjustment device provided in this application adjusts the text in the first screenshot and the text in the first interface based on the first input obtained from the first screenshot of the first interface. This allows for the adjustment of the text in the first interface, and can adaptively adjust the text displayed in the first interface according to user needs, thereby meeting the diverse needs of users for font display and improving user experience.

[0141] The text adjustment device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.

[0142] The text adjustment device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0143] The text adjustment device provided in this application embodiment can achieve... Figures 1 to 9 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0144] Optionally, such as Figure 11 As shown, this application embodiment also provides an electronic device 1100, including a processor 1101, a memory 1102, and a program or instructions stored in the memory 1102 and executable on the processor 1101. When the program or instructions are executed by the processor 1101, they implement the various processes of the above-described text adjustment method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0145] It should be noted that the electronic devices in the embodiments of this application include the aforementioned mobile electronic devices and non-mobile electronic devices.

[0146] Figure 12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0147] The electronic device 1200 includes, but is not limited to, components such as: radio frequency unit 1201, network module 1202, audio output unit 1203, input unit 1204, sensor 1205, display unit 1206, user input unit 1207, interface unit 1208, memory 1209, and processor 1210.

[0148] Those skilled in the art will understand that the electronic device 1200 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1210 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 12 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0149] The user input unit 1207 is used to receive a first input for the first screenshot, wherein the first screenshot is obtained by taking a screenshot of the first interface, and the first interface includes text;

[0150] The processor 1210 is configured to adjust the text in the first screenshot and the text in the first interface in response to the first input.

[0151] Based on the first input obtained from the first screenshot of the first interface, the text in the first screenshot is adjusted, and the text in the first interface is also adjusted, so as to realize the adjustment of the text in the first interface. The text displayed in the first interface can be adaptively adjusted according to the user's needs, so as to meet the diverse needs of users for font display and improve the user experience.

[0152] The processor 1210 is further configured to: upon receiving a text setting operation, determine the text adjustment range and screen text information; and determine the text configuration information corresponding to the text adjustment range based on the text configuration operation on the screen text information. The text setting operation includes a first setting operation applied to a selected area of ​​the screen and / or a second setting operation applied to a screen element type.

[0153] User input unit 1207 is also used to receive second input on the first person and the first text in the first screenshot;

[0154] The processor 1210 is also configured to, in response to the second input, adjust the text corresponding to the first person and the first text in the first screenshot, and adjust the text corresponding to the first person and the first text in the video corresponding to the video interface.

[0155] The processor 1210 is also used to adjust the text corresponding to the first person and the first text in the video corresponding to the video interface during the effective time of the second input.

[0156] The processor 1210 is also configured to adjust the text within the text adjustment range in the first screenshot in response to the text adjustment range corresponding to the first input, and to adjust the text within the text adjustment range in the first interface.

[0157] The processor 1210 is also used to delete the first screenshot and restore the display mode of the text in the first interface when a deletion operation is received.

[0158] The user input unit 1207 is also used to receive a third input on the first screenshot and the second screenshot;

[0159] The processor 1210 is also configured to, in response to a third input, adjust the text in the first screenshot and the text in the first interface according to the adjustment method of the text in the second screenshot.

[0160] The user input unit 1207 is also used to receive a fourth input for the third screenshot, wherein the third screenshot is obtained by taking a screenshot of the second interface, and the second interface and the first interface are different interfaces of the same application.

[0161] The processor 1210 is also used to adjust the text in the third screenshot and the text in the second interface in response to the fourth input.

[0162] The user input unit 1207 is also used to receive a fifth input on the first element in the first screenshot, wherein the first element is obtained by extracting elements from the first interface;

[0163] The processor 1210 is also configured to, in response to a fifth input, adjust the text in the first element; and, in response to a fifth input, adjust the text in a second element of the same type as the first element in the first interface.

[0164] The user input unit 1207 is also configured to receive a sixth input to the first interface before receiving a fifth input to the first element in the first screenshot;

[0165] The processor 1210 is further configured to: in response to the sixth input, extract the third element displayed on the first interface and determine the element type of each third element; perform normalization processing on the third element based on the element type to obtain the third element corresponding to different element types, and determine the first element based on the seventh input to the third element.

[0166] The text adjustment method provided in this solution adjusts the text in a first screenshot (obtained from a first interface) based on a first input, and then adjusts the text on the first interface as well. This allows for adaptive adjustment of the text displayed on the first interface according to user needs, satisfying diverse font display requirements and improving user experience. Furthermore, by extracting the text to be displayed from the first interface according to a set text adjustment range, updating the extracted text according to the text configuration information corresponding to the text adjustment range, and then displaying the updated text, the method achieves text adjustment within the adjustment range. This allows for adaptive adjustment of the displayed text according to user needs, satisfying diverse font display requirements and improving user experience. Simultaneously, by setting a selected area on the screen corresponding to the text adjustment range on the screen or video playback interface, the display effect of the updated text is consistent with the display effect of the text after configuring the text configuration information. This makes setting the text adjustment range and text configuration information more intuitive and improves the efficiency of setting these parameters.

[0167] It should be understood that, in this embodiment, the input unit 1204 may include a graphics processing unit (GPU) 12041 and a microphone 12042. The GPU 12041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1206 may include a display panel 12061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 1207 includes a touch panel 12071 and other input devices 12072. The touch panel 12071 is also called a touch screen. The touch panel 12071 may include a touch detection device and a touch controller. Other input devices 12072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here. The memory 1209 can be used to store software programs and various data, including but not limited to applications and operating systems. Processor 1210 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into processor 1210.

[0168] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described text adjustment method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0169] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0170] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described text adjustment method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0171] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0172] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0173] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0174] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for adjusting text, characterized in that, include: Receive a first input for a first screenshot, wherein the first screenshot is obtained by taking a screenshot of a first interface, and the first interface includes text; In response to the first input, the text in the first screenshot is adjusted, and the text in the first interface is also adjusted; The system receives a third input for a new screenshot and a second screenshot, where the second screenshot is obtained by saving the first screenshot corresponding to the first input. The third input is an interactive operation between the new screenshot and the second screenshot. In response to the third input, the text in the new screenshot is adjusted according to the adjustment method of the text in the second screenshot, and the text in the first interface is also adjusted.

2. The text adjustment method according to claim 1, characterized in that, When the first interface is a video interface, receiving the first input on the first screenshot includes: Receive a second input for the first person and the first text in the first screenshot; The adjustment of text in the first screenshot and text in the first interface in response to the first input includes: In response to the second input, the text corresponding to the first person and the first text in the first screenshot is adjusted, and the text corresponding to the first person and the first text in the video corresponding to the video interface is also adjusted.

3. The text adjustment method according to claim 2, characterized in that, The adjustment of the text in the video corresponding to the first person and the first text in the video interface includes: During the effective time of the second input, the text corresponding to the first person and the first text in the video corresponding to the video interface is adjusted.

4. The text adjustment method according to claim 1, characterized in that, The adjustment of text in the first screenshot and text in the first interface in response to the first input includes: In response to the text adjustment range corresponding to the first input, the text in the first screenshot within the text adjustment range is adjusted, and the text in the first interface within the text adjustment range is also adjusted.

5. The text adjustment method according to claim 1, characterized in that, The text adjustment method also includes: Upon receiving a deletion operation on the first screenshot, delete the first screenshot and restore the display mode of the text in the first interface.

6. The text adjustment method according to claim 1, characterized in that, The text adjustment method also includes: Receive a fourth input for the third screenshot, wherein the third screenshot is obtained by taking a screenshot of the second interface, and the second interface and the first interface are different interfaces of the same application; In response to the fourth input, the text in the third screenshot is adjusted, and the text in the second interface is also adjusted.

7. The text adjustment method according to claim 1, characterized in that, The text adjustment method also includes: Receive a fifth input on the first element in the first screenshot, wherein the first element is obtained by extracting elements from the first interface; In response to the fifth input, the text in the first element is adjusted; The adjustment of the text in the first interface includes: In response to the fifth input, the text in the second element of the same type as the first element in the first interface is adjusted.

8. The text adjustment method according to claim 7, characterized in that, Before receiving the fifth input on the first element in the first screenshot, the method further includes: Receive a sixth input to the first interface, extract the third element displayed on the first interface, and determine the element type of each of the third elements; The third element is normalized based on the element type to obtain the third element corresponding to different element types, and the first element is determined based on the seventh input to the third element.

9. A device for adjusting text, characterized in that, It includes a first input module and a text adjustment module, wherein: The first input module is configured to receive a first input to a first screenshot, wherein the first screenshot is obtained by taking a screenshot of a first interface, and the first interface includes text; The text adjustment module is configured to adjust the text in the first screenshot and the text in the first interface in response to the first input. It also includes: a third input module, configured to receive a third input for a new screenshot and a second screenshot, the second screenshot being obtained by saving a first screenshot corresponding to the first input, the third input being an interactive operation between the new screenshot and the second screenshot; The third text adjustment unit is configured to respond to the third input, adjust the text in the new screenshot according to the adjustment method of the text in the second screenshot, and adjust the text in the first interface.

Citation Information

Patent Citations

  • Page content display method and device, computer equipment and storage medium

    CN112578971A