[WinPrnDev] Re: Spool file font data

  • From: "Miles Kilometers" <mileskilometers@xxxxxxxxxxx>
  • To: winprndev@xxxxxxxxxxxxx
  • Date: Tue, 15 May 2007 17:17:56 -0700

 
Thanks for the quick reply. I'm afraid my questions weren't clear enough, so
please allow me to clarify. 

a) There are two series of font-related SRT_* records: the "ordinary" ones
such as SRT_FONT1, etc, and the extended ones such as SRT_EXT_FONT1, etc.
Only the extended font records  *seem* to be used nowadays, so the question
is whether the "ordinary" non-extended records are ever used anymore at all
in Windows 2000 onward, and if not, what OS version marks the switchover? Or
is that dependent on some other OS feature? 

b) The font-related SRT_EXT_* records actually point to a structure that for
example looks like this for a SRT_EXT_FONT1:
struct for TrueType font {
  DWORD 2  // a type code, have seen 2 TrueType, 4 PS Type 1, 7 subsetted
TrueType, ...
  DWORD 0x8e64 //(length of font data + 0x10)
  DWORD 0  //unsure, maybe hi-order of above length? Have only ever seen 0.
  DWORD 1  //seems to be count of parts below, normally 1 but is 2 for
PostScript Type 1
  DWORD 0x8e54 //length of font data, or length of PFM only if PS Type 1
font
  DWORD 0  //when count == 2, seems to be length of PFM + PFB if PS Type 1
  DB <...font data...>[]
}
These fields &layouts differ somewhat for TrueType, PostScript
(SRT_EXT_FONT2), subsetted fonts (SRT_EXT_FONT_SUB1, rec format is very
different), etc. For example, the 1st DWORD seems to be 4 for a PS Type 1
font, 7 for a subsetted TrueType font. Has anyone documented the various
format variations and special numbers (e.g. the 2 in the first DWORD shown
above, the 0 in the 3rd DWORD, etc)? 

c) SRT_EXT_FONT1 seems to be used for Truetype, and SRT_EXT_FONT2 for PS
Type1. Is that the case, or am I over-generalizing from my observations?
Likewise, SRT_EXT_FONT_SUB1 seems to be for subsetted TrueType. Is the
purpose of SRT_EXT_FONT_SUB2 known? 

Thanks, 

Miles


----------------------------------------------------------------------------
From:  "Christoph Lindemann" <Christoph.Lindemann@xxxxxxxxxxxxxxxxxxx>
Reply-To:  winprndev@xxxxxxxxxxxxx
To:  <winprndev@xxxxxxxxxxxxx>
Subject:  [WinPrnDev] Re: Spool file font data
Date:  Tue, 15 May 2007 10:16:43 +0200
>>a) Are the Font_data SPL records used any more, or is that=20
>>pre-win2k usage?=20
>
>The font embedding takes place when printing to a shared printer. The
>spooler does not need to embed fonts when printing on the local machine.
>However when printing to a remote printer, the fonts are embedded.
>This is of course depending on where the job is formatted. When data is
>send between 2 machines with the same OS installed, typically the EMF
>data is send to the "print server" where it is formatted to RAW using
>the driver. Else the job might get formatted at the "client", and the
>RAW data is send to the "print server"
>
>>b) Has anyone documented the font data record format=20
>>embedded in GDI comments?=20
>
>The pointers (SMR_EXTFONT) in the SPL files actually point to the font
>data embedded in the EMF files.
>
>>c) What is the difference between Font 1 vs. 2 types?
>
>You can read more about the different types at:
>http://www.undocprint.org/formats/font_formats
>
>---
>Questions? First check the UndocPrint pages at
http://undocprint.printassociates.com/winspool
>
>To unsubscribe, visit the List Server page at
//www.freelists.org/list/winprndev


----------------------------------------------------------------------------
Like the way Microsoft Office Outlook works? You?ll love Windows Live
Hotmail.[1] 

--- Links ---
   1 http://g.msn.com/8HMAENUS/2743??PS=47575
---
Questions? First check the UndocPrint pages at 
http://undocprint.printassociates.com/winspool

To unsubscribe, visit the List Server page at 
//www.freelists.org/list/winprndev

Other related posts: