Hi, I am extracting fonts from EMF spool files. The Enhanced Metafile Spool Format Specification (http:// msdn.microsoft.com/en-us/library/cc204694.aspx) defines 2 records for TrueType font subset and delta: EMRI_SUBSET_FONT and EMRI_DELTA_FONT I have no problem extracting the data for those 2 records. My problem is I do not know what to do with the extracted data, and the spec says nothing about that. The only thing that is said is: "An EMRI_DELTA_FONT record defines new glyphs to be merged with data from a preceding EMRI_SUBSET_FONT record" How do I merge the data from those 2 records? Thanks in advance for your help Charles
Sounds like their documentation on this is every bit as useful as the rest of the enhanced metafile documentation (which sucks). I spent a lot of time reverse-engineering EMR_ records, but I don't handle EMRI_ records...but you could take my MetaFile Explorer and play with it a bit if you need to look at the internals... Otherwise, I don't really have a clue. joe On Fri, 18 Jul 2008 11:02:40 -0700 (PDT), delasac@ca.objectiflune.com wrote: >Hi, >I am extracting fonts from EMF spool files. > >The Enhanced Metafile Spool Format Specification (http:// >msdn.microsoft.com/en-us/library/cc204694.aspx) defines 2 records for >TrueType font subset and delta: > >EMRI_SUBSET_FONT and EMRI_DELTA_FONT > >I have no problem extracting the data for those 2 records. My problem >is I do not know what to do with the extracted data, and the spec says >nothing about that. >The only thing that is said is: "An EMRI_DELTA_FONT record defines new >glyphs to be merged with data from a preceding EMRI_SUBSET_FONT >record" > >How do I merge the data from those 2 records? > >Thanks in advance for your help > >Charles
Ok Joe, thanks. I'll have a look at your MetaFile explorer. I also tried to merge font subset and font delta using the CreateFontPackage and MergeFontPackage APIs. This is my best bet so far, but I haven't been able to make it work. Charles
You need to check out the TrueType specs. And implement the merging yourself. You might want to have a look at the code from FreeType project. You might also get lucky with MS Font Embedding Services Library (MergeFontPackage) but I have not tried that. -- Christoph Lindemann Undocumented Printing http://www.undocprint.org/ wrote in message news:abdbc22d-bab5-439b-8c2d-2bf1c0fb0644@m45g2000hsb.googlegroups.com... > Hi, > I am extracting fonts from EMF spool files. > > The Enhanced Metafile Spool Format Specification (http:// > msdn.microsoft.com/en-us/library/cc204694.aspx) defines 2 records for > TrueType font subset and delta: > > EMRI_SUBSET_FONT and EMRI_DELTA_FONT > > I have no problem extracting the data for those 2 records. My problem > is I do not know what to do with the extracted data, and the spec says > nothing about that. > The only thing that is said is: "An EMRI_DELTA_FONT record defines new > glyphs to be merged with data from a preceding EMRI_SUBSET_FONT > record" > > How do I merge the data from those 2 records? > > Thanks in advance for your help > > Charles