TeX Live and MacTeXProblem with converted TTF Font

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
MrOffline
Posts: 1
Joined: Wed Oct 24, 2012 1:31 pm

Problem with converted TTF Font

Post by MrOffline »

I have a problem with using a font. I installed the font via the installfont-tl script but cant use it to create the document. When I add the \usepackage{$fontname} I get an error which I can't really explain to myself:

Code: Select all

! LaTeX Error: Missing begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.9 n
 \expandafter\ifx\csname Sfpr@scale\endcsname\relaxn  \let\Sfpr@@scale\@...

You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

)
! Incomplete ifx; all text was ignored after line 9.
<inserted text> 
            fi 
l.4 \begin{document}

The file ended while I was skipping conditional text.
This kind of error happens when you say `\if...' and forget
the matching `\fi'. I've inserted a `\fi'; this might work.
I tried to find a solution but I couldn't find one. The rest of error log is in the attachment file. The »fingerpaint« package file (font style file) looks likes this:

Code: Select all

\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{fingerpaint}[2010/03/05 v1.0 FingerPaint-Regular]%
\RequirePackage{textcomp}%
\RequirePackage{xkeyval}%
\define@key{fingerpaint.sty}{scaled}[1.0]%
{%
  \def\Sfpr@scale{#1}%
}%
\define@key{fingerpaint.sty}{leading}[1.0]%
{%
  \linespread{#1}%
}%
\ExecuteOptionsX{scaled}%
\ProcessOptionsX\relax%
\renewcommand*{\rmdefault}{fpr}%
\newcommand\FFfpr{\fontfamily{fpr}\fontseries{m}\fontshape{n}\selectfont}%
\endinput%
Hope someone is able to help me with this Problem.

Some input from my side: I am using the script by editing the default values in the script cause some parameters while calling the script seem to be ignored while calling the script. So if you cant get it to work you can just edit the default values in the script file itself. That will work. Also if you have problems with converting the TTF files just do it yourself with the ttf2pt1 script.

Code: Select all

ttf2pt1 -a -b -l adobestd $filename
Thanks in advance
Attachments
blahblah.log
(10.53 KiB) Downloaded 455 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Post Reply