# US 2026/0073118 A1 · Text adjustment method and products thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0073118 A1
- Document ID: US20260073118A1
- Status: Published application
- Kind: A1
- Application number: 19/172,812
- Filed: 2025-04-08
- Published: 2026-03-12
- Earliest claimed: 2024-09-11
- Assignees: Guangzhou Xiyin International Import and Export Co., Ltd.; Shenzhen Xiyin Information Technology Co., Ltd.; Nanjing Xiyin Ecommerce Co., Ltd.
- Applicants: Guangzhou Xiyin International Import and Export Co., Ltd.; Shenzhen Xiyin Information Technology Co., Ltd.; Nanjing Xiyin Ecommerce Co., Ltd.
- Inventors: HUILI QIAN
- Web page: https://patentgrep.com/patent/US20260073118A1

## CPC

- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 40/103: Formatting, i.e. changing of presentation of documents (automatic justification G06F40/189; automatic line break hyphenation G06F40/191)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A text adjustment method includes monitoring content change events for each text node, if a content change event is detected, obtaining actual font information of the updated text in a text node where the content change event occurred, and determining an actual text width of the updated text based on the actual font information, determining a font size variation based on the actual font information and user-input expected configuration information, determining a target scaling ratio for the updated text based on the actual font information, the actual text width, the font size variation, and the expected configuration information. Efficient and convenient adaptive scaling and fixing of text is enabled, computational performance consumption is reduced, text fixing accuracy is improved, and, thus, the efficiency of site expansion is enhanced.

## Claims

### Claim 1

A text adjustment method comprising:
monitoring content change events for each text node;
if a content change event is monitored, obtaining actual font information of the updated text in a text node where the content change event occurred, and determining an actual text width of the updated text based on the actual font information;
determining a font size variation based on the actual font information and user-input expected configuration information; and
determining a target scaling ratio for the updated text based on the actual font information, the actual text width, the font size variation, and the expected configuration information.

### Claim 2 (depends on 1)

The text adjustment method according to claim 1, characterized by that the actual font information includes an actual font size, and the expected configuration information includes an expected text width; wherein the determining the font size variation based on the actual font information and the user-input expected configuration information comprises:
determining the font size variation based on the actual font size and the expected text width.

### Claim 3 (depends on 2)

The text adjustment method according to claim 2, characterized by that the determining the target scaling ratio for the updated text based on the actual font information, the actual text width, the font size variation, and the expected configuration information comprises:
determining an estimated text width based on the actual font size and the font size variation; and
determining the target scaling ratio based on the actual text width, the expected text width, the font size variation, and the estimated text width.

### Claim 4 (depends on 3)

The text adjustment method according to claim 3, characterized by that the determining the target scaling ratio based on the actual text width, the expected text width, the font size variation, and the estimated text width comprises:
determining the target scaling ratio using a scaling ratio formula based on the actual text width, the expected text width, the font size variation, and the estimated text width;
the scaling ratio formula being:
S
=
(
W
s
-
W
e
)
×
D
W
s
-
W
t
where S is the target scaling ratio, Ws is the actual text width, We is the expected text width, D is the font size variation, and Wt is the estimated text width.

### Claim 5 (depends on 1)

The text adjustment method according to claim 1, characterized by that the monitoring content change events for each text node comprises:
creating an observer object for each text node; and
inputting the observer object corresponding to each text node into a preset monitoring interface to monitor the content change events for each text node through the preset monitoring interface.

### Claim 6 (depends on 2)

The text adjustment method according to claim 2, characterized by that the actual font information further includes an actual font type and an actual font weight; wherein the determining the actual text width of the updated text based on the actual font information comprises:
inputting the actual font size, the actual font type, and the actual font weight into a preset measurement interface to obtain the actual text width outputted from the preset measurement interface.

### Claim 7 (depends on 1)

The text adjustment method according to claim 1, characterized by that before obtaining the actual font information of the updated text in the text node where the content change event occurred, the method further comprises:
monitoring a font loading time for the updated text using a timed execution function.

### Claim 8 (depends on 7)

The text adjustment method according to claim 7, characterized by that the obtaining the actual font information of the updated text in the text node where the content change event occurred comprises:
if the font loading time is less than or equal to a preset duration, obtaining the actual font information of the updated text; and
if the font loading time exceeds the preset duration, obtaining a system-native font corresponding to the updated text as the actual font information of the updated text.

### Claim 9

A device for text adjustment, comprising:
a memory; and
at least one processor configured to:
monitor content change events for each text node;
if a content change event is monitored, obtain actual font information of the updated text in a text node where the content change event occurred, and determine an actual text width of the updated text based on the actual font information;
determine a font size variation based on the actual font information and user-input expected configuration information; and
determine a target scaling ratio for the updated text based on the actual font information, the actual text width, the font size variation, and the expected configuration information.

### Claim 10

A non-transitory machine-readable medium storing program code for text adjustment, wherein when the program code is executed by at least one processor, it guides the at least one processor to perform operations comprising:
monitoring content change events for each text node;
if a content change event is detected, obtaining actual font information of the updated text in a text node where the content change event occurred, and determining an actual text width of the updated text based on the actual font information;
determining a font size variation based on the actual font information and user-input expected configuration information; and
determining a target scaling ratio for the updated text based on the actual font information, the actual text width, the font size variation, and the expected configuration information.
