This invention relates in general to printer fonts and, more particularly, to a system and method for creating an operating system font from a printer metrics file.
Manufacturers of printers often create fonts to be used by the printer. These fonts are often referred to as printer fonts. These printer fonts are usually embedded in devices associated with the printer. Examples of devices with embedded fonts include font cartridges and memory modules.
Since the fonts reside on a device and not in the operating system, they are not readily accessible by software applications. A device driver for the printer communicates with the software application to allow software applications to use the printer fonts when printing to the printer.
Differences in output will occur when a document is created using one of the printer fonts, then printed on a different printer using a printer driver that knows nothing about the printer font used in the document. The device driver for the printer used to print the document will not properly handle the printer font that it knows nothing about. Instead, the device driver will print an approximation of the font.
Printer metrics files describe the characteristics of specific fonts that are embedded in the devices. Printer metrics files are often referred to as printer font metrics (PFM) files and printer cartridge metrics (PCM) files. PCM files are typically a collection of PFM files represented as one physical file. The printer driver reads the printer metrics files and uses the information contained in the printer metrics files to display an approximation of the printer font on a screen for a user to view.
According to principles of the present invention, an operating system font is created from a printer metrics file. The printer metrics file includes at least one set of font metrics. Each set of font metrics represents one font. The printer metrics file is opened and the font metrics are read. A system font is created from each set of font metrics. A system font created by the present invention is the metric equivalent to the font whose printer metrics were used to create the system font. However, the system font may appear different from the font whose printer metrics were used to create the system font.
The system font is created by applying the font metrics to a font template. The font template with the applied font metrics is saved as a system font. The system font is then installed and registered with the operating system. A name is determined for the operating system font and the name is recorded with a printer driver associated with the printer metrics file.
Other objects, advantages, and capabilities of the present invention will become more apparent as the description proceeds.
Printer metrics files 14 each contain information about one or more printer fonts 18. Information about each font is grouped into a set of font metrics. The set of font metrics for each printer font 18 typically includes the selection string, character set, point size, scalability, width, and height of printer font 18 and whether printer font 18 is bolded, italicized, or both. A selection string is a string used to select the printer font 18 from those printer fonts 18 residing in printer 6.
Alternatively, all of the sets of font metrics are read 22 from the opened printer metrics file 14 and multiple operating system fonts are created from the sets of font metrics.
Operating system font 12 is created 22 by applying 26 the set of font metrics from printer metrics file 14 to font template 16. Font template 16 is a file that includes all of the information necessary to create an operating system font 12, except for the information contained in the set of font metrics retrieved from printer metrics file 14. After applying 26 the set of font metrics to the font template 16, font template 16 is saved 28 as an operating system font 12.
The new operating system font 12 may then be installed 30 into and registered 32 with operating system 8 of PC 4. The present invention is most useful with the various Windows operating systems. However, operating system 8 may be any computer operating system.
The process illustrated in
It should be understood that the foregoing description is only illustrative of the invention. Various alternatives and modifications can be devised by those skilled in the art without departing from the invention. Accordingly, the present invention is intended to embrace all such alternatives, modifications and variances that fall within the scope of the appended claims.
Number | Name | Date | Kind |
---|---|---|---|
5689724 | Morgan et al. | Nov 1997 | A |
5771034 | Gibson | Jun 1998 | A |
5877776 | Beaman et al. | Mar 1999 | A |
6065008 | Simon et al. | May 2000 | A |
6288726 | Ballard | Sep 2001 | B1 |