Re: Font specification question (for modifying plftable.h)
Chris Liddell <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <CAGy8pWrZ977X=k2DODtepdaBhQPEd8mvOiocbn+RtxN-=Uo0zQ@mail.gmail.com> |
We don't really support modifying the font table, since it effectively breaks the printer compatibility that we support. I'll point our resident PCL expert at this, and hopefully he'll reply. Chris On 28 February 2015 at 20:42, Edward Mendelson <[email protected]> wrote: > Is there documentation for the font descriptors in plftable.h? > > The GhostPDL documentation here - > > http://svn.ghostscript.com/ghostscript/trunk/ghostpdl/doc/ghostpdl.pdf > > - says > > "To use a new set of TrueType fonts requires modifying the C code in the > fi le pl/plftable.c. The C structure > resident table contains a list of Windows TrueType font names. In the > released package these names will > correspond with the Windows True Type font names in the URW font set. To > use a di fferent font set these > names must be replaced with the new font names and the code (at least the > plftable.c module) should be > recompiled and linked." > > I've had no trouble adding monospace fonts to plftable.h (I use a licensed > Prestige Elite TTF), but I'm baffled by one thing about proportional fonts. > The code in plftable.h includes lines like this for each font (this example > is from Albertus Medium): > > {0, 1, {313.0, 720000.0 / 313.0}, 0, REGULAR, MEDIUMBOLD, 4362, 27}, > > My question is: what does "313.0" measure? And, since I'm asking, what > does 720000 measure? (I understand that the printer internal unit is 1/7200 > inch, but I don't know whether this is another way of indicating that same > unit.) > > Many thanks for any help with this. > > Edward Mendelson > Contributing Editor > PC Magazine/PCMag.com > > > _______________________________________________ > gs-devel mailing list > [email protected] > http://ghostscript.com/cgi-bin/mailman/listinfo/gs-devel > _______________________________________________ gs-devel mailing list [email protected] http://ghostscript.com/cgi-bin/mailman/listinfo/gs-devel