US 12,443,786 B2
Character display method and apparatus, electronic device, and computer-readable storage medium
Jingjing Zhuge, Beijing (CN); Guangyao Ni, Beijing (CN); Yepeng Chen, Beijing (CN); Yanhao Shen, Beijing (CN); and Hui Yang, Beijing (CN)
Assigned to BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
Appl. No. 18/245,052
Filed by BEIJING BYTEDANCE NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
PCT Filed Aug. 10, 2021, PCT No. PCT/CN2021/111846
§ 371(c)(1), (2) Date Mar. 13, 2023,
PCT Pub. No. WO2022/083240, PCT Pub. Date Apr. 28, 2022.
Claims priority of application No. 202011143511.0 (CN), filed on Oct. 23, 2020.
Prior Publication US 2025/0094685 A1, Mar. 20, 2025
Int. Cl. G06T 11/00 (2006.01); G06F 40/109 (2020.01)
CPC G06F 40/109 (2020.01) [G06T 11/001 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A character display method, performed by an electronic device having a screen, comprising:
obtaining a to-be-displayed character to be displayed on the screen;
determining a type of the to-be-displayed character;
determining a display origin of the to-be-displayed character on the screen based on the type of the to-be-displayed character;
displaying, at the display origin of the to-be-displayed character on the screen, 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 on the screen, the to-be-displayed character in a second manner in response to the to-be-displayed character being of a second type,
wherein said determining the display origin of the to-be-displayed character on the screen 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 the 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,
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,
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.