[pdftex] Problem with TrueType fonts - error "Bad metric"
The Thanh Han
hanthethanh at myrealbox.com
Sat Feb 19 04:41:54 CET 2005
Hi,
errors "bad metric..." doesn't have much to do with ttf; it's likely a
problem in the process you created the tfm.
it would be helpful if you can give a concrete example: all steps you
have done with a particular ttf font and how it failed. A tarball of all
relevant files is also handy.
Regards,
Thanh
On Fri, Feb 18, 2005 at 01:45:27PM +0100, Stefan Ohletz wrote:
> Hello,
>
> I just tried to install some TrueType fonts with MikTeX 2.4 (Windows
> XP). I'm using the Context Macro package. I was able to install several
> free TrueType fonts I had downloaded, using the following commands:
>
> ttf2afm -e 8r.enc -o artbrush.afm artbrush.ttf
> texfont --en=8r --ve=truetype --co=all --makepath --install
>
> I think I have understood how to include the generated .map files, where
> to copy the .ttf files, etc. - at least everything works for this
> particular font file and others, too.
>
> But there are some other .ttf files I have problems with. One error
> message I'm getting is that pdftex wasn't able to open the corresponding
> ..ttf file at all. (It seems to use the .tfm file, though.) When I'm
> trying to open the generated .pdf file it contains errors and Acrobat
> Reader hangs.
>
> Another error message I'm getting with a font I downloaded from
> www.freefont.de (you can try it yourself) is "...=sheli at 11.0pt not
> loadable: Bad metric (TFM) file".
>
> Instead of using texfont, I also tried to generate all necessary files
> myself and to use another encoding (T1-WGL4). I closely followed the
> article at
>
> http://www.tug.org/tex-archive/info/german/MiKTeX-WinEdt-TrueType-Anleitung/ttf.htm
>
> It didn't change much, though now I'm able to use the font when
> generating a .dvi version of my document. But I'm getting exactly the
> same error as before in case of the .pdf version.
>
> Am I doing anything wrong or is this some known bug of pdftex? Can
> anyone reproduce this error message with the Helium font I referred to
> above? To be honest, I don't have a clue what role encodings play when
> installing font files. Could this be a source of errors, perhaps?
>
> Of course, regarding the Helium font I could also use the Type1 version,
> which works fine on my system, but what I intended in fact was to buy
> the MegaFont XXL collection from Softmaker, which only includes TrueType
> fonts. Having all this trouble with TeX and TrueType fonts, I'm now
> beginning to doubt if such a buy would be wise.
>
> Thanks for any help or comments in advance,
> Stefan
>
> _______________________________________________
> pdftex mailing list
> pdftex at tug.org
> http://tug.org/mailman/listinfo/pdftex
>
More information about the pdftex
mailing list