Re: Unable to use URW Garamond No. 8 Type 1 typeface
[email protected] Sun, 28 May 2006 13:02:40 -0300
| Newsgroups | gmane.comp.tex.tetex.general |
|---|---|
| Message-ID | <[email protected]> |
On 5/27/06, D. R. Evans <[email protected]> wrote: > Robin Fairbairns said the following at 05/27/2006 12:20 PM : > > >> Actually, as I was thinking about this overnight, I decided that I don't > >> understand why it's ever trying to build a bit-mapped font. Surely pdfTeX > >> can simply use the .pfb file directly. I guess I simply don't understand > >> how pdfTeX and type 1 fonts work at all, and I need to google around to > >> find a good explanation. If you play with the encodings in the example below, pdftex will try to generate .tfm's (and fail), but not bitmaps: kpathsea: Running mktextfm ugmr8z mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ugmr8z This is METAFONT, Version 2.71828 (Web2C 7.5.5) kpathsea: Running mktexmf ugmr8z ! I can't find file `ugmr8z'. <*> ...:=ljfour; mag:=1; nonstopmode; input ugmr8z Please type another input file name ! Emergency stop. <*> ...:=ljfour; mag:=1; nonstopmode; input ugmr8z Transcript written on mfput.log. grep: ugmr8z.log: No such file or directory mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input ugmr8z' failed to make ugmr8z.tfm. kpathsea: Appending font creation commands to missfont.log. > > it's trying to build a bitmap as a last resort. it can't find a .pfb, > > so it (vainly, as it proves) hopes there will be a bitmap font it can > > use. Are the pfb files really in the .map file? This might be a good time to put the map files into the .tex file using the new primitives ("texdoc pdftex-s.pdf"): \pdfmapfile{+myfont.map} \pdfmapline{+ptmri8r Times-Italic <8r.enc <ptmri8a.pfb} > Oh, I see. Thank you for explaining that. > > > have you tried *8t fonts instead of *8a fonts, yet? > > > > See prior e-mail from a few minutes ago. No joy. The following example produces a PDF in which non-ascii glyphs look "right" for fonts installed using TL2005's getnonfreefonts. $cat - <<EOF try-ugm.tex \nopagenumbers \input ofs \ofsdeclarefamily [GaramondNo8] {% -------------------- URW Garamond No 8 \loadtextfam (Roman) ugmr\fotenc;% (Italic) ugmri\fotenc;% (Medium) ugmm\fotenc;% (MediumItalic) ugmmi\fotenc;\defaultextraenc;% % \def\TeX{T\kern-.08em\lower.3333ex\hbox{E}\kern-0.09emX}% \modifyenc 8z:badaccents;% \modifyenc 8t:losschars;% \modifyenc 8c:poor;% } %showfonts \loadingenc=1 \def\fotenc{8t} \setfonts [GaramondNo8/10pt] \rm Testing {\tt ugmr} \vskip 2cm \input story \end EOF $ pdftex try-ugm.tex This is pdfTeXk, Version 3.141592-1.40.0-beta-20060213 (Web2C 7.5.5) \write18 enabled. %&-line parsing enabled. entering extended mode (./try-ugm.tex (/usr/local/texlive/2005/texmf-dist/tex/generic/ofs/ofs.tex OFS (Olsak's Font System) based on plain initialized. <May 2004> (/usr/local/texlive/2005/texmf-dist/tex/generic/ofs/ofsdef.tex)) (/usr/local/texlive/2005/texmf-dist/tex/generic/ofs/ofs-8t.tex) (/usr/local/texlive/2005/texmf-dist/tex/generic/ofs/ofs-8c.tex) (./story.tex [1{/home/gwhite/.texlive2005/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] ) ) </usr/local/texlive/2005/texmf-dist/fonts/type1/bluesky/cm/cmsl10.pfb>{/usr/loc al/texlive/2005/texmf-dist/fonts/enc/dvips/base/8r.enc}</home/gwhite/texmf/font s/type1/urw/garamond/ugmri8a.pfb></usr/local/texlive/2005/texmf-dist/fonts/type 1/bluesky/cm/cmtt10.pfb></home/gwhite/texmf/fonts/type1/urw/garamond/ugmr8a.pfb > Output written on try-ugm.pdf (1 page, 37667 bytes). Transcript written on try-ugm.log. $ pdffonts try-ugm.pdf name type emb sub uni object ID ------------------------------------ ------------ --- --- --- --------- LNWQVM+GaramondNo8-Reg Type 1 yes yes no 6 0 HJXXBO+CMTT10 Type 1 yes yes no 9 0 TUATGG+GaramondNo8-Ita Type 1 yes yes no 12 0 PRVKNU+CMSL10 Type 1 yes yes no 15 0 -- George N. White III <[email protected]> Head of St. Margarets Bay, Nova Scotia