ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: smaller size for particular style
Date: Sun, 22 May 2016 18:08:02 +0200	[thread overview]
Message-ID: <5741D962.80909@gmail.com> (raw)
In-Reply-To: <4A9C9D66-100F-4ABC-8D1B-78D18C3D336C@uva.nl>


[-- Attachment #1.1: Type: text/plain, Size: 832 bytes --]

> Meer, Hans van der <mailto:H.vanderMeer@uva.nl>
> 22. Mai 2016 um 10:33
> As usual I do a setup for the font with for example: 
> \setupbodyfont[cambria].
> For most style variants this is fine, but for \tt I find the size too big.
> Thus I would like to keep the sizes as setup by the \setupbodyfont for 
> everything except for \tt: there all variants (like \tt, \ttx, \ttxx) 
> should have the size as if the bodyfont had been setup with 
> \setupbodyfont[cambria,small].
>
> How to effectuate this?
You can define your own typeface where you change the scaling.

\definetypeface [hans] [rm] [serif] [cambria] [default]
\definetypeface [hans] [tt] [mono]  [dejavu]  [default] [rscale=0.85]
\definetypeface [hans] [mm] [math]  [cambria] [default]

\setupbodyfont[hans]

\starttext
a{\tt a} e{\tt e} A{\tt A}
\stoptext

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 1887 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2016-05-22 16:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-22  8:33 Meer, Hans van der
2016-05-22 10:07 ` L.S.-Soc&Gam
2016-05-22 10:23   ` Meer, Hans van der
2016-05-22 16:08 ` Wolfgang Schuster [this message]
2016-05-22 17:02   ` Henman
2016-05-22 18:01   ` Meer, Hans van der
2016-05-22 18:11     ` Meer, Hans van der

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=5741D962.80909@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).