ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Zenlima <post@zenlima.eu>
To: ntg-context@ntg.nl
Subject: Re: Different font variants (normal <> condensed, light <> regular <> bold, etc.)
Date: Thu, 11 Jul 2013 12:04:10 +0200	[thread overview]
Message-ID: <20130711120410.17f78829@zenlima.eu> (raw)
In-Reply-To: <48245450-540D-44BE-8504-C5E4AC6CDCAA@gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 774 bytes --]

Thanks Wolfgang,

your example works. :)

For understanding I tried to make the example script-name independent,
so it doesn't fix my environment onto one specific script (see attached
files). But there must be some secret naming conventions.. then I guess
and entered a command to switch to the roboto-typescripcollection.. but
I guess wrongly. Are all secret (font) naming conventions somewhere
documented?

I think the limitation of font-dimensions decreases the reuse ability
of context/mkiv a lot. Also I found some thoughts that were made in the
context community some time ago:

	http://meeting.contextgarden.net/2010/talks/2010-09-15-mojca-fonts/some-thoughts-about-typescripts.pdf

Is there any progress in that direction with context/mkiv?

H.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: roboto-test.tex --]
[-- Type: text/x-tex, Size: 401 bytes --]

\starttext

%\usetypescriptcollection[roboto]

\switchtobodyfont[400-700--normal]

\rm\input ward\par
\ss\input ward

\blank

\switchtobodyfont[400-700--consended]

\rm\input ward\par
\ss\input ward

\blank


\switchtobodyfont[500-700--normal]

\rm\input ward\par
\ss\input ward

\blank

\switchtobodyfont[300-400--normal]

\rm\input ward\par
\ss\input ward

\stoptext

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.3: type-roboto.tex --]
[-- Type: text/x-tex, Size: 2030 bytes --]

\starttypescriptcollection [roboto]

\starttypescript [sans] [400-700--normal]
  \setups[font:fallback:sans]
  \definefontsynonym [Sans]           [file:robotoregular]
  \definefontsynonym [SansItalic]     [file:robotoitalic]
  \definefontsynonym [SansBold]       [file:robotobold]
  \definefontsynonym [SansBoldItalic] [file:robotobolditalic]
\stoptypescript

\starttypescript [sans] [400-700--condensed]
  \definefontsynonym [Sans]           [file:robotocondensed]
  \definefontsynonym [SansItalic]     [file:robotocondenseditalic]
  \definefontsynonym [SansBold]       [file:robotoboldcondensed]
  \definefontsynonym [SansBoldItalic] [file:robotoboldcondenseditalic]
\stoptypescript

\starttypescript [sans] [500-800--normal]
  \definefontsynonym [Sans]           [file:robotomedium]
  \definefontsynonym [SansItalic]     [file:robotomediumitalic]
  \definefontsynonym [SansBold]       [file:robotoblack]
  \definefontsynonym [SansBoldItalic] [file:robotoblackitalic]
\stoptypescript

\starttypescript [sans] [300-400--normal]
  \definefontsynonym [Sans]           [file:robotolight]
  \definefontsynonym [SansItalic]     [file:robotolightitalic]
  \definefontsynonym [SansBold]       [file:robotoregular]
  \definefontsynonym [SansBoldItalic] [file:robotoitalic]
\stoptypescript

\starttypescript [serif] [400-700--normal,400-700--condensed,500-800--normal]
  \definefontsynonym [Serif]     [file:robotoslabregular]
  \definefontsynonym [SerifBold] [file:robotoslabbold]
\stoptypescript

\starttypescript [serif] [300-400--normal]
  \definefontsynonym [Serif]     [file:robotoslablight]
  \definefontsynonym [SerifBold] [file:robotoslabregular]
\stoptypescript

\starttypescript [400-700--normal,400-700--consended,500-800--normal,300-400--normal]
  \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default] [features=default]
  \definetypeface [\typescriptone] [rm] [sans]  [\typescriptone] [default] [features=default]
\stoptypescript

\stoptypescriptcollection

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 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:[~2013-07-11 10:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-09 11:20 Zenlima
2013-07-09 15:58 ` Wolfgang Schuster
2013-07-11 10:02   ` Zenlima
2013-07-11 10:04   ` Zenlima [this message]
2013-07-11 18:41     ` Wolfgang Schuster

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=20130711120410.17f78829@zenlima.eu \
    --to=post@zenlima.eu \
    --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).