ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XeTeX and precise font sizes
@ 2008-07-09 22:13 Neiaglov Dmitry
  2008-07-09 23:02 ` Diego Depaoli
  0 siblings, 1 reply; 9+ messages in thread
From: Neiaglov Dmitry @ 2008-07-09 22:13 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

end of thread, other threads:[~2008-07-10 21:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-09 22:13 XeTeX and precise font sizes Neiaglov Dmitry
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

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).