Line leading from an arbitrary point
First Claim
Patent Images
1. A method for calculating a position of a current line of glyphs relative to an immediately preceding line of glyphs in the electronic typesetting of a document, the method comprising:
- receiving an electronic document containing lines of glyphs, each line of glyphs including at least one glyph, each glyph being contained in an embox having a preceding edge and a following edge, the embox having a size determined by a type size of a character represented by the glyph, wherein a line of glyphs includes a preceding line defined to coincide and be parallel with the preceding edge of a largest embox of the line of glyphs, a following line defined to coincide and be parallel with the following edge of the largest embox of the line of glyphs, and a line height defined to be a distance between the preceding line and the following line of the line of glyphs;
receiving an input specifying a line leading metric, which represents a reference point relative to an embox;
receiving a line leading value for the current line of glyphs and a line leading value for the immediately preceding lines of glyphs;
calculating the line height of the immediately preceding line of glyphs;
calculating a position of a line leading measure point of the immediately preceding line of glyphs from the line leading metric and from the line height of the immediately preceding line of glyphs;
calculating a position of a line leading measure point of the current line of glyphs from one of the line leading values received and from the calculated position of the line leading measure point of the immediately preceding line of glyphs;
calculating the line height of the current line of glyphs; and
calculating the position of the current line of glyphs from the line leading metric, the line height of the current line of glyphs, and the calculated position of the line leading measure point of the current line of glyphs.
2 Assignments
0 Petitions
Accused Products
Abstract
Methods and apparatus implementing a technique for calculating line leading. In general, in one aspect, the technique includes receiving a first input specifying either a forward line leading model or a backward line leading mode and calculating line leading based on the input.
48 Citations
25 Claims
-
1. A method for calculating a position of a current line of glyphs relative to an immediately preceding line of glyphs in the electronic typesetting of a document, the method comprising:
-
receiving an electronic document containing lines of glyphs, each line of glyphs including at least one glyph, each glyph being contained in an embox having a preceding edge and a following edge, the embox having a size determined by a type size of a character represented by the glyph, wherein a line of glyphs includes a preceding line defined to coincide and be parallel with the preceding edge of a largest embox of the line of glyphs, a following line defined to coincide and be parallel with the following edge of the largest embox of the line of glyphs, and a line height defined to be a distance between the preceding line and the following line of the line of glyphs; receiving an input specifying a line leading metric, which represents a reference point relative to an embox; receiving a line leading value for the current line of glyphs and a line leading value for the immediately preceding lines of glyphs; calculating the line height of the immediately preceding line of glyphs; calculating a position of a line leading measure point of the immediately preceding line of glyphs from the line leading metric and from the line height of the immediately preceding line of glyphs; calculating a position of a line leading measure point of the current line of glyphs from one of the line leading values received and from the calculated position of the line leading measure point of the immediately preceding line of glyphs; calculating the line height of the current line of glyphs; and calculating the position of the current line of glyphs from the line leading metric, the line height of the current line of glyphs, and the calculated position of the line leading measure point of the current line of glyphs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for calculating line leading in the electronic typesetting of a document, comprising:
-
receiving a first input expressly specifying either a forward line leading model or a backward line leading model; and calculating the line leading according to the forward line leading model if the first input specifies the forward line leading model and otherwise calculating the line leading according to the backward line leading model if the first input specifies the backward line leading model, where the line leading determines a position of a current line of glyphs relative to an immediately preceding line of glyphs in the typesetting of the document. - View Dependent Claims (10, 11, 12)
-
-
13. A computer program product, tangibly stored on a computer-readable medium, for calculating a position of a current line of glyphs relative to an immediately preceding line of glyphs in the electronic typesetting of a document, comprising instructions operable to cause a programmable processor to:
-
receive an electronic document containing lines of glyphs, each line of glyphs including at least one glyph, each glyph being contained in an embox having a preceding edge and a following edge, the embox having a size determined by a type size of a character represented by the glyph, wherein a line of glyphs includes a preceding line defined to coincide and be parallel with the preceding edge of a largest embox of the line of glyphs, a following line defined to coincide and be parallel with the following edge of the largest embox of the line of glyphs, and a line height defined to be a distance between the preceding line and the following line of the line of glyphs; receive an input specifying a line leading metric, which represents a reference point relative to an embox; receive a line leading value for the current line of glyphs and a line leading value for the immediately preceding lines of glyphs; calculate the line height of the immediately preceding line of glyphs; calculate a position of a line leading measure point of the immediately preceding line of glyphs from the line leading metric and from the line height of the immediately preceding line of glyphs; calculate a position of a line leading measure point of the current line of glyphs from one of the line leading values received and from the calculated position of the line leading measure point of the immediately preceding line of glyphs; calculate the line height of the current line of glyphs; and calculate the position of the current line of glyphs from the line leading metric, the line height of the current line of glyphs, and the calculated position of the line leading measure point of the current line of glyphs. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer program product, tangibly stored on a computer-readable medium, for calculating line leading in the electronic typesetting of a document, comprising instructions operable to cause a programmable processor to:
-
receive a first input expressly specifying either a forward line leading model or a backward line leading model; and calculate the line leading according to the forward line leading model if the first input specifies the forward line leading model and otherwise calculate the line leading according to the backward line leading model if the first input specifies the backward line leading model, where the line leading determines a position of a current line of glyphs relative to an immediately preceding line of glyphs in the typesetting of the document. - View Dependent Claims (22, 23, 24)
-
-
25. A system for calculating line leading, comprising:
a line leading device operable to perform line leading under both a forward line leading model and a backward line leading model, where in response to a first input expressly specifying either a forward line leading model or a backward line leading model, the line leading device; calculates the line leading according to the forward line leading model if the first input specifies the forward line leading model and otherwise calculates the line leading according to the backward line leading model if the first input specifies the backward line leading model, where the line leading determines a position of a current line of glyphs relative to an immediately preceding line of glyphs in the typesetting of the document.
Specification