ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* questions regarding truetype fonts
@ 2001-02-16  1:25 Christoph Dreyer
  2001-02-16  9:44 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Dreyer @ 2001-02-16  1:25 UTC (permalink / raw)


Hi!

What is the easiest way to scale the sans serif (all variants) without
affecting the serif? I'm to lazy to use the sa operator for every
variant. :-)

I've been playing around with some truetype fonts in the WGL4
encoding. These have more than 256 glyphs. Is there a way to import such
a font without loosing some glyphs? The 8r-encoding doesn't seem to be
right for this. How can I access these glyphs in context?

Most symbols in context are taken from the math fonts. Has anybody
already tried to remap them to the roman font? I found out how to remap
the symbols of the itemize environment. But what about \dots? And which
other symbols of the math font are used in text mode?

Thanks.

Christoph


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

* Re: questions regarding truetype fonts
  2001-02-16  1:25 questions regarding truetype fonts Christoph Dreyer
@ 2001-02-16  9:44 ` Hans Hagen
  2001-02-16 21:44   ` Uwe Koloska
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2001-02-16  9:44 UTC (permalink / raw)
  Cc: ntg-context

At 02:25 AM 2/16/01 +0100, Christoph Dreyer wrote:
>Hi!
>
>What is the easiest way to scale the sans serif (all variants) without
>affecting the serif? I'm to lazy to use the sa operator for every
>variant. :-)

\setupbodyfont[ss] \input tufte

\definebodyfontenvironment
  [default]
  [        text=1.1,
         script=0.8,
   scriptscript=0.6,
              a=1.4,
              b=1.6,
              c=1.9,
              d=2.3,
              x=0.9,
             xx=0.7,
            big=1.3,
          small=0.9]

\definebodyfont[10pt,11pt,12pt][ss][default]

\setupbodyfont[ss] \input tufte

>I've been playing around with some truetype fonts in the WGL4
>encoding. These have more than 256 glyphs. Is there a way to import such
>a font without loosing some glyphs? The 8r-encoding doesn't seem to be
>right for this. How can I access these glyphs in context?

tex can handle only 256 glyphs per font at once, but pdftex will embed the
whole tt only once [handy for chinese with thousands of glyphs] 

>Most symbols in context are taken from the math fonts. Has anybody
>already tried to remap them to the roman font? I found out how to remap
>the symbols of the itemize environment. But what about \dots? And which
>other symbols of the math font are used in text mode?

You can map symbols to any font. A conveniebnt way si to use
'getglyph{fontname}{\char<number>}' as demonstrated in symb-nav.tex and
symb-eur.tex. When possible, symbols will adapt themselves to the style
(bold or so) and scale. 

Hans
-------------------------------------------------------------------------
                                  Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                      Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


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

* Re: questions regarding truetype fonts
  2001-02-16  9:44 ` Hans Hagen
@ 2001-02-16 21:44   ` Uwe Koloska
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Koloska @ 2001-02-16 21:44 UTC (permalink / raw)


You wrote on Freitag, 16. Februar 2001 10:44:
>
>>I've been playing around with some truetype fonts in the WGL4
>>encoding. These have more than 256 glyphs. Is there a way to import such
>>a font without loosing some glyphs? The 8r-encoding doesn't seem to be
>>right for this. How can I access these glyphs in context?
>
>tex can handle only 256 glyphs per font at once, but pdftex will embed the
>whole tt only once [handy for chinese with thousands of glyphs]

You "only" have to prepare different encodings and reencode one font to 
more than one encoding.  For all of this fonts you have to prepare virtual 
fonts for TeXs sake.  Then map this virtual fonts to one reencoded ttf-file:

5ggra8r Glasgow-Regular "TeXBase1Encoding ReEncodeFont" <8ar.enc <s-glas.ttf
5ggrb8r Glasgow-Regular "TeXBase1Encoding ReEncodeFont" <8br.enc <s-glas.ttf

as Hans stated, pdftex only embeds s-glas.ttf one time.  BTW 8ar and 8br 
are hypothetical encodings -- you get it!

Uwe

-- 
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
--                                    --
right now the web page is in german only
but this will change as time goes by ;-)


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

end of thread, other threads:[~2001-02-16 21:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-16  1:25 questions regarding truetype fonts Christoph Dreyer
2001-02-16  9:44 ` Hans Hagen
2001-02-16 21:44   ` Uwe Koloska

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