# US 2025/0094685 A1 · Character display method and apparatus, electronic device, and computer-readable storage medium

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

- Number: US 2025/0094685 A1
- Document ID: US20250094685A1
- Status: Published application
- Kind: A1
- Application number: 18/245,052
- Filed: 2021-08-10
- Published: 2025-03-20
- Earliest claimed: 2020-10-23
- Assignees: Beijing Bytedance Network Technology Co., Ltd.
- Inventors: Jingjing ZHUGE; Guyangyao NI; Yepeng CHEN; Yanhao SHEN; Hui YANG
- Web page: https://patentgrep.com/patent/US20250094685A1

## CPC

- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 40/106: Display of layout of documents; Previewing
- G06F 40/53: Processing of non-Latin text (kana-to-kanji conversion G06F40/129; vowelisation G06F40/232)
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Embodiments of the present disclosure disclose a character display method and apparatus, an electronic device, and a computer-readable storage medium. The method includes: obtaining a to-be-displayed character; determining a type of the to-be-displayed character; determining a display origin of the to-be-displayed character based on the type of the to-be-displayed character; displaying, at the display origin of the to-be-displayed character, the to-be-displayed character in a first manner in response to the to-be-displayed character being of a first type; and displaying, at the display origin of the to-be-displayed character, the to-be-displayed character in a second manner in response to the to-be-displayed character being of a second type.

## Claims

### Claim 1

A character display method, comprising:
obtaining a to-be-displayed character;
determining a type of the to-be-displayed character;
determining a display origin of the to-be-displayed character based on the type of the to-be-displayed character;
displaying, at the display origin of the to-be-displayed character, the to-be-displayed character in a first manner in response to the to-be-displayed character being of a first type; and
displaying, at the display origin of the to-be-displayed character, the to-be-displayed character in a second manner in response to the to-be-displayed character being of a second type.

### Claim 2 (depends on 1)

The character display method according to claim 1, wherein said obtaining the to-be-displayed character comprises:
obtaining a to-be-displayed text; and
splitting characters in the to-be-displayed text to obtain at least one to-be-displayed character.

### Claim 3 (depends on 2)

The character display method according to claim 2, wherein said splitting the characters in the to-be-displayed text to obtain the at least one to-be-displayed character comprises:
obtaining a first code of the to-be-displayed text; and
splitting the to-be-displayed text based on the first code to obtain the to-be-displayed character.

### Claim 4 (depends on 1)

The character display method according to claim 1, wherein said determining the type of the to-be-displayed character comprises:
obtaining a first code of the to-be-displayed character; and
determining the type of the to-be-displayed character to be the first type or the second type based on the first code of the to-be-displayed character.

### Claim 5 (depends on 1)

The character display method according to claim 1, further comprising, subsequent to said determining the type of the to-be-displayed character:
storing, in a first queue, the to-be-displayed character in response to the to-be-displayed character being of the first type; and
in response to the to-be-displayed character being of the second type, making up a word using consecutive to-be-displayed characters, and storing the word in a second queue.

### Claim 6 (depends on 1)

The character display method according to claim 1, wherein said determining the display origin of the to-be-displayed character based on the type of the to-be-displayed character comprises:
obtaining a position of an initial display origin, wherein the position of the initial display origin is a display position of a first to-be-displayed character on a screen; and
determining a position of the display origin of the to-be-displayed character based on the position of the initial display origin and a display parameter.

### Claim 7 (depends on 6)

The character display method according to claim 6, wherein said determining the position of the display origin of the to-be-displayed character based on the position of the initial display origin and the display parameter comprises:
determining the display origin of the to-be-displayed character based on a type of a previous character, a display origin of the previous character, the display parameter, and the type of the to-be-displayed character.

### Claim 8 (depends on 7)

The character display method according to claim 7, wherein:
the display parameter comprises an outline width of a character, a character spacing, and an outline height of the character; and
said determining the display origin of the to-be-displayed character based on the type of the previous character, the display origin of the previous character, the display parameter, and the type of the to-be-displayed character comprises:
calculating, in response to the previous character and the to-be-displayed character being of the first type, coordinates of the display origin of the to-be-displayed character based on coordinates of the display origin of the previous character, an outline height of the to-be-displayed character, and the character spacing;
calculating, in response to the previous character being of the second type and the to-be-displayed character being of the first type, the coordinates of the display origin of the to-be-displayed character based on the coordinates of the display origin of the previous character, an outline width of the previous character, the outline height of the to-be-displayed character, and the character spacing;
calculating, in response to the previous character being of the first type and the to-be-displayed character being of the second type, the coordinates of the display origin of the to-be-displayed character based on the coordinates of the display origin of the previous character and the character spacing; and
calculating, in response to the previous character and the to-be-displayed character being of the second type, the coordinates of the display origin of the to-be-displayed character based on the coordinates of the display origin of the previous character, the outline width of the previous character, and the character spacing.

### Claim 9 (depends on 7)

The character display method according to claim 7, further comprising:
re-determining the position of the display origin of the to-be-displayed character based on the type of the to-be-displayed character, a display position of the previous character, and the display parameter in response to a position of a lower border of the to-be-displayed character exceeding a maximum threshold.

