# US 2021/0240913 A1 · Font rendering method and apparatus, 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 2021/0240913 A1
- Document ID: US20210240913A1
- Status: Published application
- Kind: A1
- Application number: 17/238,630
- Filed: 2021-04-23
- Published: 2021-08-05
- Earliest claimed: 2018-11-23
- Assignees: Beijing Founder Handwriting Digital Technology Co., Ltd
- Applicants: Beijing Founder Handwriting Digital Technology Co., Ltd
- Inventors: Jianbin JIANG; Huijun WAN; Guangcan DONG; Yang YU
- Web page: https://patentgrep.com/patent/US20210240913A1

## CPC

- G06F 40/109: Font handling; Temporal or kinetic typography
- G06F 9/44: Arrangements for executing specific programs
- G06F 9/451: Execution arrangements for user interfaces
- G06F 40/151: Transformation
- G06T 3/4007: based on interpolation, e.g. bilinear interpolation (image demosaicing G06T3/4015; edge-driven or edge-based scaling G06T3/403)
- G06T 13/80: Two-dimensional [2D] animation, e.g. using sprites
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A font rendering method, apparatus and a computer-readable storage medium. The font rendering method includes: receiving a character string that needs to be rendered and reading a font file; parsing the font file to obtain text character pattern information and template information corresponding to the character string; generating an animation unit according to the text character pattern information and the template information; rendering the animation unit. Through the above font rendering method, corresponding template effects can be customized according to different font effects and different rows and columns, and mixed arrangement of text size, customized text position, customized text color and special effects are supported, which are more suitable for scene matching and picture-text combining, fully expressing semantic priority, enhancing text visual impact, highlighting the focus of the language and the text artistic conception.

## Claims

### Claim 1

A fond rendering method, comprising:
receiving a character string that needs to be rendered, and reading a font file;
parsing the font file to obtain text character pattern information and template information corresponding to the character string;
generating an animation unit according to the text character pattern information and the template information; and
rendering the animation unit.

### Claim 2 (depends on 1)

The fond rendering method according to claim 1, wherein, before generating the animation unit according to the text character pattern information and the template information, the method further comprises;
performing interpolation operation on each motion attribute in the text character pattern information and/or the template information; and
the interpolation operation comprises one or more of: a scaling, a rotation, a displacement, a color, a transparency, a stroke, a shadow, and a luminescence.

### Claim 3 (depends on 1)

The fond rendering method according to claim 1, wherein rendering the animation files comprises:
performing frame layer rendering and color filling on each frame of data of the animation unit by graphics processing unit (GPU); wherein the frame layer rendering comprises: background effect drawing, single word image effect drawing, whole image effect drawing, font effect drawing, and foreground effect drawing; and
a way of the color filling comprises one or more of: a gradient, a texture, a pure color, and an animation.

### Claim 4 (depends on 1)

The font rendering method according to claim 1, wherein,
the text character pattern information comprises one or more of: a whole-word base map, a component base map, and an outline base map;
the template information comprises one or more of: text dynamic typesetting information, text dynamic stretching and rotation information, text dynamic color information, pendant dynamic attribute information, and text overall dynamic mask information; and
the character string comprises at least one character, and the character comprises any one or combination of the following: a Chinese character, an Arabic character, and an English character.

### Claim 5 (depends on 1)

The font rendering method according to claim 1, wherein,
the font file comprises a font file of standard black-and-white words in a TrueType format and one or more of: a template attribute table, a character pattern typesetting information table, a character pattern rendering information table, a rendering information metadata table, a picture animation information table, a shader attribute table, a picture table, and a shader source code table.

### Claim 6

A font rendering apparatus, comprising:
a memory configured to store a computer program;
a processor configured to execute the computer program to: receive a character string that needs to be rendered and read a font file; parse the font file to obtain text character pattern information and template information corresponding to the character string; generate an animation unit according to the text character pattern information and the template information; and render the animation unit.

### Claim 7 (depends on 6)

The font rendering apparatus according to claim 6, wherein the processor is further configured to execute a computer program to:
before generating the animation unit according to the text character pattern information and the template information, perform interpolation operation on each motion attribute in the text character pattern information and/or the template information, wherein the interpolation operation comprises one or more of: a scaling, a rotation, a displacement, a color, a transparency, a stroke, a shadow, and a luminescence.

### Claim 8 (depends on 6)

The font rendering apparatus according to claim 6, wherein the processor is configured to execute the computer program to:
perform frame layer rendering and color filling on each frame of data of the animation unit by graphics processing unit (GPU); wherein the frame layer rendering comprises background effect drawing, single word image effect drawing, whole image effect drawing, font effect drawing, and foreground effect drawing; and
a way of the color filling comprises any one or combination of the following: a gradient, a texture, a pure color and an animation.

### Claim 9 (depends on 6)

The font rendering apparatus according to claim 6, wherein,
the text character pattern information comprises one or more of: a whole-word base map, a component base map, and an outline base map;
the template information comprises one or more of: text dynamic typesetting information, text dynamic stretching and rotation information, text dynamic color information, text size information, pendant dynamic attribute information, and text overall dynamic mask information; and
the character string comprises at least one character, and the character comprises one or more of: a Chinese character, an Arabic character, and an English character.

### Claim 10 (depends on 7)

The font rendering apparatus according to claim 7, wherein,
the font file comprises a font file of standard black-and-white words in a TrueType format and one or more of: a template attribute table, a character pattern typesetting information table, a character pattern rendering information table, a rendering information metadata table, a picture animation information table, a shader attribute table, picture table, and a shader source code table.

### Claim 11 (depends on 6)

A computer-readable storage medium, comprising:
the font rendering apparatus according to claim 6.
