Approximating font metrics for a missing font when substituting an available replacement
AssigneeKonica Minolta Laboratory U.S.A., Inc.
InventorTodd Michael Plummer
Life of this patent
Estimating the term…
Abstract
A method for rendering an electronic document (ED) using a page rendering device, including: identifying, within the ED, a text stream and a requested font for the text stream, where the text stream has a plurality of characters; identifying a resident font supported by the PRD as a substitute for the requested font; generating a plurality of scaled characters by scaling the plurality of characters in the resident font; and rendering, by the PRD, the ED by placing the plurality of scaled characters on a page.
Claims16
A method for rendering an electronic document (ED) using a page rendering device (PRD), comprising:
- identifying, within the ED, a text stream and a requested font for the text stream, wherein the text stream comprises a plurality of characters;
- identifying a resident font supported by the PRD as a substitute for the requested font;
- generating a plurality of scaled characters, wherein generating the plurality of scaled characters comprises:
- multiplying a horizontal dimension of a character of the plurality of characters in the resident font with a horizontal scaling ratio relating the requested font and the resident font;
- and
- multiplying a vertical dimension of the character in the resident font with a vertical scaling ratio relating the requested font and the resident font;
- and
- rendering, by the PRD, the ED by placing the plurality of scaled characters on a page.
A non-transitory computer readable storage medium storing instructions to render an electronic document (ED) using a page rendering device (PRD), the instructions comprising functionality to:
- identify, within the ED, a text stream and a requested font for the text stream, wherein the text stream comprises a plurality of characters;
- identify a resident font supported by the PRD as a substitute for the requested font;
- generate a plurality of scaled characters by:
- multiplying a horizontal dimension of a character of the plurality of characters in the resident font with a horizontal scaling ratio relating the requested font and the resident font;
- and
- multiplying a vertical dimension of the character in the resident font with a vertical scaling ratio relating the requested font and the resident font;
- and
- render, by the PRD, the ED by placing the plurality of scaled characters on a page.
A system for rendering an electronic document (ED) comprising a text stream having a plurality of characters, comprising:
- a hardware processor;
- a substitute font selector (SFS) configured to identify a resident font as a substitute for a requested font in the ED;
- a resident font repository storing the plurality of characters in the resident font;
- and
- a layout engine executing on the hardware processor and configured to:
- generate a plurality of scaled characters, wherein generating the plurality of scaled characters comprises:
- multiplying a horizontal dimension of a character of the plurality of characters in the resident font with a horizontal scaling ratio relating the requested font and the resident font;
- and
- multiplying a vertical dimension of the character in the resident font with a vertical scaling ratio relating the requested font and the resident font;
- and
- render the ED by placing the plurality of scaled characters on a page.
Dependencies are inferred from the claim text.