[gs-devel] Another enhancement to gs_font structrure

L. Peter Deutsch ghost at aladdin.com
Mon Sep 2 21:04:01 PDT 2002


> I believe that fonts in PDF to be identified through page Resources
> dictionary and Fonts array, rather than by FontName's. Doing so, suffixes
> are not needed at all.

Yes, that's right.

> Interpreting a page, PDF interpreter should define its fonts and put their
> references to a special dictionary associated with the page (I didn't
> check whether it is already done), using resource names as keys (i.e. the
> names used in Font dictionary of the source PDF).  When a font to be
> selected, font dictionary to be taken from the special dictionary by the
> resource name, and 'setfont' to be applied with it.  In this logics there
> is no need neither for 'findfont', nor for FontName.  Therefore we don't
> need to deconflict FontName's [in the PDF interpreter].

I like this very much.  It's better than what I suggested, and better than
the current code.

The only exception to this approach is the built-in 14 fonts, when they are
not embedded.  Also, a little special handling is needed for the
DescendantFont of a Type 0 font.

-- 

L. Peter Deutsch     |    Aladdin Enterprises   |  203 Santa Margarita Ave.
ghost at aladdin.com    |  http://www.aladdin.com  |  Menlo Park, CA 94025

   No government censorship of software!  Oppose the CBDTPA!  www.eff.org



More information about the gs-devel mailing list