[NTG-context] Installing custom fonts?

2009-03-13 Thread 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?

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

---
___
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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Mojca Miklavec
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
___
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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Wolfgang Schuster


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

___
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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Pierre Huyghebaert
 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?

Thanks for these superquick answers! What a lively list!

@Wolfgang : You remember me that and it's helpful in many cases.
But my font sit in the list... Any other idea?
...
DejaVu Sans Mono:style=Bold Oblique
Liberation Serif:style=Bold Italic
InitiationRitualFont:style=Regular
Bitstream Vera Sans:style=Oblique
Linux Libertine:style=Bold
...

@Mojca : (yes for sure, you're right that I need a backup! Job for the week-end)
Oh yes, I've forgot the version... I've install ConTeXt two months
ago, not sure how to check the version of it :

ctxtools --version
CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD

And

XeTeX 3.141592-0.996 (Web2C 7.5.6)
kpathsea version 3.5.6
Copyright 2007 SIL International.
Kpathsea is copyright 2007 Karl Berry and Olaf Weber.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Kpathsea written by Karl Berry, Olaf Weber, and others.

Compiled with ICU version 3.4 [with modifications for XeTeX]
Compiled with zlib version 1.2.3.3; using 1.2.3.3
Compiled with FreeType2 version 2.3.5; using 2.3.5
Compiled with fontconfig version 2.4.2; using 2.4.2
Compiled with libpng version 1.2.15beta5; using 1.2.15beta5
Compiled with libpoppler version 3.00

As you differenciate the low-level font switching commands and the
high-level one (like Xetex), is the low-level the one that needs to
write a map file (tree)? Sorry for that question which may seem
*very* basic!

Pierre
___
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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Wolfgang Schuster


Am 13.03.2009 um 17:42 schrieb Pierre Huyghebaert:


Thanks for these superquick answers! What a lively list!

@Wolfgang : You remember me that and it's helpful in many cases.
But my font sit in the list... Any other idea?
...
DejaVu Sans Mono:style=Bold Oblique
Liberation Serif:style=Bold Italic
InitiationRitualFont:style=Regular


You tried \definetypeface[InitiationRitualFont][rm][Xserif] 
[InitiationRitualFont]?



As you differenciate the low-level font switching commands and the
high-level one (like Xetex), is the low-level the one that needs to
write a map file (tree)? Sorry for that question which may seem
*very* basic!


No, she means \font\initiation=InitiationRitualFont.

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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Pierre Huyghebaert
Am 13.03.2009 um 17:42 schrieb Pierre Huyghebaert:

 Thanks for these superquick answers! What a lively list!

 @Wolfgang : You remember me that and it's helpful in many cases.
 But my font sit in the list... Any other idea?
 ...
 DejaVu Sans Mono:style=Bold Oblique
 Liberation Serif:style=Bold Italic
 InitiationRitualFont:style=Regular

You tried \definetypeface[InitiationRitualFont][rm][Xserif]
[InitiationRitualFont]?

 As you differenciate the low-level font switching commands and the
 high-level one (like Xetex), is the low-level the one that needs to
 write a map file (tree)? Sorry for that question which may seem
 *very* basic!

No, she means \font\initiation=InitiationRitualFont.

Wolfgang


Wow, thanks again Wolfgang! It works! So simple, that low-level one
for all of us that don't need the family concept at some point
(titles, etc.)

\font\initiation=InitiationRitualFont
\starttext
\initiation Hello World!
\stoptext

Curious, I just have tried my previous code on the machine of Femke,
with a more recent Ubuntu, and it works also! Ok, I'll upgrade my
Ubuntu!

\definetypeface[InitiationRitualFont][rm][Xserif][InitiationRitualFont]
\setupbodyfont[InitiationRitualFont, 12pt]
\starttext
Hello World!
\stoptext

So for most of us, the two solutions seem to work.
(Apart of the family concept problem, is there
advantages/disadvantages to use one solution or another?)

Pierre
___
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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Idris Samawi Hamid ادريس سماوي ح امد

Hi Pierre,

On Fri, 13 Mar 2009 08:51:31 -0600, Pierre Huyghebaert  
pie...@speculoos.com wrote:


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
___
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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Wolfgang Schuster


Am 13.03.2009 um 18:42 schrieb Pierre Huyghebaert:


So for most of us, the two solutions seem to work.
(Apart of the family concept problem, is there
advantages/disadvantages to use one solution or another?)


The \font method let you use your font only in the style and size
you set with the setting but nothing else. ConTeXt's system creates
commands to let you switch the style (italic, bold ...) and the size
(\tfx, \tfa ...) and you can use them to create new styles certain
elements like header. With \setupbodyfont you take also care to have
the same font for header/footertexts, footnotes etc.

To summarize this, don't use \font unless you really know what you do
and even then use ConTeXt's \definefont command.

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
___


Re: [NTG-context] Installing custom fonts?

2009-03-13 Thread Mojca Miklavec
On Fri, Mar 13, 2009 at 17:47, Wolfgang Schuster wrote:

 Am 13.03.2009 um 17:42 schrieb Pierre Huyghebaert:

 Oh yes, I've forgot the version... I've install ConTeXt two months
 ago, not sure how to check the version of it :

 ctxtools --version
 CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD

It's
ctxtools --contextversion
but it stopped working at some point (it doesn't work for me). I would say
context --version
but that one definitely doesn't work on your machine. Maybe the
version string is written out when you compile a document, or you can
take a look at .../tex/context/base/context.tex

But that information is not really important now.

 You tried
 \definetypeface[InitiationRitualFont][rm][Xserif][InitiationRitualFont]?

ConTeXt+XeTeX font support was completely broken at some point.

 As you differenciate the low-level font switching commands and the
 high-level one (like Xetex), is the low-level the one that needs to
 write a map file (tree)? Sorry for that question which may seem
 *very* basic!

 No, she means \font\initiation=InitiationRitualFont.

Right.

Well, maybe some other commands like
   \definefontsynonym[Serif][FontName]
could work as well, but that depends a bit on how broken the ConTeXt version is.

I also wanted to say that it might be interesting to try luatex, but
one still needs to be prepared for surprizes. If MKII satisfies their
needs, it would be most safe to keep a version that's compatible with
both.

Mojca
___
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
___