ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Neiaglov Dmitry <dima@getalime.ru>
To: ntg-context@ntg.nl
Subject: XeTeX and precise font sizes
Date: Thu, 10 Jul 2008 02:13:09 +0400	[thread overview]
Message-ID: <661F56F4-974A-46F5-BEA2-4A7DB08C0833@getalime.ru> (raw)

Hello there!

I was googling around, but couldn't really figure out how to use  
OpenType fonts with ConTeXt and XeTeX with precise sizes in points. I  
am trying to create a subsection style with Gentium 24pt.

I am creating a typeface like it's recommended in the documentation:

\definetypeface			[Gentium][rm][Xserif][Gentium]

Then I create my own subsection style:

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

So far so good, but it actually types the subsection out with some pre- 
determined font size.

What I'm trying to do is get my subsections at the size of, say,  
precisely 24 pt.

Stuff like

\definetypeface			[Gentium][rm][Xserif][Gentium]
\definefont				[Subs][Gentium at 24pt]

apparently invokes non-XeTeX font routines (pardon my ignorance):

kpathsea: Running mktextfm subsections
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1;  
nonstopmode; input subsections
This is METAFONT, Version 2.71828 (Web2C 7.5.6)
kpathsea: Running mktexmf subsections
! I can't find file `subsections'.

The best I was able to get was adding rscale

\definetypeface			[Gentium][rm][Xserif][Gentium][rscale=1.4]

which is bad for two reasons: first, it's not logically correct, since  
I am planning to use my typeface for different sizes throughout the  
document, and second, I really want to control my sizes in points.

Thanks in advance,
Dima
___________________________________________________________________________________
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-09 22:13 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-09 22:13 Neiaglov Dmitry [this message]
2008-07-09 23:02 ` Diego Depaoli
2008-07-10  5:48   ` Wolfgang Schuster
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=661F56F4-974A-46F5-BEA2-4A7DB08C0833@getalime.ru \
    --to=dima@getalime.ru \
    --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).