ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Peter Schorsch <tralalas@freenet.de>
To: ntg-context@ntg.nl
Subject: Typeface - simple example
Date: Thu, 19 Aug 2010 15:20:40 +0200	[thread overview]
Message-ID: <i4jb39$m4o$1@dough.gmane.org> (raw)

Hi,

I reactivated my interest in Context. A lot changed since 
then... so I am became a beginner again. E.g. I don't know / understand how 
to use that Typescript-Framework. I tried to build a simple example, but I 
do not get it to work. 

I crosschecked successfully with simplefonts that the fonts itself are
working (via \simplefont[..]).

In this example I wanted to put the Nimbus Sans fonts on the rm-Definitions 
(just to see that it is working).

I like what I was reading in the wiki, examples, posts and manuels about the 
Typescript-framework - but can anyone help me to understand it really / help 
me to get this simple example to work?

Thanks


------ simple example environment ---

Nimbus fonts are stored under /usr/share/fonts

OSFONTDIR is correct, fonts via mtxrun imported

mtxrun --script fonts --list --all pattern=nimbuss*
shows all the nimbus fonts I used in the example

------ simple example ----------

\enableregime[utf]
\setupencoding[default=uc]

\setupcapitals[sc=yes]

\definefontsynonym [Nimbus-Sans-Regular]        [nimbussanlregu]
\definefontsynonym [Nimbus-Sans-Bold]           [nimbussanlbold]
\definefontsynonym [Nimbus-Sans-Italic]         [nimbussanlreguital]
\definefontsynonym [Nimbus-Sans-Slanted]        [nimbussanlreguital]
\definefontsynonym [Nimbus-Sans-BoldItalic]     [nimbussanlboldital]
\definefontsynonym [Nimbus-Sans-BoldSlanted]    [nimbussanlboldital]
\definefontsynonym [Nimbus-Sans-Caps]           [nimbussanlregu]

\starttypescript [Nimbus]
    \definetypeface	[Nimbus-whatIsThisFor]	[rm]	[whatIsThis]	
[Nimbus-Sans-Regular]
    \definetypeface	[Nimbus-whatIsThisFor]	[rm]	[whatIsThis]	
[Nimbus-Sans-Bold]	%here: how to access / define rm,bf?
    \definetypeface	[Nimbus-whatIsThisFor]	[tt]	[whatIsThis]	
[Nimbus-Sans-Italic]
    \definetypeface	[Nimbus-whatIsThisFor]	[ss]	[whatIsThis]	
[Nimbus-Sans-Bold]
\stoptypescript


\usetypescript[Nimbus]
\setupbodyfont[Nimbus-whatIsThisFor,rm,12pt]

\starttext

Regular

{\it Italic}

{\bf Bold}

{\bi Bold-Italic}

\showbodyfont

\stoptext

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2010-08-19 13:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 13:20 Peter Schorsch [this message]
2010-08-21 16:57 ` Peter Schorsch

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='i4jb39$m4o$1@dough.gmane.org' \
    --to=tralalas@freenet.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).