ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: XeTeX and precise font sizes
Date: Thu, 10 Jul 2008 07:48:50 +0200	[thread overview]
Message-ID: <115224fb0807092248w1b6d9ecelc4b5dd359989c984@mail.gmail.com> (raw)
In-Reply-To: <83e5fb980807091602y507f0489u54e0f0c43eca2883@mail.gmail.com>

On Thu, Jul 10, 2008 at 1:02 AM, Diego Depaoli <trebestie@gmail.com> wrote:
> 2008/7/10 Neiaglov Dmitry <dima@getalime.ru>:
>> Hello there!
>>
>> I was googling around,
> you mis-googled :-)
> http://www.google.com/cse?q=gentium&cx=016640200293943433883:w-6slqs1kjg&cof=FORID:0&sa=Special+Search
>
>> OpenType fonts with ConTeXt and XeTeX with precise sizes in points. I
>> am trying to create a subsection style with Gentium 24pt.
>
> following code should be work.
>
> \starttypescript[serif][gentium-basic]
> \definefontsynonym[Serif]          [GentiumBasic]
> \definefontsynonym[SerifItalic]    [GentiumBasicItalic]
> \definefontsynonym[SerifBold]      [GentiumBasicBold]
> \definefontsynonym[SerifBoldItalic][GentiumBasicBoldItalic]
> \stoptypescript
>
> \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[gentium-basic]
> \definetypeface[gentium][rm][serif][gentium-basic][default]
> \stoptypescript
> \usetypescript[gentium-basic]

\setupbodyfont[gentium]

> \setupcolors[state=start]
> \def\subsectfont{\setupbodyfont[gentium,24pt]}
> \setuphead                              [subsection]
>                                               [alternative=inmargin,
>                                               numbercolor=orange,
>                                               style=\subsectfont]
>

\definefont[subsectfont][Serif at 24pt] % Gentium as bodyfont

or

\definefont[subsectfont][GentiumBasic at 24pt] % Gentium is not the bodyfont

and

\setuphead
  [subsection]
  [alternative=inmargin,
   numbercolor=orange,
   style=subsectfont]

> \starttext
>
> \section {a section}
> \subsection {a subsection}
> \input knuth
>
> \stoptext
>
> Cheers
>
> --
> Diego Depaoli

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
___________________________________________________________________________________


  reply	other threads:[~2008-07-10  5:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 22:13 Neiaglov Dmitry
2008-07-09 23:02 ` Diego Depaoli
2008-07-10  5:48   ` Wolfgang Schuster [this message]
2008-07-10  6:50   ` Neiaglov Dmitry
2008-07-10  8:19     ` Hans Hagen
2008-07-10 11:52     ` Diego Depaoli
2008-07-10 14:10     ` Mojca Miklavec
2008-07-10 16:09       ` Neiaglov Dmitry
2008-07-10 21:35         ` Hans Hagen

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=115224fb0807092248w1b6d9ecelc4b5dd359989c984@mail.gmail.com \
    --to=schuster.wolfgang@googlemail.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).