# US 2021/0064906 A1 · Glyph-aware underlining of text in digital typography

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

- Number: US 2021/0064906 A1
- Document ID: US20210064906A1
- Status: Published application
- Kind: A1
- Application number: 16/556,440
- Filed: 2019-08-30
- Published: 2021-03-04
- Earliest claimed: 2019-08-30
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Pawan Kishor Singh; Nirmal Kumawat
- Web page: https://patentgrep.com/patent/US20210064906A1

## 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)
- G06T 11/23: using straight lines or curves
- G06T 11/60: Creating or editing images; Combining images with text
- G06V 30/153: {using recognition of characters or words}
- G06V 30/155: {Removing patterns interfering with the pattern to be recognised, such as ruled lines or underlines}
- G06V 30/158: {using character size, text spacings or pitch estimation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A glyph-aware method for underlining text in digital typography includes identifying first and second intersection coordinates where first and second bounds of an underline region of the text intersect with an outline path of a glyph in the text. Where such intersections occur, a portion of the outline path of the glyph between the first and second intersection coordinates is copied. First and second offset coordinates for the underline are determined by adding or subtracting an offset to the first and second intersection coordinates. A first underline outline path is constructed in the underline region, where the first underline outline path includes the copied of the outline path of the glyph between the first and second intersection coordinates. A display device renders an underline, at least partially, along the first underline outline path between the first and second offset coordinates in the underline region of the text.

## Claims

### Claim 1

A computer-implemented method for underlining text in digital typography, the method comprising:
identifying, by at least one processor, first and second intersection coordinates where first and second bounds of an underline region of the text intersect with an outline path of a glyph in the text;
copying, by the at least one processor, a portion of the outline path of the glyph between the first and second intersection coordinates;
determining, by the at least one processor, first and second offset coordinates by adding or subtracting a coordinate offset along an axis of the underline region to the first and second intersection coordinates;
constructing, by the at least one processor, a first underline outline path in the underline region, the first underline outline path including the copied portion of the outline path of the glyph between the first and second intersection coordinates; and
causing, by the at least one processor, a display device to render an underline along the first underline outline path between the first and second offset coordinates in the underline region of the text.

### Claim 2 (depends on 1)

The method of claim 1, further comprising causing, by the at least one processor, the display device to render the outline path of the glyph.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first bounds of the underline region is an upper bounds of the underline region, and wherein the second bounds of the underline region is a lower bounds of the underline region.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first and second bounds of the underline region are both an upper bounds of the underline region or a lower bounds of the underline region.

### Claim 5 (depends on 1)

The method of claim 1, wherein the offset is a coordinate offset along a horizontal axis of the underline region.

### Claim 6 (depends on 1)

The method of claim 1, wherein the offset is a coordinate offset along a vertical axis of the underline region.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
identifying, by the at least one processor, third and fourth intersection coordinates where third and fourth bounds of the underline region of the text intersect with an offset outline path of the glyph in the text, the offset outline path of the glyph representing a distance between the outline path of the glyph and the underline region;
copying, by the at least one processor, a portion of an offset outline path of the glyph between the third and fourth intersection coordinates;
constructing, by the at least one processor, a second underline outline path in the underline region, the second underline outline path including the copied portion of the offset outline path of the glyph between the third and fourth intersection coordinates; and
causing, by the at least one processor, the display device to render an underline along the second underline outline path between the third and fourth intersection coordinates in the underline region of the text.

### Claim 8 (depends on 7)

The method of claim 7, wherein:
the first, third and fourth bounds of the underline region are an upper bounds of the underline region, and
the second bounds of the underline region is a lower bounds of the underline region.

### Claim 9 (depends on 7)

The method of claim 7, wherein:
the first and third bounds of the underline region are an upper bounds of the underline region, and
the second and fourth bounds of the underline region are a lower bounds of the underline region.

### Claim 10

A non-transitory computer readable medium having instructions encoded thereon that when executed by at least one processor of a computing device cause the at least one processor to perform a process of underlining text in digital typography, the process comprising:
identifying first and second intersection coordinates where first and second bounds of an underline region of the text intersect with an outline path of a glyph in the text;
copying a portion of the outline path of the glyph between the first and second intersection coordinates;
determining first and second offset coordinates by adding or subtracting a coordinate offset along an axis of the underline region to the first and second intersection coordinates;
constructing a first underline outline path in the underline region, the first underline outline path including the copied portion of the outline path of the glyph between the first and second intersection coordinates; and
causing a display device to render an underline along the first underline outline path between the first and second offset coordinates in the underline region of the text.

### Claim 11 (depends on 10)

The non-transitory computer readable medium of claim 10, the process further comprising causing the display device to render the outline path of the glyph.

### Claim 12 (depends on 10)

The non-transitory computer readable medium of claim 10, wherein the first bounds of the underline region is an upper bounds of the underline region, and wherein the second bounds of the underline region is a lower bounds of the underline region.

### Claim 13 (depends on 10)

The non-transitory computer readable medium of claim 10, wherein the first and second bounds of the underline region are both an upper bounds of the underline region or a lower bounds of the underline region.

### Claim 14 (depends on 10)

The non-transitory computer readable medium of claim 10, further comprising:
identifying third and fourth intersection coordinates where third and fourth bounds of the underline region of the text intersect with an offset outline path of the glyph in the text, the offset outline path of the glyph representing a distance between the outline path of the glyph and the underline region;
copying a portion of the outline path of an offset glyph between the third and fourth intersection coordinates;
constructing a second underline outline path in the underline region, the second underline outline path including the copied portion of the offset outline path of the glyph between the third and fourth intersection coordinates; and
causing the display device to render an underline along the second underline outline path between the third and fourth intersection coordinates in the underline region of the text.

### Claim 15

A system for underlining text in digital typography, the system comprising:
a storage; and
at least one processor operatively coupled to the storage, the at least one processor configured to execute instructions stored in the storage that when executed cause the processor to carry out a process including
identifying first and second intersection coordinates where first and second bounds of an underline region of the text intersect with an outline path of a glyph in the text;
copying a portion of the outline path of the glyph between the first and second intersection coordinates;
determining first and second offset coordinates by adding or subtracting a coordinate offset along an axis of the underline region to the first and second intersection coordinates;
constructing a first underline outline path in the underline region, the first underline outline path including the copied portion of the outline path of the glyph between the first and second intersection coordinates; and
causing a display device to render an underline along the first underline outline path between the first and second offset coordinates in the underline region of the text.

### Claim 16 (depends on 15)

The system of claim 15, the process further comprising causing the display device to render the outline path of the glyph.

### Claim 17 (depends on 15)

The system of claim 15, wherein the first bounds of the underline region is an upper bounds of the underline region, and wherein the second bounds of the underline region is a lower bounds of the underline region.

### Claim 18 (depends on 15)

The system of claim 15, wherein the first and second bounds of the underline region are both an upper bounds of the underline region or a lower bounds of the underline region.

### Claim 19 (depends on 15)

The system of claim 15, the process further comprising:
identifying, by at least one processor, third and fourth intersection coordinates where third and fourth bounds of the underline region of the text intersect with an offset outline path of the glyph in the text, the offset outline path of the glyph representing a distance between the outline path of the glyph and the underline region;
copying, by the at least one processor, a portion of an offset outline path of the glyph between the third and fourth intersection coordinates;
constructing, by the at least one processor, a second underline outline path in the underline region, the second underline outline path including the copied portion of the offset outline path of the glyph between the third and fourth intersection coordinates; and
causing, by the at least one processor, a display device to render an underline along the second underline outline path between the third and fourth intersection coordinates in the underline region of the text.

### Claim 20 (depends on 19)

The system of claim 19, wherein:
the first, third and fourth bounds of the underline region are an upper bounds of the underline region, and
the second bounds of the underline region is a lower bounds of the underline region.
