ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Gentium Basic/Book
Date: Thu, 22 Nov 2007 12:30:20 +0100	[thread overview]
Message-ID: <6faad9f00711220330r42eaa54fs9819a080bde89934@mail.gmail.com> (raw)
In-Reply-To: <F7401646-FF8B-425D-A869-9FF5E34AB7A4@st.estfiles.de>

On Nov 22, 2007 12:01 PM, Steffen Wolfrum wrote:
> Hi Mojca,
>
> I tried your example below and struggled in path error:
>
> %\starttypescript[serif][gentium-basic]
> %\definefontsynonym[GentiumBasic]          [file:GenBasR]
> [features=default]
> %\definefontsynonym[GentiumBasicItalic]    [file:GenBasI]
> [features=default]
> %\definefontsynonym[GentiumBasicBold]      [file:GenBasB]
> [features=default]
> %\definefontsynonym[GentiumBasicBoldItalic][file:GenBasBI]
> [features=default]
> %\stoptypescript
>
> %\starttypescript[serif][gentium-basic][name]
> %\definefontsynonym[Serif]          [GentiumBasic]
> %\definefontsynonym[SerifItalic]    [GentiumBasicItalic]
> %\definefontsynonym[SerifBold]      [GentiumBasicBold]
> %\definefontsynonym[SerifBoldItalic][GentiumBasicBoldItalic]
> %\stoptypescript
>
> %\definetypeface[mygentium][rm][serif][gentium-basic][default]
>
> %\setupbodyfont[mygentium,36pt]
>
>
> \font\rom="Gentium Basic" at 36pt
>
> \starttext
>
> Test WQG 0196
>
> \rom Test WQG 0196
>
> \stoptext
>
>
> Doing it like this works OK.
> But uncommenting the lines above ends up in ...
>
> kpathsea: Running mktexmf GenBasR
>
> ! I can't find file `GenBasR'.
>
>
> But isn't it the same font/file adressed in both cases?
>
> (sorry, I am an absolute beginner in xetex)

No, my typescripts defile the font to be
    GenBasR.otf or GenBasR.ttf

Apparently you have installed the font (I provided the example for the
case when one puts fonts in TEXMF tree). In that case you need (for
LuaTeX you might need to provide other names - not sure)

\starttypescript[serif][gentium-basic]
\definefontsynonym[GentiumBasic]          [name:Gentium Basic]
[features=default]
\definefontsynonym[GentiumBasicItalic]    [name:Gentium Basic/I]
[features=default]
\definefontsynonym[GentiumBasicBold]      [name:Gentium Basic/B]
[features=default]
\definefontsynonym[GentiumBasicBoldItalic][name:Gentium Basic/BI]
[features=default]
\stoptypescript

or, even more simple would be the following one-liner:
    \definetypeface[mygentium][rm][Xserif][Gentium Basic][default]


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
___________________________________________________________________________________


  reply	other threads:[~2007-11-22 11:30 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-19 18:04 Joel C. Salomon
2007-11-19 21:57 ` Joel C. Salomon
2007-11-19 22:18   ` Hans Hagen
2007-11-20  0:57   ` Mojca Miklavec
2007-11-22 11:01     ` Steffen Wolfrum
2007-11-22 11:30       ` Mojca Miklavec [this message]
2007-11-22 12:52         ` Steffen Wolfrum
2007-11-22 18:31           ` Wolfgang Schuster
2007-11-22 19:57             ` Gentium Basic/Book (getting weird) Steffen Wolfrum
2007-11-22 20:23               ` Mojca Miklavec
2007-11-22 20:35                 ` Steffen Wolfrum
2007-11-23 10:53                   ` Steffen Wolfrum
2007-11-23 13:44                     ` Mojca Miklavec
2007-11-23 14:11                       ` Arthur Reutenauer
2007-11-23 15:51                         ` Mojca Miklavec
2007-11-23 16:33                           ` Gentium Basic/Book (getting even weirder) Steffen Wolfrum
2007-11-24  0:25                             ` Mojca Miklavec
2007-11-24 21:33                               ` Steffen Wolfrum
2007-11-25  1:30                                 ` Mojca Miklavec
2007-11-25 11:21                                   ` Steffen Wolfrum
2007-11-25 12:51                                     ` Mojca Miklavec
2007-11-23 19:28                           ` Gentium Basic/Book (getting weird) Arthur Reutenauer
2007-11-23 19:36                             ` Steffen Wolfrum
2007-11-23 22:15                               ` Arthur Reutenauer
2007-11-23 23:38                               ` Mojca Miklavec
2007-11-24 22:48                       ` Hans Hagen
2007-11-23 10:54                 ` Wolfgang Schuster
2007-11-25 20:27                 ` Gentium Basic/Book [solved] Steffen Wolfrum
2007-11-22 21:28             ` Gentium Basic/Book Joel C. Salomon
2007-11-22 15:10         ` Steffen Wolfrum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6faad9f00711220330r42eaa54fs9819a080bde89934@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).