Fonts & Character SetsUsing True Type fonts in LaTeX

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
Skazz
Posts: 2
Joined: Wed Dec 09, 2009 7:05 pm

Using True Type fonts in LaTeX

Post by Skazz »

Dear friends of LaTeX

I'm trying to design a scientific Poster in Latex. Due to the new corporate design of the university I have to obey some quite restrictive rules for the Layout. Among others the fonts, which only exist as *.ttf files.

I'm using some packages e.g. textpos, which are afaik not compatible with XeTeX. So this way won't work for me.

On the other hand, the files will be compiled on different machines running Linux or Solaris which I don't have administrative access to. So I will probably not be able to install the fonts to the texmf-tree.

Let's have a short look at my approach so far:
  1. I renamed the *.ttf files according to the Karl-Berry-Scheme
  2. I created the *.pfb and *.afm files using

    Code: Select all

    for f in *.ttf; do ttf2pt1 -a -b $f; done
  3. I created the *.fd *.vpl and *.pl files by executing a file containing

    Code: Select all

    \input fontinst.sty
    \latinfamily{frf}{}
    \bye
    via tex
  4. I created the *.tfm and *.vf files by

    Code: Select all

    for f in *.pl; do pltotf $f; done
    for f in *.vpl; do vptovf $f; done
    
  5. And finally I created a .map file for the font by hand
For this approach I used the howto from http://www.dalug.org/fileadmin/veransta ... uetype.pdf (german)

Since I don't want to copy the files to the texmf-tree as mentioned above, is there any way to tell LaTeX, where to find the new fonts?

I tried

Code: Select all

\renewcommand\rmdefault{frf}
and

Code: Select all

\font\myfont=frfr8a at 10pt
to use the font in a test document. In the first case latex doesnt find the font, in the second case dvips doesnt find it.

[edit]
Sorry, I should have mentioned, that I have placed the test.tex file in the same directory as the font files. And I have to correct; it's dvips which doesnt find the font files in both situations.
[/edit]

I would be very glad, if you could give me a hint, how to solve this problem.

Thank you in advance, Greetings!
Skazz

PS: If you need further information e.g. on error messages please tell me.
PPS: Sorry for my English, if I expressed myself unclear, please tell me.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply