Patent ID: 8381101

Claim:
A method for typesetting and rendering a document in a platform-independent manner, comprising: obtaining the document, wherein the document includes text content and associated style information including one or more fonts; obtaining platform-independent font metrics for the one or more fonts, wherein the platform-independent font metrics include information that can be used to determine the positions of individual characters in a rendering of the document, wherein obtaining the platform-independent font metrics involves determining a set of glyphs of interest, and wherein, for each glyph in the set of glyphs of interest, the platform-independent font metrics specify at least one of: a horizontal and a vertical position of a bounding box for the glyph; a horizontal and a vertical size of the bounding box for the glyph; and a horizontal and a vertical advancement for the glyph, which specify how far horizontally and how far vertically a pen position moves after drawing the glyph; using the platform-independent font metrics to determine how the document is divided into line fragments and pages; and using the determined division while rendering the document, so that the division of the document into line fragments and pages is the same across different computing platforms.