I created a hobby font with metafont. I would like to include some accents in the font, but I am not sure what is the standard way for accomplishing that (gogle was not very helpful), so that the font works with LaTeX (pdflatex, if needs be).
How can I load the font in LaTeX, so that it is used for characters which it defines, and some fallback font (with warning) is used for the rest? (in plain, I do just
\font\myFont=myFont \myFont
, but characters which are not defined are not typeset at all)How to define shapes of accents, placed atop glyphs with
\'
, ...? I imagine this has to do with font encodings, such asT1
?I found virtual fonts HOWTO, which only mentions creating virtual font from PS fonts. Can I use metafont-generated fonts as well?
Do I need virtual fonts, or is there an easier alternative?
EDIT: I am considering using approach (and some scripts) from Lilypond: trace metafont with mftrace, then use fontforge scripts to create an OpenType font. (it needs mf log reading hackery, but could work) If I include accents as combining characters in OTF, they will work automatically with XeTeX? It looks like the easiest now, am I just being eluded?
I am sorry if the questions are confused, I am new to fonts. Thanks for any pointers --
PS: I tried loading the font with XeLaTeX+fontspec but I get (ignota.tfm is in the current dir):
fontspec.cfg loaded.
(/usr/share/texmf-texlive/tex/xelatex/fontspec/fontspec.cfg))
! Undefined control sequence.
\zf@set@font@type ...onttype \zf@basefont \zf@tfm
\or \zf@atsuitrue \ifnum \...
l.4 \setmainfont{ignota}
PPS: everybody loves screenshots :-)
fd
file and amap
file. See fntguide for more information about font definition files and font encodings. Accent combinations would be OT1, but you may add a virtual font to create a T1 font. See fontinstallationguide for information about virtual fonts.