ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Installing custom fonts?
@ 2009-03-13 17:42 Pierre Huyghebaert
  2009-03-13 18:14 ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Huyghebaert @ 2009-03-13 17:42 UTC (permalink / raw)
  To: ntg-context

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


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Installing custom fonts?
@ 2009-03-13 16:42 Pierre Huyghebaert
  2009-03-13 16:47 ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Huyghebaert @ 2009-03-13 16:42 UTC (permalink / raw)
  To: ntg-context

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


^ permalink raw reply	[flat|nested] 9+ messages in thread
* Installing custom fonts?
@ 2009-03-13 14:51 Pierre Huyghebaert
  2009-03-13 15:11 ` Mojca Miklavec
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Pierre Huyghebaert @ 2009-03-13 14:51 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2135 bytes --]

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

-----------------------

[-- Attachment #1.2: Type: text/html, Size: 4718 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-03-13 21:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-13 17:42 Installing custom fonts? Pierre Huyghebaert
2009-03-13 18:14 ` Wolfgang Schuster
  -- strict thread matches above, loose matches on Subject: below --
2009-03-13 16:42 Pierre Huyghebaert
2009-03-13 16:47 ` Wolfgang Schuster
2009-03-13 21:08   ` Mojca Miklavec
2009-03-13 14:51 Pierre Huyghebaert
2009-03-13 15:11 ` Mojca Miklavec
2009-03-13 15:19 ` Wolfgang Schuster
2009-03-13 17:50 ` Idris Samawi Hamid ادريس سماوي حامد

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).