Managing font data in a print job
First Claim
1. A method for managing fonts in a print job having a plurality of contexts, the method comprising:
- (a) for each context of the print job, identifying each text command within the context, each text command having a text string and a reference to a font;
(b) for each text command, storing the font reference and the text string;
(c) storing each font referenced within each context;
(d) identifying a context for processing;
(e) restoring each font referenced within the identified context; and
, (f) for each text command of the identified context, restoring each stored font reference and text string.
2 Assignments
0 Petitions
Accused Products
Abstract
A method and a system are used to manage fonts in print jobs with more than one context where at least some of the contexts include text strings. Print jobs may be divided into portions, called contexts, so that they are easier for a print manager to manage. These larger contexts are called graphic sets. Each of these graphic sets is sent to the printer driver consecutively. Each text string has a font associated with it. The font data for each text string is read from the operating system and cached into memory at the time each string is received by the printer driver. After all individual text strings elements of a given graphic set have been received by the printer driver, the context is stored and the cached fonts are stored with the context. After all of the contexts of the print job have been received by the printer and stored, each context is restored and rendered. The graphics sets may be restored in any order. The fonts stored with a context are also restored when the context is restored.
8 Citations
20 Claims
-
1. A method for managing fonts in a print job having a plurality of contexts, the method comprising:
-
(a) for each context of the print job, identifying each text command within the context, each text command having a text string and a reference to a font;
(b) for each text command, storing the font reference and the text string;
(c) storing each font referenced within each context;
(d) identifying a context for processing;
(e) restoring each font referenced within the identified context; and
,(f) for each text command of the identified context, restoring each stored font reference and text string. - View Dependent Claims (2, 3, 4, 5, 6, 7)
(a) caching font data for each font reference;
(b) caching a handle for a font implementation of the font reference;
(c) adding a reference to the font implementation of the font into a persistent font database; and
,(d) storing the cached font data.
-
-
3. The method of claim 2 wherein storing the cached font data further includes:
-
(a) discovering the quantity of unique font file representations used in the context;
(b) storing table and glyph data associated with each unique font file representation; and
,(c) storing a handle associated with the font data.
-
-
4. The method of claim 3 wherein each font file representation is associated with at least one font implementation and wherein storing the cached font data includes:
-
(a) discovering a quantity of unique font implementations used in the context;
(b) storing a copy of each unique font implementation; and
,(c) storing a handle assigned to the font file representation associated with the font implementation and a handle assigned to the font implementation.
-
-
5. The method of claim 4 wherein restoring each stored font includes:
-
(a) restoring the stored font data;
(b) restoring the font file representations and each handle associated with the font data;
(c) restoring the font implementations and the handles assigned to the font file representations and the handles assigned to the font implementations; and
,(d) using the restored handles assigned to the font file representations, the handles assigned to the font implementations, and the handle associated with the font data to link each restored font to each font implementation and the restored font data.
-
-
6. The method of claim 2 further including, after storing the cached font data, purging selected cached font data.
-
7. The method of claim 1 further including, after storing each font, determining an order for restoring the contexts.
-
8. A system for managing fonts in a print job having a plurality of contexts, the system comprising:
-
(a) means for identifying each text command within each context, each text command having a text string and a reference to a font;
(b) means for storing the font reference and the text string of each text command;
(c) means for storing each font referenced within each context;
(d) means for identifying a context for processing;
(e) means for restoring each font referenced within the identified context; and
,(f) means for restoring each stored font reference and text string for each text command of the identified context. - View Dependent Claims (9, 10, 11, 12, 13, 14)
(a) means for caching font data for each font reference;
(b) means for caching a handle for a font implementation of the font reference;
(c) means for adding a reference to the font implementation of the font into a persistent font database; and
,(d) means for storing the cached font data for each context.
-
-
10. The system of claim 8 wherein the means for storing the cached font data further includes:
-
(a) means for discovering the quantity of unique font file representations used in the context;
(b) means for storing table and glyph data associated with each unique font file representation; and
,(c) means for storing a handle associated with the font data.
-
-
11. The system of claim 10 wherein each font file representation is associated with at least one font implementation and wherein the means for storing the cached font data includes:
-
(a) means for discovering a quantity of unique font implementations used in the context;
(b) means for storing a copy of each unique font implementation; and
,(c) means for storing a handle assigned to the font file representation associated with the font implementation and a handle assigned to the font implementation.
-
-
12. The system of claim 11 wherein the means for restoring each stored font includes:
-
(a) means for restoring the stored font data;
(b) means for restoring the font file representations and each handle associated with the font data;
(c) means for restoring the font implementations and the handles assigned to the font file representations and the handles assigned to the font implementations; and
,(d) means for using the restored handles assigned to the font file representations, the handles assigned to the font implementations, and the handle associated with the font data to link each restored font to each font implementation and the restored font data.
-
-
13. The system of claim 9 further including means for purging selected cached font data.
-
14. The system of claim 8 further including means for determining an order for restoring the contexts.
-
15. A program storage device readable by a computer, tangibly embodying a program, applet, or instructions executable by the computer to perform method steps for managing fonts in a print job having a plurality of contexts, the method steps comprising:
-
(a) for each context of the print job, identifying each text command within the context, each text command having a text string and a reference to a font;
(b) for each text command, storing the font reference and the text string;
(c) storing each font referenced within each context;
(d) identifying a context for processing;
(e) restoring each font referenced within the identified context; and
,(f) for each text command of the identified context, restoring each stored font reference and text string. - View Dependent Claims (16, 17, 18, 19, 20)
(a) caching font data for each font reference;
(b) caching a handle for a font implementation of the font reference;
(c) adding a reference to the font implementation of the font into a persistent font database; and
,(d) storing the cached font data.
-
-
17. The program storage device of claim 16 wherein the method step of storing the cached font data further includes:
-
(a) discovering the quantity of unique font file representations used in the context;
(b) storing table and glyph data associated with each unique font file representation; and
,(c) storing a handle associated with the font data.
-
-
18. The program storage device of claim 17 wherein each font file representation is associated with at least one font implementation and wherein the method step of storing the cached font data includes:
-
(a) discovering a quantity of unique font implementations used in the context;
(b) storing a copy of each unique font implementation; and
,(c) storing a handle assigned to the font file representation associated with the font implementation and a handle assigned to the font implementation.
-
-
19. The program storage device of claim 18 wherein the method step of restoring each stored font includes:
-
(a) restoring the stored font data;
(b) restoring the font file representations and each handle associated with the font data;
(c) restoring the font implementations and the handles assigned to the font file representations and the handles assigned to the font implementations; and
,(d) using the restored handles assigned to the font file representations, the handles assigned to the font implementations, and the handle associated with the font data to link each restored font to each font implementation and the restored font data.
-
-
20. The program storage device of claim 16 wherein the method steps further include after storing the cached font data, purging selected cached font data.
Specification