ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* palatino / input needed
@ 2000-03-15 14:35 Hans Hagen
  2000-03-16  8:27 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Hagen @ 2000-03-15 14:35 UTC (permalink / raw)


Hi all, 

I'm in the process of making a file font-ppl.tex, being a definition file
for the palatino. For the moment the content is: 

\definefontsynonym [Palatino-Roman]       [uplr8r]  [encoding=ec]
\definefontsynonym [Palatino-Italic]      [uplri8r] [encoding=ec]
\definefontsynonym [Palatino-Slanted]     [uplro8r] [encoding=ec]
\definefontsynonym [Palatino-Bold]        [uplb8r]  [encoding=ec]
\definefontsynonym [Palatino-BoldItalic]  [uplbi8r] [encoding=ec]
\definefontsynonym [Palatino-BoldSlanted] [uplbo8r] [encoding=ec]

\definefontsynonym [Serif]            [Palatino-Roman]
\definefontsynonym [SerifBold]        [Palatino-Bold]
\definefontsynonym [SerifItalic]      [Palatino-Italic]
\definefontsynonym [SerifSlanted]     [Palatino-Slanted]
\definefontsynonym [SerifBoldItalic]  [Palatino-BoldItalic]
\definefontsynonym [SerifBoldSlanted] [Palatino-BoldSlanted]
\definefontsynonym [SerifCaps]        [Palatino-Roman]

\definebodyfont 
  [14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt] 
  [rm] 
  [default]

\endinput

When testing this file with: 

\setuplayout
  [topspace=1cm,backspace=2cm,
   header=0pt,footer=0pt,height=middle,
   width=middle]

\starttext

\setupbodyfont[cmr,9pt] \showencoding

\setupbodyfont[ppl,9pt] \showencoding

\stoptext

One gets an overview of the glyphs, which in itself can be worth a try,
since it demonstrates one of the tracing options. Somehow, these fonts
don't match the ec encoding as perfect as they are supposed to. Does
someone has better experiences? (accented chars etc come out ok.) 

My pdftex map file has the following entries: 

uplr8r                   <uplr8a.pfb  <8r.enc
uplri8r                  <uplri8a.pfb <8r.enc
uplb8r                   <uplb8a.pfb  <8r.enc
uplbi8r                  <uplbi8a.pfb <8r.enc
uplro8r ".167 SlantFont" <uplr8a.pfb  <8r.enc
uplbo8r ".167 SlantFont" <uplb8a.pfb  <8r.enc

pplb8r  Palatino-Bold                          <pplb8a.pfb  8r.enc
pplbi8r Palatino-BoldItalic                    <pplbi8a.pfb 8r.enc
pplbo8r Palatino-Bold ".167 SlantFont"         <pplb8a.pfb  8r.enc
pplbu8r Palatino-BoldItalic "-.1763 SlantFont" <pplb8a.pfb  8r.enc
pplr8r  Palatino-Roman                         <pplr8a.pfb  8r.enc
pplri8r Palatino-Italic                        <pplri8a.pfb 8r.enc
pplro8r Palatino-Roman  ".167 SlantFont"       <pplr8a.pfb  8r.enc
pplru8r Palatino-Italic " -.1763 SlantFont"    <pplr8a.pfb  8r.enc

Since I want to add the font definition file to distribution, I need to be
sure that the original as well as berry names and encodings are ok. So, any
input is welcome. 

While testing this a \SS (german s) showed up, which I repaired. (I had to
move a def to the enco-ini file instead of the font-ini file.). This
probably also solves some bugs reported with this s. 

The next few months, I will also implement pdftex hz support. In the
process I want to do some tests (also with other optimizations). If people
don't mind, I'll ask for input and comments on this list.  

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: palatino / input needed
  2000-03-15 14:35 palatino / input needed Hans Hagen
@ 2000-03-16  8:27 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2000-03-16  8:27 UTC (permalink / raw)
  Cc: ntg-context

