I am currently trying to get the mara font loaded into XeTeX. Here's some information about the font (via fontforge): file: marafont.ttf Fontname: MaraFontNFPlain: Family Name: MaraFontNF Plain: (yes, the colons are in the name) I've tried a couple of ways, using both the fontname and the family name, both with and without the ending semi-colons; however, it fails at compile time. Here's some sample code: \definetypeface[Mara][rm][Xserif][MaraFontNF Plain] \starttext \startfont[Mara] This is a test. \stoptext Here's the relevant output from the log file, which looks very similar to the output of a font that works: ! Font \**\thedefinedfont**:=Mara at 12.0pt not loadable: Metric (TFM) file or installed font not found. <to be read again> \relax \dododefinefont ...ontspec {#2}\rawfontidentifier \let \localrelativefontsiz... \redodefinefont #1#2#3->\dododefinefont {#1}{#2} \doifsetupselse {#3} {\setup... \dodefinedfont ...ring \thedefinedfont \endcsname \the \everydefinedfont l.7 \startfont[Mara] ? ! Emergency stop. <to be read again> \relax \dododefinefont ...ontspec {#2}\rawfontidentifier \let \localrelativefontsiz... \redodefinefont #1#2#3->\dododefinefont {#1}{#2} \doifsetupselse {#3} {\setup... \dodefinedfont ...ring \thedefinedfont \endcsname \the \everydefinedfont l.7 \startfont[Mara] End of file on the terminal! How do I get the font loaded? Thanks, Bart
I tried prepending "name" and it didn't work. I also tried "file:marafont", but that didn't work either. Your code yesterday was great and I have not tried to plug in the mara font into a typescript. There are some fonts that I just want to put in one section of the text without having to write a typescript. That's why I used the \definetypeface and \startfont routines. I just don't know what I'm doing wrong. Bart On Tuesday 18 November 2008 11:54:49 am Arthur Reutenauer wrote:
I've tried a couple of ways, using both the fontname and the family name, both with and without the ending semi-colons; however, it fails at compile time.
Have you tried prepending "name:" to the font name, like I explained yesterday?
Arthur ___________________________________________________________________________ ________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________ ________
I also tried plugging it into the typescript (not what I want), but that didn't work either. I tried both the "name:" and the "file:" options. Still lost, Bart On Tuesday 18 November 2008 11:54:49 am Arthur Reutenauer wrote:
I've tried a couple of ways, using both the fontname and the family name, both with and without the ending semi-colons; however, it fails at compile time.
Have you tried prepending "name:" to the font name, like I explained yesterday?
Arthur ___________________________________________________________________________ ________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________ ________
One thing of possible interest is that when I load the font in fontforge, I get the following warning: Bad Font Name The Postscript font name "MaraFontNF Plain:" is invalid. It should be printable ASCII, must not contain (){}[]<>%/ or space and must be shorter than 63 characters. Is the colon at the end of the name a problem? The font does work on other program on my system. Bart On Tuesday 18 November 2008 11:54:49 am Arthur Reutenauer wrote:
I've tried a couple of ways, using both the fontname and the family name, both with and without the ending semi-colons; however, it fails at compile time.
Have you tried prepending "name:" to the font name, like I explained yesterday?
Arthur ___________________________________________________________________________ ________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________ ________
Is the colon at the end of the name a problem?
No, the message says the problem is with the space character, but it is of little concern here (XeTeX doesn't use PostScript font names at all). Is it the font from http://www.perry.com/disney/indy/marafont.html? It seems to have quite a number of other problems actually (xdvipdfmx protests heavily when I try loading it with plain XeTeX). You could try saving it again from FontForge, and installing that modified font (you of course need to uninstall the original one from your system, or more problems will likely happen). While doing so, you can of course modify whatever seems suspicious (like the trailing colon, etc.). Arthur
That seems to work. I just renamed the fontname and family (removing the colon), generated a new ttf and loaded that into the system. So this works: \definetypeface[MaraFontNFPlain][rm][Xserif][MaraFontNFPlain] \starttext \startfont[MaraFontNFPlain] This is a test. \stoptext And yes, the url is correct as far as where I got the font from. And yes, there were other errors (or warnings) when I generated the font; however, it does work. One quick question (again expressing my ignorance). Why can't I take the code above and change it to the following: \definetypeface[Mara][rm][Xserif][MaraFontNFPlain] \starttext \startfont[Mara] This is a test. \stoptext Thanks, Bart On Tuesday 18 November 2008 01:13:02 pm Arthur Reutenauer wrote:
Is the colon at the end of the name a problem?
No, the message says the problem is with the space character, but it is of little concern here (XeTeX doesn't use PostScript font names at all).
Is it the font from http://www.perry.com/disney/indy/marafont.html? It seems to have quite a number of other problems actually (xdvipdfmx protests heavily when I try loading it with plain XeTeX). You could try saving it again from FontForge, and installing that modified font (you of course need to uninstall the original one from your system, or more problems will likely happen). While doing so, you can of course modify whatever seems suspicious (like the trailing colon, etc.).
Arthur ___________________________________________________________________________ ________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________ ________
Am 18.11.2008 um 23:00 schrieb Arthur Reutenauer:
One quick question (again expressing my ignorance). Why can't I take the code above and change it to the following:
\definetypeface[Mara][rm][Xserif][MaraFontNFPlain] \starttext \startfont[Mara] This is a test. \stoptext
I have no idea ... Does it really not work?
\definefontsynonym[Mara][name:MaraFontNFPlain] \starttext \startfont[Mara] This is a test. \stopfont \stoptext Wolfgang
Wolfgang, This one does work. Thanks again, Bart On Tuesday 18 November 2008 03:28:45 pm Wolfgang Schuster wrote:
Am 18.11.2008 um 23:00 schrieb Arthur Reutenauer:
One quick question (again expressing my ignorance). Why can't I take the code above and change it to the following:
\definetypeface[Mara][rm][Xserif][MaraFontNFPlain] \starttext \startfont[Mara] This is a test. \stoptext
I have no idea ... Does it really not work?
\definefontsynonym[Mara][name:MaraFontNFPlain] \starttext \startfont[Mara] This is a test. \stopfont \stoptext
Wolfgang
___________________________________________________________________________ ________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________ ________
participants (3)
-
Arthur Reutenauer
-
Bart C. Wise
-
Wolfgang Schuster