From: "Christian" <metan0r@gmx.de>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Simplefonts question
Date: Mon, 14 Nov 2011 09:18:30 +0100 [thread overview]
Message-ID: <00b501cca2a5$fe7adc70$fb709550$@gmx.de> (raw)
In-Reply-To: <CAPoA6K2XjsqGJp3jJ5TUFauZmjY1XmQ747O41LsyG8LFNL1YHw@mail.gmail.com>
> >> Hi Wolfgang,
> >>
> >> I'm looking for documentation for your handy module.
> >>
> >> Particularly i'd like to know all the options i can use for the
> >> commands \setmainfont and \setupsimplefonts.
> >>
> >> My goal is to use a font in my document in different sizes (say 12,
> >> 17 and 35pt) with adequate line spacing.
> >
> > Do you want a whole family in this size or only a single style of a font?
>
> I need Linux Libertine as Serif, Aller as SansSerif and Aller in 35pt for large
> titles with proper line spacing.
>
> My success so far:
>
> \definefontfeature[cond][default][extend=.8]
> \usemodule[simplefonts]
> \setmainfont[linuxlibertineo]
> \setsansfont[aller][features=cond]
> \mainlanguage[de]
> \starttext
> Dudelsackpfeifenmachergeselle
>
> {\it
> Dudelsackpfeifenmachergeselle }
>
> {\bf
> Dudelsackpfeifenmachergeselle }
>
> {\bi
> Dudelsackpfeifenmachergeselle }
>
> \ss
> Dudelsackpfeifenmachergeselle
>
> {\it
> Dudelsackpfeifenmachergeselle }
>
> {\bf
> Dudelsackpfeifenmachergeselle }
>
> {\bi
> Dudelsackpfeifenmachergeselle }
> \stoptext
>
>
> Now some questions remain:
> How can i set the size of the fonts?
> \setsansfont[aller][features=cond,size=14pt]
> seems not to work.
> How can i define the 35pt .8 condensed Aller?
>
> Greetings Lutz
Here is how I would do it:
\definefontfeature[cond][default][extend=.8]
\usemodule[simplefonts]
\setmainfont[Linux Libertine O]
\setsansfont[aller][scale=0.9] % downscale Aller a bit, since it has a bigger x-height than Libertine
\definesimplefonttypeface[titlefont][aller][features=cond] % this way, only titles are condensed
\setuphead[chapter][style={\switchtobodyfont[titlefont,35pt]}]
\mainlanguage[de]
\starttext
\chapter{Dudelsackpfeifenmachergesellen sind lustige Leute}
Dudelsackpfeifenmachergeselle {\ss Dudelsackpfeifenmachergeselle}
{\it Dudelsackpfeifenmachergeselle} {\ss \it Dudelsackpfeifenmachergeselle}
{\bf Dudelsackpfeifenmachergeselle } {\ss \bf Dudelsackpfeifenmachergeselle}
{\bi Dudelsackpfeifenmachergeselle } {\ss \bi Dudelsackpfeifenmachergeselle}
\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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-11-14 8:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 12:01 Lutz Haseloff
2011-11-11 13:35 ` Wolfgang Schuster
2011-11-14 6:00 ` Lutz Haseloff
2011-11-14 8:13 ` Wolfgang Schuster
2011-11-14 8:18 ` Christian [this message]
2011-11-14 8:55 ` Lutz Haseloff
2016-01-14 13:49 simplefonts question Meer, Hans van der
2016-01-14 15:21 ` Wolfgang Schuster
2016-01-14 17:03 ` massifr
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='00b501cca2a5$fe7adc70$fb709550$@gmx.de' \
--to=metan0r@gmx.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).