>>>>> "Hans" == Hans Hagen <pragma@wxs.nl> writes:

    Hans> \definefontsynonym [Palatino-Roman] [uplr8r] [encoding=ec]

etc...

    Hans> options. Somehow, these fonts don't match the ec encoding as
    Hans> perfect as they are supposed to. Does someone has better
    Hans> experiences? (accented chars etc come out ok.)

These tfms are not EC encoded, but 'raw' LaTeX. 

8r.enc is an encoding that gives you (almost) all of the glyphs in a
PFB file in a (sort of) reasonable position, and the EC encoding is
built as a virtual font on top of that (VFs can't reach unencoded
glyphs in the font, so it has to be re-encoded first). 

The 'real' EC tfms have names that end in '8t' (I doubt that you have
those for the URW files, one normally uses the Adobe metrics). I hope
this is clear enough. Below is my version of the Palatino defs.

Greetings, Taco

%D \module
%D   [     file=font-pal,
%D      version=2000.3.15,
%D        title=\CONTEXT\ Font Macros,
%D     subtitle=Postscript font Palatino + mathpple,
%D       author=Taco Hoekwater,
%D         date=\currentdate]

%D This is the text font

\definefontsynonym [Palatino-Roman]      [pplr8t]  [encoding=ec]
\definefontsynonym [Palatino-Italic]     [pplb8t]  [encoding=ec]
\definefontsynonym [Palatino-Slanted]    [pplri8t] [encoding=ec]
\definefontsynonym [Palatino-Bold]       [pplro8t] [encoding=ec]
\definefontsynonym [Palatino-BoldItalic] [pplbi8t] [encoding=ec]
\definefontsynonym [Palatino-BoldSlanted][pplbo8t] [encoding=ec]
\definefontsynonym [Palatino-RomanCaps]  [pplrc8t] [encoding=ec]

\definefontsynonym [Serif]            [Palatino-Roman]
\definefontsynonym [SerifBold]        [Palatino-Bold]
\definefontsynonym [SerifItalic]      [Palatino-Italic]
\definefontsynonym [SerifSlanted]     [Palatino-Slanted]
\definefontsynonym [SerifBoldItalic]  [Palatino-BoldItalic]
\definefontsynonym [SerifBoldSlanted] [Palatino-BoldSlanted]
\definefontsynonym [SerifCaps]        [Palatino-RomanCaps]

\definebodyfont 
    [14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt]
    [rm]
    [default]

%D This is the fontinst 'mathpple'

\definefontsynonym [MathRoman]          [zppler7t]
\definefontsynonym [MathExtension]      [zppler7v]
\definefontsynonym [MathItalic]         [zppler7m]
\definefontsynonym [MathSymbol]         [zppler7y]

%D These next 7 are for the \type{\boldmath} that is provided
%D by the beta math module.

\definefontsynonym [ExtraMathRoman]     [zppleb7t]
\definefontsynonym [ExtraMathExtension] [zppler7v]
\definefontsynonym [ExtraMathItalic]    [zppleb7m]
\definefontsynonym [ExtraMathSymbol]    [zppleb7y]

\definefontsynonym [ExtraMathAlpha]     [MathAlpha]
\definefontsynonym [ExtraMathBeta]      [MathBeta]
\definefontsynonym [ExtraMathNoname]    [MathNoname]

\definebodyfont 
    [14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt]
    [mm]
    [default]

%D Some minor math fixes for Palatino 

\medmuskip=3.5mu plus 1mu minus 1mu

\def\joinrel{\mathrel{\mkern-3.45mu}}

%D If \type{\hbar} appears ugly, then you probably 
%D loaded font-ams after this file.

\def\hbar{{\mathchar'26\mkern-7muh}}

\let\varrho\rho
\let\varsigma\sigma    

%D correction for courier:

\def\controlspace%
  {\hbox{\font\next=cmtt10 at \bodyfontsize\next\char32}}

\endinput


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-03-16  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-03-15 14:35 palatino / input needed Hans Hagen
2000-03-16  8:27 ` Taco Hoekwater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).