US5577183A - Printer system that stores compressed font glyphs in data blocks and decompressed glyphs in each data block together using same decompression procedure - Google Patents

Printer system that stores compressed font glyphs in data blocks and decompressed glyphs in each data block together using same decompression procedure Download PDF

Info

Publication number
US5577183A
US5577183A US08/565,934 US56593495A US5577183A US 5577183 A US5577183 A US 5577183A US 56593495 A US56593495 A US 56593495A US 5577183 A US5577183 A US 5577183A
Authority
US
United States
Prior art keywords
data
glyphs
decompressed
glyph
data block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
US08/565,934
Inventor
Chris Weyand
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HP Inc
Original Assignee
Hewlett Packard Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hewlett Packard Co filed Critical Hewlett Packard Co
Priority to US08/565,934 priority Critical patent/US5577183A/en
Application granted granted Critical
Publication of US5577183A publication Critical patent/US5577183A/en
Assigned to HEWLETT-PACKARD COMPANY reassignment HEWLETT-PACKARD COMPANY MERGER (SEE DOCUMENT FOR DETAILS). Assignors: HEWLETT-PACKARD COMPANY
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/143Glyph-codes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1297Printer code translation, conversion, emulation, compression; Configuration of printer parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K2215/00Arrangements for producing a permanent visual presentation of the output data
    • G06K2215/0002Handling the output data
    • G06K2215/002Generic data access
    • G06K2215/0028Generic data access characterised by the format per se

