Installing custom fonts?
Hello List, I'm also part of the design group Open Source Publishing (like Femke who ask about same entry to multiple registers a month ago). Our book is building, and it's now time to add our own custom open fonts. Quite new in the TeX field, and having traveled a bit through LaTex and Xetex, I couln't figure how to make it work. I guess that the TeX way of doing it is to write a map file, but maybe is it possible to avoid it, like with the Xetex shortcut? I'm using texexec or texexec --xtx to compile my files (without problems) on Ubuntu Gutsy. I'm also able to use the font in other software, Inkscape by example. But when I add this code : \definetypeface[InitiationRitualFont][rm][Xserif][Initiated] \setupbodyfont[InitiationRitualFont, 12pt] \starttext Hello List! \stoptext I've this error returned : ! Font \*InitiationRitualFont12ptrmtfrm*:='"mapping=tex-text at 12.0pt"' not lo adable: installed font not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.2 \setupbodyfont[InitiationRitualFont, 12pt] I've tried with : - different names - different places - with or without the extension in the name - with ttf or otf version of the font - with other fonts But maybe the problem is elsewhere and I clearly not well understand the intrications Context - Xetex - pdftex - TeX - texexec... I've search in the mailinglist archive and in the Wikigarden... Maybe to use something different than texexec? Many thanks. http://www.ospublish.constantvzw.org -----------------------
On Fri, Mar 13, 2009 at 15:51, Pierre Huyghebaert wrote:
Hello List,
I'm using texexec or texexec --xtx to compile my files (without problems) on Ubuntu Gutsy. I'm also able to use the font in other software, Inkscape by example.
But when I add this code :
\definetypeface[InitiationRitualFont][rm][Xserif][Initiated] \setupbodyfont[InitiationRitualFont, 12pt] \starttext Hello List! \stoptext
I've this error returned :
! Font \*InitiationRitualFont12ptrmtfrm*:='"mapping=tex-text at 12.0pt"' not lo adable: installed font not found. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue {\@style@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.2 \setupbodyfont[InitiationRitualFont, 12pt]
I've tried with : - different names - different places - with or without the extension in the name - with ttf or otf version of the font - with other fonts
You forgot to list one thing: - with a different ConTeXt version Well ... joke aside. I'm not sure what to tell you since I'm not sure what ConTeXt version you are using. I'm afraid that if you take a more recent version you'll also have some problems because of to too old XeTeX version and/or because of to too old Latin Modern version. I would suggest you to at least try the ConTeXt minimals. You can install and try them without breaking anything on your computer. See: http://wiki.contextgarden.net/ConTeXt_Minimals But the version that you use is almost hopeless unless you use low-level font switching commands (that's also an option). XeTeX high-level support has been completely broken in past for at least half a year if not longer. If you need ConTeX for production there's one thing that you need to be warned about: keep backups of any installation that works for you and do not update until you have to. Mojca
Am 13.03.2009 um 15:51 schrieb Pierre Huyghebaert:
Hello List,
I'm also part of the design group Open Source Publishing (like Femke who ask about same entry to multiple registers a month ago). Our book is building, and it's now time to add our own custom open fonts. Quite new in the TeX field, and having traveled a bit through LaTex and Xetex, I couln't figure how to make it work. I guess that the TeX way of doing it is to write a map file, but maybe is it possible to avoid it, like with the Xetex shortcut?
- different names
You can get a list with all recognized font for XeTeX with 'fc-list', can you do this and look for your font in this list. Wolfgang
Hi Pierre,
On Fri, 13 Mar 2009 08:51:31 -0600, Pierre Huyghebaert
Quite new in the TeX field, and having traveled a bit through LaTex and Xetex, I couln't figure how to make it work.
Given Mojca's comments, have you considered luatex/mkiv instead of xetex? That will give you working and supported higher-level control of opentype fonts etc etc. It sounds like you're willing to experiment, in which case mkiv might be worth spending some time with. I typeset an acedmic journal with it as well. Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523
participants (4)
-
Idris Samawi Hamid ادريس سماوي ح امد
-
Mojca Miklavec
-
Pierre Huyghebaert
-
Wolfgang Schuster