Enhanced text wrapping in documents
AssigneeAdobe Inc.
InventorsPragya Kandari, Anurag Singh
Life of this patent
Estimating the term…
Abstract
Embodiments described herein facilitate text wrapping around a text-based glyph in an effective and efficient manner. In embodiments, a text-based glyph is generated within a document. The glyph is generated from a font file that includes glyph data that instruct a document editor how to generate the glyph. Using the glyph data, an intersection between the glyph and a text tile, e.g., a text area boundary where text can be placed, of the document. An insertion location based on intersection is identified, and text is inserted within the text tile at the insertion location, thus providing the effect of wrapping the text around the text-based glyph.
Claims20
A system comprising:
- at least one processor;
- and
- one or more computer storage media storing computer readable instructions thereon that when executed by the at least one processor cause the at least one processor to perform operations comprising:
- accessing glyph data from a font file for generating text in a document;
- calculating from the glyph data a first intersection between a glyph, having been generated from the glyph data of the font file, and a first text tile identifying text location within the document, the first intersection calculated by identifying a location of the first text tile that is the same as a location on a Bézier curve calculated according to the font file for control points of the glyph;
- determining a first insertion location in the first text tile based on the first intersection of the glyph with the first text tile;
- and
- inserting text into the first text tile at the first insertion location.
A method performed by one or more processors, the method comprising:
- generating a glyph in a document comprising text tiles identifying text locations within the document, the glyph generated from glyph data within a font file;
- from the glyph data, calculating a first intersection between a Bézier curve of the glyph and a first text tile within the document, the Bézier curve calculated according to the font file for control points of the glyph;
- and
- inserting text into the text tile at a first insertion location determined based on first intersection of the glyph with the first text tile.
One or more computer storage media storing computer readable instructions thereon that, when executed by a processor, cause the processor to perform operations comprising:
- generating a glyph in a document comprising text tiles identifying text locations within the document, the glyph comprising a Bézier curve generated from glyph data within a font file, and the glyph comprising a first font size;
- from the glyph data, determining a first intersection between the Bézier curve of the glyph and a first text tile within the document for wrapping text of the first text tile around the glyph, the first intersection calculated by identifying a location of the first text tile that is the same as a location on the Bézier curve;
- and
- inserting the text into the text tile at a first insertion location determined based on first intersection of the glyph with the first text tile, the inserted text comprising a second font size that is less than the first font size.
Dependencies are inferred from the claim text.