ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Ulrich Dirr" <ud@art-satz.de>
Subject: Setting up a typeface
Date: Wed, 15 Sep 2004 10:56:30 +0200	[thread overview]
Message-ID: <E1C7Vaf-0007XR-00@mrelayng.kundenserver.de> (raw)

Hi,

I've now studied the docs for a while and experimenting with a bunch of
settings but I'm still failing setting up typefaces correctly in ConTeXt.
Probably the font mechanism in ConTeXt is much more elaborate than with
LaTeX's NFSS. But I'm too stupid to understand it :-( Could someone please
help me?

My test case -- and it will be the sans serif part of my wish list --
should setup the Linotype HelveticaNeue as body font. The main part is not
very difficult to achieve.

The test file:
-------------------------------------------------------------------------
\setupoutput [pdftex]
\input pdftexconfig
\usetypescriptfile [type-NeueHelvetica]
\usetypescript[HelveticaNeue][ec]
\setupbodyfont[HelveticaNeueLT,ss,10pt]
\starttext
\showbodyfontenvironment[HelveticaNeueLT]
\showbodyfont[HelveticaNeueLT]
\stoptext
-------------------------------------------------------------------------

type-NeueHelvetica.tex:
-------------------------------------------------------------------------
\starttypescript [sans] [HelveticaNeue] [name]
\definefontsynonym [Sans]                 [HelveticaNeueLT-Roman]
\definefontsynonym [SansItalic]           [HelveticaNeueLT-Italic]
\definefontsynonym [SansBold]             [HelveticaNeueLT-Bold]
\definefontsynonym [SansBoldItalic]       [HelveticaNeueLT-BoldItalic]   
[...]
\stoptypescript

\starttypescript [sans] [HelveticaNeue] [ec]
\definefontsynonym [HelveticaNeueLT-Roman]      [lhnr8t]  [encoding=ec]
\definefontsynonym [HelveticaNeueLT-Italic]     [lhnri8t] [encoding=ec]
\definefontsynonym [HelveticaNeueLT-Bold]       [lhnb8t]  [encoding=ec]
\definefontsynonym [HelveticaNeueLT-BoldItalic] [lhnbi8t] [encoding=ec]
[...]
\stoptypescript

\starttypescript [HelveticaNeue][ec]
\usetypescript [sans] [HelveticaNeue] [name]
\usetypescript [sans] [HelveticaNeue] [size]
\stoptypescript

\starttypescript [HelveticaNeue] [ec]
\definetypeface [HelveticaNeueLT] [ss] [sans] [HelveticaNeue] [default]
[encoding=ec]
\stoptypescript
-------------------------------------------------------------------------

The next step should define destinct sizes for use in a project. And here
I'm always failing.

I've tried, e.g.,
\definebodyfontenvironment
  [9bp]
  [       text=9bp,
        script=7bp,
  scriptscript=5bp,
             x=7bp,
            xx=5bp,
           big=11bp,
         small=7bp,
  interlinespace=11bp]
or, e.g.,
\starttypescript [sans] [HelveticaNeue] [size]
\definebodyfont [10bp] [ss]
  [tf=Sans at 10bp,
   bf=SansBold,
   it=SansItalic,
   sl=SansItalic,
   bi=SansBoldItalic,
   bs=SansBoldItalic]
\stoptypescript

in all sizes I want, with and without definitions of \definebodyfont, but
never got what I want. 

How can I setup my typeface (regular, bold, etc.) to use the specific sizes
5,6,7,8,9.5,10,12,14,18,24,28 *bp*??? (And with correct dependencies)

I'm definitely not understanding how the general scheme works. And all
examples I've found always use the standard font sizes and the standard
measurement units.

Please help me!

Best regards,
Ulrich Dirr

P.S. are there predefined shortcuts for heavy, light, etc. variants?

                 reply	other threads:[~2004-09-15  8:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=E1C7Vaf-0007XR-00@mrelayng.kundenserver.de \
    --to=ud@art-satz.de \
    --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).