Definitions

  • This invention relates to data processing systems that employ outline font representations and, more particularly, to a printer system that includes compressed fonts and procedures for decompression thereof which reduce font storage capacity requirements.
  • TrueType is an industry standard which defines the representation of certain computer outline font data.
  • ROM read only memory
  • a font may also be stored on a disk drive (e.g. in a computer operating system), or in random access memory (RAM) (e.g. fonts kept in a computer's main memory).
  • FIG. 1 a data processing system (e.g. a laser printer) is shown which is adapted to utilize TrueType outline font data.
  • System 10 includes a microprocessor 12 that is connected via a bus system 14 to a laser print engine 16.
  • Bus system 14 also connects to a ROM 18 that includes a TrueType font table 19 (to be discussed below with respect to FIG. 2).
  • a random access memory (RAM) 20 is also connected to bus system 14, as is a print buffer 22. It is to be understood that print buffer 22 may be a portion of RAM 20.
  • An input/output module 24 is adapted to receive a message stream from a host computer that includes character codes.
  • Each character code specifies a glyph which is the data that represents a character or a portion of a character and, when configured in pixel data form, can be stored in print buffer 22.
  • a character comprises plural glyphs
  • one glyph will specify additional glyphs from which the complete character is built.
  • Such pixel data when provided to print engine 16, enables the deposition of ink on a media sheet that reproduces the glyph or glyphs.
  • system 10 When system 10 receives a message stream from a host computer that includes both character codes and print commands, the character codes are temporarily stored and are then converted to glyph data by reference to font table 19. The glyph data is stored in pixel form in print buffer 22 and is then provided to print engine 16.
  • FIG. 2 shows a TrueType font table 19, as it is stored in ROM 18 in FIG. 1.
  • TrueType font table 19 comprises several subtables that are defined in the document TrueType Font Files Version 1.00, Microsoft Corporation, Redmond, Wash.
  • TrueType font table 19 commences with a header 30 and a tag line 32 that forms an entry in directory portion 34.
  • Tag line 32 includes a tag (i.e., a "name") identifying the table, a checksum for error correction purposes, a length field which defines the length of the table, and an offset value indicating the point at which the table begins after a directory portion 34.
  • Each TrueType font table 19 includes a number of tables, of which three subtables are a CMAP table 36, a LOCA table 38 and a GLYPH table 40.
  • CMAP table 36 is addressed in accordance with a received character code and returns an associated glyph index value.
  • Each glyph index value serves as an address into LOCA table 38 and is associated with an offset value.
  • LOCA table 38 returns an offset value which identifies the address offset within glyph table 40 wherein there is found pixel-data form of a glyph identified by the received character code.
  • Glyph table 40 in a standard TrueType font table, occupies approximately 90 percent of ROM 18 and, as above indicated, may be as large as 2-5 megabytes.
  • a glyph Once a glyph has been accessed from glyph table 40, it is processed, using a "fill" procedure 42 stored in RAM 20 in FIG. 1. Fill procedure 42 enables the outline glyph data to be completely “filled in” so that the pixel data in print buffer 22 represents a fully filled-in character. At this stage, a glyph in print buffer 22 is ready for printing by print engine 16. If the glyph data from glyph table 40 includes only a portion of a character, a further procedure is employed to associate the glyphs to arrive at a complete character.
  • Data processing apparatus provides pixel data representations of font glyphs, and includes a memory which stores font data in plural groups of entries.
  • a first group of entries comprises a series of data blocks, each data block including data-compressed forms of plural glyphs.
  • the plural glyphs in a data block exhibit a common attribute which suggests that the plural glyphs be decompressed together.
  • a processor is responsive to a signal stream that includes character codes, to access from the memory a data block that includes a glyph corresponding to a received character code.
  • the processor subjects all data compressed forms of glyphs from the data block to one of a plurality of decompression procedures. In this manner, all decompressed pixel data representations of glyphs in a data block become available for use by the processor as a result of the decompression action. Under certain circumstances, decompressed glyph font data is cached for subsequent use, after decompression.
  • FIG. 1 is a block diagram of a prior art data processing system which includes a memory for storage of outline font data.
  • FIG. 2 is a schematic representation of a TrueType font table data structure, as specified by a prior art industry standard.
  • FIG. 3 is a schematic illustration of a ROM font table that in the operation of the invention.
  • FIG. 4 is a schematic representation of a compressed glyph block data structure that is employed in the invention.
  • FIG. 1 Prior to describing details of the invention, it is well to understand that the system shown in FIG. 1 is capable of performing the invention, so long as it stores in memory the requisite revised font table and compressed glyph blocks to be described below. While system 10 is shown as a printer, it is to be understood by those skilled in the art that the invention may be configured for use by a host processor, a printer including a microprocessor, or a combination of the two. In any case, the inclusion of data structures shown in FIGS. 3 and 4 in combination with a procedure enabling use of such data structures, allows for substantial font memory conservation.
  • font table 50 resembles the prior art TrueType font table 19 shown in FIG. 2, but has been revised so as to enable inclusion of compressed glyph data.
  • Header portion 30 and directory 34 (including tag line 32) are substantially identical to that shown in FIG. 2.
  • the length and offset values in tag line 32 are altered in accordance with the reduced size font table.
  • CMAP table 36 is also substantially identical to that shown in FIG. 2 and converts received character codes to glyph index values.
  • Each glyph index value accessed from CMAP table 36 enables the addressing of an associated offset value in LOCA table 52.
  • the offset value returned by LOCA table 52 in response to a glyph index address points to an initial address of an offset list portion of a compressed glyph block that is stored in glyph table 54.
  • the vacuum tables and subtables shown in FIG. 3 are not necessarily contiguously stored. They are accessed using offset data from directory 34.
  • Each compressed glyph block 60 contains a portion 62 that includes a plurality of compressed glyph data segments. While portion 62 of a compressed glyph block 60 may contain just one compressed glyph data segment, it is generally the case that plural compressed glyph data segments are contained in portion 62. All glyphs contained in portion 62 are compressed using the same compression procedure so that a single decompression procedure can be used to decompress the data back to its original pixel outline data state. All glyphs contained within portion 62 are characterized by a common use attribute which renders it logical to decompress all of the glyphs in portion 62 when any one glyph is requested.
  • the compressed glyph data in portion 62 may comprise plural glyphs which must be combined to render a complete alphanumeric character. Further, the compressed glyph data in portion 62 may also be grouped on a frequency of use basis. Thus, a first compressed glyph block 60, will include most often used glyphs; a second compressed glyph block 60 will include less often used glyphs, etc.
  • Compressed glyph block 60 contains a further portion 64 which stores plural offset values 66, 68, 70, etc.
  • Value 66 indicates the initial offset address of a pixel in a first glyph contained in compressed form in portion 62, after it has been decompressed and placed in memory. (The first decompressed glyph always has a 0 offset.)
  • a first decompressed glyph occupies addresses 0-110; a second decompressed glyph occupies addresses 111-250, a third occupies addresses 251-370, etc.
  • the offset values contained in portion 64 thus enable microprocessor 12 to identify and locate each of the decompressed glyph pixel representations subsequent to decompression and placement in memory.
  • a compressed glyph block 60 contains a further section 74, termed an "Hidx" byte (where Hidx is an acronym for "Huff index").
  • Hidx is an acronym for "Huff index”
  • Two bits of Hidx byte 74 are employed to identify a "caching" status of decompressed glyph pixel data from block 60 and four bits are employed to identify a decompression procedure that is to be utilized during the decompression of the compressed glyph data segments in compressed glyph block 60. Under certain circumstances, the glyph data segments will not be in a compressed state and this will be indicated by the aforesaid four bits exhibiting all zero states.
  • glyphs contained in portion 62 are preferably chosen to evidence a similar characteristic which enables them to be compressed using a common compression procedure. This enables compressed glyph data segments contained in portion 62 to be efficiently decompressed by a specially tailored decompression procedure.
  • each decompression procedure in portion 76 may include a subset of a LempeI-Ziv dictionary (a commonly used compression/decompression procedure) and will contain only dictionary entries that are particularly relevant to the particular glyphs contained in portion 62.
  • portion 76 may only contain offset and length data that enables LempeI-Ziv data stored elsewhere to be accessed.
  • Hidx byte 74 includes two additional bits which identify the cache status for glyphs that are decompressed from portion 62. Three caching statuses are preferred--but others will be apparent to those skilled in the art.
  • decompressed glyph data may be discarded immediately after use (i.e., no caching).
  • the decompressed glyph data may be stored for a brief interval as it is known that if it is not used within the interval, that it is best to discard the decompressed glyph data.
  • the decompressed glyph data may be used sufficiently often that it is stored on a semi-permanent basis (or until the system is powered-down or otherwise instructed to discard the decompressed glyph data).
  • Each portion 62 of a compressed glyph block 60 need not be the same length. For instance, those glyphs that are most commonly used may be contained in a smaller portion 62 so as to enable more rapid decompression and recapture. Less frequently used glyphs may be contained in larger portions 62 as they will be called upon less often and the added processing time will not be significant.
  • CTTF table 78 a final portion thereof is termed the "CTTF table" and its presence in a font table 50 indicates to the using system that glyph table 54 contains compressed glyph blocks 60.
  • CTTF table 78 further contains a value indicating the amount of memory required for the largest decompressed glyph data from a portion 62 of a compressed glyph block 60. This enables the system to allocate sufficient memory in advance of decompression to accommodate all decompressed glyphs from a compressed glyph data portion 62 in a compressed glyph block 60.
  • CTTF table 78 may also include individual values for each compressed glyph block 60, which indicates the amount of memory to be allocated for each block's decompressed glyph data portion 62.
  • ROM 18 contains the font table shown in FIGS. 3 and 4.
  • system 10 receives a data stream which includes plural character codes from a host processor.
  • a received character code is employed by microprocessor 12 to access a glyph index value in CMAP table 36.
  • directory 34 is employed by microprocessor 12 to determine the initial address of CMAP table 36 (and other tables) so as to allow access thereto.
  • the glyph index that is returned from CMAP table 36 is then employed to access an offset value contained in LOCA table 52 which points into the offset list in a compressed glyph block.
  • the returned offset value provides an address within glyph table 54 that indicates the initial bit position of a compressed glyph block 60 which contains a glyph that corresponds to the received character code.
  • the system Prior to accessing a compressed glyph block 60 from glyph table 54, however, the system checks to see if the desired glyph has already decompressed and is already cached in RAM 20 in cache area 44. If not, the compressed glyph block is accessed and stored in RAM 20.
  • the system reads the Hidx byte value and the CTTF table to determine the size of memory to be allocated for decompressed glyph pixel data and the particular decompression procedure to be accessed from portion 76. Once the decompression procedure is accessed, portion 62 of compressed glyph data segments is subjected to the decompression procedure and the decompressed glyphs are stored in RAM 20.
  • portion 64 of a compressed glyph block 60 contains a list of offset values for each of the glyphs in a compressed glyph block, after decompression.
  • the system employs the offset values to enable access to a desired one of the decompressed glyphs.
  • the system checks the cache status bits from the Hidx byte and either discards the decompressed glyphs, caches them in cache area 44 on a temporary basis, or on a semipermanent basis.

Abstract

Data processing apparatus provides pixel data representations of font glyphs, and includes a memory which stores font data in plural groups of entries. A first group of entries comprises a series of data blocks, each data block including data-compressed forms of plural glyphs. The plural glyphs in a data block exhibit a common attribute which suggests that the plural glyphs be decompressed together. A processor is responsive to a signal stream that includes character codes, to access from the memory a data block that includes a glyph corresponding to a received character code. The processor subjects all data compressed forms of glyphs from the data block to one of a plurality of decompression procedures. In this manner, all decompressed pixel data representations of glyphs in a data block become available for use by the processor as a result of the decompression action. Under certain circumstances, decompressed glyph font data is cached for subsequent use, after decompression.

Description

This is a continuation of copending application Ser. No. 08/210,210 filed on Mar. 18, 1994.
FIELD OF THE INVENTION
This invention relates to data processing systems that employ outline font representations and, more particularly, to a printer system that includes compressed fonts and procedures for decompression thereof which reduce font storage capacity requirements.
BACKGROUND OF THE INVENTION
Many fonts are stored in outline form and, when accessed by a printer, are "filled in" so as to evidence complete stroke representations of font characters. TrueType is an industry standard which defines the representation of certain computer outline font data. When the TrueType format is employed to represent large fonts (e.g. Kanji), memory requirements may exceed 2-5 megabytes. As such fonts are often stored in read only memory (ROM), large and expansive ROMs are required. A font may also be stored on a disk drive (e.g. in a computer operating system), or in random access memory (RAM) (e.g. fonts kept in a computer's main memory).
While reduction of font storage memory requirements is an ever-present objective, there is a parallel need to maintain compatibility with previously defined industry font standards (e.g. TrueType). In FIG. 1, a data processing system (e.g. a laser printer) is shown which is adapted to utilize TrueType outline font data. System 10 includes a microprocessor 12 that is connected via a bus system 14 to a laser print engine 16. Bus system 14 also connects to a ROM 18 that includes a TrueType font table 19 (to be discussed below with respect to FIG. 2). A random access memory (RAM) 20 is also connected to bus system 14, as is a print buffer 22. It is to be understood that print buffer 22 may be a portion of RAM 20.
An input/output module 24 is adapted to receive a message stream from a host computer that includes character codes. Each character code specifies a glyph which is the data that represents a character or a portion of a character and, when configured in pixel data form, can be stored in print buffer 22. In the case where a character comprises plural glyphs, one glyph will specify additional glyphs from which the complete character is built. Such pixel data, when provided to print engine 16, enables the deposition of ink on a media sheet that reproduces the glyph or glyphs.
When system 10 receives a message stream from a host computer that includes both character codes and print commands, the character codes are temporarily stored and are then converted to glyph data by reference to font table 19. The glyph data is stored in pixel form in print buffer 22 and is then provided to print engine 16.
FIG. 2 shows a TrueType font table 19, as it is stored in ROM 18 in FIG. 1. TrueType font table 19 comprises several subtables that are defined in the document TrueType Font Files Version 1.00, Microsoft Corporation, Redmond, Wash. TrueType font table 19 commences with a header 30 and a tag line 32 that forms an entry in directory portion 34. Tag line 32 includes a tag (i.e., a "name") identifying the table, a checksum for error correction purposes, a length field which defines the length of the table, and an offset value indicating the point at which the table begins after a directory portion 34.
Each TrueType font table 19 includes a number of tables, of which three subtables are a CMAP table 36, a LOCA table 38 and a GLYPH table 40. CMAP table 36 is addressed in accordance with a received character code and returns an associated glyph index value. Each glyph index value serves as an address into LOCA table 38 and is associated with an offset value. In response to a received glyph index value, LOCA table 38 returns an offset value which identifies the address offset within glyph table 40 wherein there is found pixel-data form of a glyph identified by the received character code. Glyph table 40, in a standard TrueType font table, occupies approximately 90 percent of ROM 18 and, as above indicated, may be as large as 2-5 megabytes.
Once a glyph has been accessed from glyph table 40, it is processed, using a "fill" procedure 42 stored in RAM 20 in FIG. 1. Fill procedure 42 enables the outline glyph data to be completely "filled in" so that the pixel data in print buffer 22 represents a fully filled-in character. At this stage, a glyph in print buffer 22 is ready for printing by print engine 16. If the glyph data from glyph table 40 includes only a portion of a character, a further procedure is employed to associate the glyphs to arrive at a complete character.
It is therefore an object of this invention to provide a data processing system which minimizes font storage requirements by storing the font data in a compressed form.
It is another object of this invention to provide a data processing system with compressed format font storage that is compatible with pre-existing font standards.
It is yet another object of this invention to provide a data processing system with compressed font storage and to further provide decompression procedures that enable a most efficient decompression action to be carried out with respect to individual stored glyphs.
SUMMARY OF THE INVENTION
Data processing apparatus provides pixel data representations of font glyphs, and includes a memory which stores font data in plural groups of entries. A first group of entries comprises a series of data blocks, each data block including data-compressed forms of plural glyphs. The plural glyphs in a data block exhibit a common attribute which suggests that the plural glyphs be decompressed together. A processor is responsive to a signal stream that includes character codes, to access from the memory a data block that includes a glyph corresponding to a received character code. The processor subjects all data compressed forms of glyphs from the data block to one of a plurality of decompression procedures. In this manner, all decompressed pixel data representations of glyphs in a data block become available for use by the processor as a result of the decompression action. Under certain circumstances, decompressed glyph font data is cached for subsequent use, after decompression.
DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of a prior art data processing system which includes a memory for storage of outline font data.
FIG. 2 is a schematic representation of a TrueType font table data structure, as specified by a prior art industry standard.
FIG. 3 is a schematic illustration of a ROM font table that in the operation of the invention.
FIG. 4 is a schematic representation of a compressed glyph block data structure that is employed in the invention.
DETAILED DESCRIPTION OF THE INVENTION
Prior to describing details of the invention, it is well to understand that the system shown in FIG. 1 is capable of performing the invention, so long as it stores in memory the requisite revised font table and compressed glyph blocks to be described below. While system 10 is shown as a printer, it is to be understood by those skilled in the art that the invention may be configured for use by a host processor, a printer including a microprocessor, or a combination of the two. In any case, the inclusion of data structures shown in FIGS. 3 and 4 in combination with a procedure enabling use of such data structures, allows for substantial font memory conservation.
Turning to FIG. 3, font table 50 resembles the prior art TrueType font table 19 shown in FIG. 2, but has been revised so as to enable inclusion of compressed glyph data. Header portion 30 and directory 34 (including tag line 32) are substantially identical to that shown in FIG. 2. The length and offset values in tag line 32 are altered in accordance with the reduced size font table. CMAP table 36 is also substantially identical to that shown in FIG. 2 and converts received character codes to glyph index values. Each glyph index value accessed from CMAP table 36 enables the addressing of an associated offset value in LOCA table 52. In this case, however, the offset value returned by LOCA table 52 in response to a glyph index address, points to an initial address of an offset list portion of a compressed glyph block that is stored in glyph table 54. It is to be understood that the vacuum tables and subtables shown in FIG. 3 are not necessarily contiguously stored. They are accessed using offset data from directory 34.
Before proceeding to further describe font table 50, an exemplary compressed glyph block 60 will be described in relation to FIG. 4. Each compressed glyph block 60 contains a portion 62 that includes a plurality of compressed glyph data segments. While portion 62 of a compressed glyph block 60 may contain just one compressed glyph data segment, it is generally the case that plural compressed glyph data segments are contained in portion 62. All glyphs contained in portion 62 are compressed using the same compression procedure so that a single decompression procedure can be used to decompress the data back to its original pixel outline data state. All glyphs contained within portion 62 are characterized by a common use attribute which renders it logical to decompress all of the glyphs in portion 62 when any one glyph is requested. For instance, the compressed glyph data in portion 62 may comprise plural glyphs which must be combined to render a complete alphanumeric character. Further, the compressed glyph data in portion 62 may also be grouped on a frequency of use basis. Thus, a first compressed glyph block 60, will include most often used glyphs; a second compressed glyph block 60 will include less often used glyphs, etc.
Compressed glyph block 60 contains a further portion 64 which stores plural offset values 66, 68, 70, etc. Value 66 indicates the initial offset address of a pixel in a first glyph contained in compressed form in portion 62, after it has been decompressed and placed in memory. (The first decompressed glyph always has a 0 offset.) Thus, as shown at 72, a first decompressed glyph occupies addresses 0-110; a second decompressed glyph occupies addresses 111-250, a third occupies addresses 251-370, etc. The offset values contained in portion 64 thus enable microprocessor 12 to identify and locate each of the decompressed glyph pixel representations subsequent to decompression and placement in memory.
A compressed glyph block 60 (FIG. 4) contains a further section 74, termed an "Hidx" byte (where Hidx is an acronym for "Huff index"). Two bits of Hidx byte 74 are employed to identify a "caching" status of decompressed glyph pixel data from block 60 and four bits are employed to identify a decompression procedure that is to be utilized during the decompression of the compressed glyph data segments in compressed glyph block 60. Under certain circumstances, the glyph data segments will not be in a compressed state and this will be indicated by the aforesaid four bits exhibiting all zero states.
As above indicated, all compressed glyph data segments in portion 62 of a compressed glyph block 60 are decompressed employing the same decompression procedure. Thus, glyphs contained in portion 62 are preferably chosen to evidence a similar characteristic which enables them to be compressed using a common compression procedure. This enables compressed glyph data segments contained in portion 62 to be efficiently decompressed by a specially tailored decompression procedure.
Data which guides a decompression routine to perform a tailored decompression procedure is stored in font table 50 in decompression table portion 76 (see FIG. 4). The four bits in Hidx byte 74 identify which data is to be used by a decompression procedure to decompress the compressed glyph data segment in portion 62 of compressed glyph block 60. For instance, each decompression procedure in portion 76 may include a subset of a LempeI-Ziv dictionary (a commonly used compression/decompression procedure) and will contain only dictionary entries that are particularly relevant to the particular glyphs contained in portion 62. In the alternative, portion 76 may only contain offset and length data that enables LempeI-Ziv data stored elsewhere to be accessed.
As above indicated, Hidx byte 74 includes two additional bits which identify the cache status for glyphs that are decompressed from portion 62. Three caching statuses are preferred--but others will be apparent to those skilled in the art. First, decompressed glyph data, may be discarded immediately after use (i.e., no caching). Second, the decompressed glyph data may be stored for a brief interval as it is known that if it is not used within the interval, that it is best to discard the decompressed glyph data. Third, the decompressed glyph data may be used sufficiently often that it is stored on a semi-permanent basis (or until the system is powered-down or otherwise instructed to discard the decompressed glyph data).
There is a tradeoff between the amount of compressed glyph data contained within portion 62 and the decompression time required to access such data and to decompress it. The larger the amount of compressed glyph data contained in portion 62, the more efficient the compression and the greater the memory savings. However, the more compressed glyph data that is contained in portion 62, the longer the time required for its decompression. Further, decompressed glyph data that has been previously cached, will offset some of the conflict. Nevertheless, one skilled in the art will realize that there is a tradeoff to be made in terms of processing time savings and memory--which tradeoff is decided by the user or the system designer.
Each portion 62 of a compressed glyph block 60 need not be the same length. For instance, those glyphs that are most commonly used may be contained in a smaller portion 62 so as to enable more rapid decompression and recapture. Less frequently used glyphs may be contained in larger portions 62 as they will be called upon less often and the added processing time will not be significant.
Returning to Font table 50 of FIG. 3, a final portion thereof is termed the "CTTF table" and its presence in a font table 50 indicates to the using system that glyph table 54 contains compressed glyph blocks 60. CTTF table 78 further contains a value indicating the amount of memory required for the largest decompressed glyph data from a portion 62 of a compressed glyph block 60. This enables the system to allocate sufficient memory in advance of decompression to accommodate all decompressed glyphs from a compressed glyph data portion 62 in a compressed glyph block 60. CTTF table 78 may also include individual values for each compressed glyph block 60, which indicates the amount of memory to be allocated for each block's decompressed glyph data portion 62.
The operation of the data processing system of FIG. 1 will now be described when ROM 18 contains the font table shown in FIGS. 3 and 4. Initially, system 10 receives a data stream which includes plural character codes from a host processor. A received character code is employed by microprocessor 12 to access a glyph index value in CMAP table 36. Those skilled in the art will realize that directory 34 is employed by microprocessor 12 to determine the initial address of CMAP table 36 (and other tables) so as to allow access thereto.
The glyph index that is returned from CMAP table 36 is then employed to access an offset value contained in LOCA table 52 which points into the offset list in a compressed glyph block. The returned offset value provides an address within glyph table 54 that indicates the initial bit position of a compressed glyph block 60 which contains a glyph that corresponds to the received character code.
Prior to accessing a compressed glyph block 60 from glyph table 54, however, the system checks to see if the desired glyph has already decompressed and is already cached in RAM 20 in cache area 44. If not, the compressed glyph block is accessed and stored in RAM 20.
The system reads the Hidx byte value and the CTTF table to determine the size of memory to be allocated for decompressed glyph pixel data and the particular decompression procedure to be accessed from portion 76. Once the decompression procedure is accessed, portion 62 of compressed glyph data segments is subjected to the decompression procedure and the decompressed glyphs are stored in RAM 20.
It will be recalled, that portion 64 of a compressed glyph block 60 contains a list of offset values for each of the glyphs in a compressed glyph block, after decompression. The system employs the offset values to enable access to a desired one of the decompressed glyphs. Once the selected decompressed glyph (or glyphs) are addressed and utilized, the system checks the cache status bits from the Hidx byte and either discards the decompressed glyphs, caches them in cache area 44 on a temporary basis, or on a semipermanent basis.
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 which fall within the scope of the appended claims.

Claims (9)

What is claimed is:
1. An apparatus for providing pixel data representative of glyphs included in a font, said apparatus comprising:
memory means for storing font data and including plural groups of entries, a first group of entries comprising a series of data blocks, each data block including data-compressed forms of plural glyphs, plural glyphs from a data block exhibiting a common attribute such that each data-compressed form glyph is to be decompressed using a same decompression procedure, different data blocks exhibiting different common attributes, said memory means further including a second group of entries for enabling a character code to identify a data block containing a data-compressed form of a glyph and a third group of entries that enable an address to be identified of any data-decompressed form glyph from said data block; and
processor means responsive to a signal stream including a character code, to use said second group of entries to access from said memory means a data block including a glyph corresponding to said character code, and for subjecting all data compressed form glyphs from said data block, including the glyphs which do not correspond to said character code, to said same decompression procedure so that all decompressed pixel data representations of said glyphs are available for use by said processor means, and using said third group of entries to identify a decompressed-data form glyph corresponding to said character code.
2. The apparatus as recited in claim 1, wherein said memory means stores plural decompression procedures and each data block includes an identifier indicating one of said decompression procedures to be employed with data-compressed form glyphs in said data block.
3. The apparatus as recited in claim 1 wherein said common attribute is further indicative that at least some glyphs in a data block are to be combined to create an alphanumeric character.
4. The apparatus as recited in claim 1 wherein said memory means includes a stored value indicating that said stored font data is in a compressed form.
5. The apparatus as recited in claim 4, wherein said entry is a value parameter that indicates a maximum amount of memory needed to accommodate a largest pixel data size for all decompressed glyphs from a data block.
6. The apparatus as recited in claim 5, wherein a presence of said value parameter in said memory means is said entry that indicates said stored font data is in a decompressed form.
7. The apparatus as recited in claim 1 wherein said memory means and processor means comprise portions of a printer.
8. The apparatus as recited in claim 1, further comprising cache means for storing decompressed pixel data from data blocks, each data block in said memory means including an indicator as to whether or not decompressed pixel data from a said block is to be stored in said cache means.
9. The apparatus as recited in claim 8 wherein said indicator further indicates a parameter for said decompressed pixel data which controls when said decompressed pixel data is to be removed from said cache means.
US08/565,934 1994-03-18 1995-12-01 Printer system that stores compressed font glyphs in data blocks and decompressed glyphs in each data block together using same decompression procedure Expired - Lifetime US5577183A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US08/565,934 US5577183A (en) 1994-03-18 1995-12-01 Printer system that stores compressed font glyphs in data blocks and decompressed glyphs in each data block together using same decompression procedure

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US21021094A 1994-03-18 1994-03-18
US08/565,934 US5577183A (en) 1994-03-18 1995-12-01 Printer system that stores compressed font glyphs in data blocks and decompressed glyphs in each data block together using same decompression procedure

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US21021094A Continuation 1994-03-18 1994-03-18

Publications (1)

Publication Number Publication Date
US5577183A true US5577183A (en) 1996-11-19

Family

ID=22782015

Family Applications (1)

Application Number Title Priority Date Filing Date
US08/565,934 Expired - Lifetime US5577183A (en) 1994-03-18 1995-12-01 Printer system that stores compressed font glyphs in data blocks and decompressed glyphs in each data block together using same decompression procedure

Country Status (4)

Country Link
US (1) US5577183A (en)
EP (1) EP0672982B1 (en)
JP (1) JP3672608B2 (en)
DE (1) DE69431101T2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6007261A (en) * 1994-12-02 1999-12-28 Canon Kabushiki Kaisha Printing system with means to extract data type before printing on a recording medium
US6031622A (en) * 1996-05-16 2000-02-29 Agfa Corporation Method and apparatus for font compression and decompression
US20020118885A1 (en) * 2001-02-27 2002-08-29 Bernard Smeets Font compression and retrieval
US6714199B1 (en) * 1996-03-29 2004-03-30 Apple Computer, Inc. Method and apparatus for typographic glyph construction including a glyph server
US6760028B1 (en) * 2000-07-21 2004-07-06 Microsoft Corporation Methods and systems for hinting fonts
GB2399319A (en) * 2003-03-10 2004-09-15 Hewlett Packard Development Co Controlling font usage based on printer identification information
US20080049023A1 (en) * 2006-08-22 2008-02-28 Monotype Imaging, Inc. Method for reducing size and increasing speed for font generation of instructions
US7937658B1 (en) * 2006-04-21 2011-05-03 Adobe Systems Incorporated Methods and apparatus for retrieving font data
US7999950B1 (en) 1998-11-12 2011-08-16 International Business Machines Corporation Method and apparatus for providing backup font support for missing device glyphs
US20130057554A1 (en) * 2011-09-01 2013-03-07 Microsoft Corporation Consolidating glyphs of a font
US9286643B2 (en) 2011-03-01 2016-03-15 Applaud, Llc Personalized memory compilation for members of a group and collaborative method to build a memory compilation
US9317489B2 (en) 2013-06-27 2016-04-19 Adobe Systems Incorporated Vector graphic conversion into fonts
US11481952B2 (en) * 2014-05-29 2022-10-25 Imagination Technologies Limited Allocation of primitives to primitive blocks

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0172581B1 (en) 1996-04-02 1999-03-30 이진기 Transformation and rendering method for progressively renderable font
JP2009282815A (en) * 2008-05-23 2009-12-03 Catalyst Mobile Kk Text composition processing system and portable communication terminal equipped with the same

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4481602A (en) * 1981-04-06 1984-11-06 International Business Machines Corporation Font compression and decompression for character generation
US4942390A (en) * 1987-04-01 1990-07-17 International Business Machines Corporation Method and apparatus for generating a character image
US5020121A (en) * 1990-08-16 1991-05-28 Hewlett-Packard Company Neighborhood block prediction bit compression
US5025396A (en) * 1989-03-21 1991-06-18 International Business Machines Corporation Method and apparatus for merging a digitized image with an alphanumeric character string
US5065447A (en) * 1989-07-05 1991-11-12 Iterated Systems, Inc. Method and apparatus for processing digital data
US5123061A (en) * 1990-05-25 1992-06-16 Hewlett-Packard Company Data compression/decompression method, device and resulting data structure
US5151949A (en) * 1990-10-10 1992-09-29 Fuji Xerox Co., Ltd. System and method employing multiple predictor sets to compress image data having different portions
US5272768A (en) * 1989-02-21 1993-12-21 Hewlett-Packard Company Blank strip font compression method and device, and resulting stored, decompressible font
EP0585522A1 (en) * 1992-09-03 1994-03-09 Hewlett-Packard Company Page printer having automatic font compression
US5303313A (en) * 1991-12-16 1994-04-12 Cartesian Products, Inc. Method and apparatus for compression of images
US5347266A (en) * 1990-03-13 1994-09-13 Hewlett-Packard Company Method and device for accessing shared character patterns, and resulting stored decompressible font structure
US5367620A (en) * 1990-09-25 1994-11-22 Brother Kogyo Kabushiki Kaisha Character output device
US5416898A (en) * 1992-05-12 1995-05-16 Apple Computer, Inc. Apparatus and method for generating textual lines layouts
US5479587A (en) * 1992-09-03 1995-12-26 Hewlett-Packard Company Page printer having adaptive data compression for memory minimization

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4481602A (en) * 1981-04-06 1984-11-06 International Business Machines Corporation Font compression and decompression for character generation
US4942390A (en) * 1987-04-01 1990-07-17 International Business Machines Corporation Method and apparatus for generating a character image
US5272768A (en) * 1989-02-21 1993-12-21 Hewlett-Packard Company Blank strip font compression method and device, and resulting stored, decompressible font
US5025396A (en) * 1989-03-21 1991-06-18 International Business Machines Corporation Method and apparatus for merging a digitized image with an alphanumeric character string
US5065447A (en) * 1989-07-05 1991-11-12 Iterated Systems, Inc. Method and apparatus for processing digital data
US5347600A (en) * 1989-07-05 1994-09-13 Interated Systems, Inc. Method and apparatus for compression and decompression of digital image data
US5347266A (en) * 1990-03-13 1994-09-13 Hewlett-Packard Company Method and device for accessing shared character patterns, and resulting stored decompressible font structure
US5123061A (en) * 1990-05-25 1992-06-16 Hewlett-Packard Company Data compression/decompression method, device and resulting data structure
US5020121A (en) * 1990-08-16 1991-05-28 Hewlett-Packard Company Neighborhood block prediction bit compression
US5367620A (en) * 1990-09-25 1994-11-22 Brother Kogyo Kabushiki Kaisha Character output device
US5151949A (en) * 1990-10-10 1992-09-29 Fuji Xerox Co., Ltd. System and method employing multiple predictor sets to compress image data having different portions
US5303313A (en) * 1991-12-16 1994-04-12 Cartesian Products, Inc. Method and apparatus for compression of images
US5416898A (en) * 1992-05-12 1995-05-16 Apple Computer, Inc. Apparatus and method for generating textual lines layouts
EP0585522A1 (en) * 1992-09-03 1994-03-09 Hewlett-Packard Company Page printer having automatic font compression
US5479587A (en) * 1992-09-03 1995-12-26 Hewlett-Packard Company Page printer having adaptive data compression for memory minimization

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6007261A (en) * 1994-12-02 1999-12-28 Canon Kabushiki Kaisha Printing system with means to extract data type before printing on a recording medium
US20040160443A1 (en) * 1996-03-29 2004-08-19 Beaman Alexander B. Method and apparatus for typographic glyph construction including a glyph server
US7697000B2 (en) 1996-03-29 2010-04-13 Apple Inc Method and apparatus for typographic glyph construction including a glyph server
US6714199B1 (en) * 1996-03-29 2004-03-30 Apple Computer, Inc. Method and apparatus for typographic glyph construction including a glyph server
US6031622A (en) * 1996-05-16 2000-02-29 Agfa Corporation Method and apparatus for font compression and decompression
US7999950B1 (en) 1998-11-12 2011-08-16 International Business Machines Corporation Method and apparatus for providing backup font support for missing device glyphs
US20110216367A1 (en) * 1998-11-12 2011-09-08 International Business Machines Corporation Method and Apparatus for Providing Backup Font Support for Missing Device Glyphs
US20040160444A1 (en) * 2000-07-21 2004-08-19 David Salesin Methods and systems for hinting fonts
US6760028B1 (en) * 2000-07-21 2004-07-06 Microsoft Corporation Methods and systems for hinting fonts
US20050151741A1 (en) * 2000-07-21 2005-07-14 Microsoft Corporation Methods and systems for hinting fonts
US20050151740A1 (en) * 2000-07-21 2005-07-14 Microsoft Corporation Methods and systems for hinting fonts
US20050190187A1 (en) * 2000-07-21 2005-09-01 Microsoft Corporation Methods and systems for hinting fonts
US7068276B2 (en) 2000-07-21 2006-06-27 Microsoft Corporation Methods and systems for hinting fonts
US7095411B2 (en) 2000-07-21 2006-08-22 Microsoft Corporation Methods and systems for hinting fonts
US7095412B2 (en) 2000-07-21 2006-08-22 Microsoft Corporation Methods and systems for hinting fonts
US7129948B2 (en) * 2000-07-21 2006-10-31 Microsoft Corporation Methods and systems for hinting fonts
US20020118885A1 (en) * 2001-02-27 2002-08-29 Bernard Smeets Font compression and retrieval
GB2399319A (en) * 2003-03-10 2004-09-15 Hewlett Packard Development Co Controlling font usage based on printer identification information
US7262869B2 (en) 2003-03-10 2007-08-28 Hewlett-Packard Development Company, L.P. Controlling font usage based on printer identification information
GB2399319B (en) * 2003-03-10 2005-11-23 Hewlett Packard Development Co Controlling font usage based on printer identification information
US20040179216A1 (en) * 2003-03-10 2004-09-16 Curtis Reese Controlling font usage based on printer identification information
US7937658B1 (en) * 2006-04-21 2011-05-03 Adobe Systems Incorporated Methods and apparatus for retrieving font data
US20080049023A1 (en) * 2006-08-22 2008-02-28 Monotype Imaging, Inc. Method for reducing size and increasing speed for font generation of instructions
US7719537B2 (en) * 2006-08-22 2010-05-18 Monotype Imaging Inc. Method for reducing size and increasing speed for font generation of instructions
US9286643B2 (en) 2011-03-01 2016-03-15 Applaud, Llc Personalized memory compilation for members of a group and collaborative method to build a memory compilation
US10346512B2 (en) 2011-03-01 2019-07-09 Applaud, Llc Personalized memory compilation for members of a group and collaborative method to build a memory compilation
US20130057554A1 (en) * 2011-09-01 2013-03-07 Microsoft Corporation Consolidating glyphs of a font
US9245361B2 (en) * 2011-09-01 2016-01-26 Microsoft Technology Licensing, Llc Consolidating glyphs of a font
US9317489B2 (en) 2013-06-27 2016-04-19 Adobe Systems Incorporated Vector graphic conversion into fonts
US11481952B2 (en) * 2014-05-29 2022-10-25 Imagination Technologies Limited Allocation of primitives to primitive blocks

Also Published As

Publication number Publication date
EP0672982A1 (en) 1995-09-20
DE69431101D1 (en) 2002-09-05
EP0672982B1 (en) 2002-07-31
DE69431101T2 (en) 2002-11-28
JPH07306670A (en) 1995-11-21
JP3672608B2 (en) 2005-07-20

Similar Documents

Publication Publication Date Title
US5577183A (en) Printer system that stores compressed font glyphs in data blocks and decompressed glyphs in each data block together using same decompression procedure
US5940581A (en) Dynamic font management for large character sets
EP0585522B1 (en) Page printer having automatic font compression
US20040136033A1 (en) Apparatus and method for managing and using reusable document components during the process of dynamic document construction
US5375204A (en) System and method for efficient binary encoding of procedures in a document processing language
KR100252444B1 (en) Information processing apparatus
JP2500976B2 (en) Printing method in data processing system
CA2168284C (en) Apparatus and associated method for compressing and decompressing digital data
US5999709A (en) Printer memory boost
US6574001B2 (en) Managing font data in a print job
KR100392548B1 (en) Method and apparatus for adaptive adjustment of cache allocation for storage of font data
JPS6214689A (en) Character output controller
US6275300B1 (en) Simplified method to print inherited pages in a page printer
KR940009718B1 (en) Character resource management system
JPS58195279A (en) Device for outputting character
EP0874305B1 (en) Integrated display list and building tool for multiple personalities
JP3927691B2 (en) Image forming system, information processing apparatus, transmission method, and recording medium
US7835025B2 (en) Processing system and method of processing pattern bitmap data for printer
JP3473287B2 (en) Font management device
JPH0496095A (en) Font-free raster image processing system
JP3166222B2 (en) Character data generator and method
JPH0916355A (en) Information processor and storage medium for storing font down load managing program
KR19980019748A (en) How to Use Printer Memory Efficiently
JP3507387B2 (en) Character printing processing method by host computer and printer driver
JPH0292652A (en) Printer controller

Legal Events

Date Code Title Description
STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

FPAY Fee payment

Year of fee payment: 4

AS Assignment

Owner name: HEWLETT-PACKARD COMPANY, COLORADO

Free format text: MERGER;ASSIGNOR:HEWLETT-PACKARD COMPANY;REEL/FRAME:011523/0469

Effective date: 19980520

FPAY Fee payment

Year of fee payment: 8

FPAY Fee payment

Year of fee payment: 12

REMI Maintenance fee reminder mailed