### Claim 10 (depends on 9)

The character display method according to claim 9, wherein said re-determining the position of the display origin of the to-be-displayed character based on the type of the to-be-displayed character, the display position of the previous character, and the display parameter comprises:
calculating coordinates of the display origin of the to-be-displayed character based on coordinates of the display origin of the previous character, a font size, and a line spacing in response to the to-be-displayed character being of the first type or being a first character in a word made up by characters of the second type; and
in response to the to-be-displayed character being of the second type and not being a first character in a word made up by characters of the second type, setting the to-be-displayed character as the first character in the word, and calculating the coordinates of the display origin of the to-be-displayed character based on coordinates of a display origin of a previous character of the first character, the font size, and the line spacing.

### Claim 11 (depends on 10)

The character display method according to claim 10, wherein said setting the to-be-displayed character as the first character in the word comprises:
setting an index of the to-be-displayed character as an index of the first character in the word.

### Claim 12 (depends on 7)

The character display method according to claim 7, further comprising, during the obtaining of the to-be-displayed character:
splitting a to-be-displayed text to obtain each to-be-displayed character, setting an index for each to-be-displayed character, and indexing and storing in an index list each to-be-displayed character in accordance with an order of the to-be-displayed character in the to-be-displayed text.

### Claim 13 (depends on 12)

The character display method according to claim 12, wherein said determining the position of the display origin of the to-be-displayed character based on the position of the initial display origin and the display parameter comprises:
identifying a display origin of each to-be-displayed character by starting from a to-be-displayed character having an index of 0;
setting, in response to the index of the to-be-displayed character being 0, i.e., the to-be-displayed character being a first character in the to-be-displayed text, the display origin of the to-be-displayed character on the screen as the initial display origin; or
determining, in response to the index of the to-be-displayed character not being 0, the display origin of the to-be-displayed character based on the type of the previous character, the display origin of the previous character, the display parameter, and the type of the to-be-displayed character.

### Claim 14 (depends on 1)

The character display method according to claim 1, further comprising, subsequent to said determining the display origin of the to-be-displayed character based on the type of the to-be-displayed character:
obtaining a character texture of the to-be-displayed character from a character texture atlas, wherein:
the first manner is to display the character texture at a position of the display origin of the to-be-displayed character; and
the second manner is to display the character texture at the position of the display origin of the to-be-displayed character after rotating the character texture by a predetermined angle.

### Claim 15 (depends on 14)

The character display method according to claim 14, wherein the character texture atlas is generated by:
obtaining a single character;
generating a texture of the single character based on a font attribute of the single character in response to an absence of the single character in the character texture atlas; and
drawing the texture into the character texture atlas.

### Claim 16 (depends on 15)

The character display method according to claim 15, wherein said obtaining the single character comprises:
obtaining the single character from an index list in order, the index list being used to index, after the single character is obtained by splitting a to-be-displayed text, the single character in accordance with an order of the single character in the to-be-displayed text, and store the single character;
checking whether the single character is already included in a character mapping relationship table; and
obtaining, in response to the single character being already included in the character mapping relationship table, a next single character from the index list and checking whether the next single character is already included in the character mapping relationship table until the single character is not included in the character mapping relationship table, wherein the character mapping relationship table saves a correspondence between single characters and textures in the character texture atlas.

### Claim 17 (depends on 16)

The character display method according to claim 16, wherein said obtaining the character texture of the to-be-displayed character from the character texture atlas comprises:
obtaining, from the character mapping relationship table, a position of the to-be-displayed character in the character texture atlas; and
obtaining the texture of the to-be-displayed character from the character texture atlas based on the position.

### Claim 18

(canceled)

### Claim 19

An electronic device, comprising:
a memory having computer-readable instructions stored thereon; and
a processor configured to execute the computer-readable instructions to:
obtain a to-be-displayed character;
determine a type of the to-be-displayed character;
determine a display origin of the to-be-displayed character based on the type of the to-be-displayed character;
display, at the display origin of the to-be-displayed character, the to-be-displayed character in a first manner in response to the to-be-displayed character being of a first type; and
display, at the display origin of the to-be-displayed character, the to-be-displayed character in a second manner in response to the to-be-displayed character being of a second type.

### Claim 20

A non-transitory computer-readable storage medium, having computer-readable instructions stored thereon, wherein the computer-readable instructions, when executed by a computer, cause the computer to:
obtain a to-be-displayed character;
determine a type of the to-be-displayed character;
determine a display origin of the to-be-displayed character based on the type of the to-be-displayed character;
display, at the display origin of the to-be-displayed character, the to-be-displayed character in a first manner in response to the to-be-displayed character being of a first type; and
display, at the display origin of the to-be-displayed character, the to-be-displayed character in a second manner in response to the to-be-displayed character being of a second type.

### Claim 21 (depends on 19)

The electronic device according to claim 19, wherein said obtaining the to-be-displayed character comprises:
obtaining a to-be-displayed text; and
splitting characters in the to-be-displayed text to obtain at least one to-be-displayed character.
