ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@freedom.nl>
Subject: Re: [NTG-context] Google's Roboto Flex font typescript and goodies definition.
Date: Tue, 18 Apr 2023 17:39:21 +0200	[thread overview]
Message-ID: <7cab8e88-c9ca-7170-8d94-d9ed648f8c13@freedom.nl> (raw)
In-Reply-To: <CADUDiDHVR1C-kJv6oMwc7Uf-EghOX+T1pod-UNxSMO6iRZ4kvw@mail.gmail.com>

On 4/18/2023 3:52 PM, Pawel Urbanski via ntg-context wrote:
> Hi Hans,
> I will write what I want to acomplish. While it is definitely thrivial, 
> I'm either missing something obvious or more experienced users suffer 
> from the curse of knowledge.
> 
> I want ot use Roboto Flex for my chapter and section heads with Garamond 
> Premier for the body contents.
> 
> I followed the Context wiki example and consistant examples from the web.
> 
> Here is my code:
> \usemodule[fonts-variable]
> \definefontfamily[roboto-flex][ss][rotoboflex]
> % robotoflex.ttf is the recognized font file name.
> \setuphead[chapter]
> [style={\switchtobodyfont[roboto-flex,20pt]\ss}]
> 
> While the Garamond is embedded and text is styled, the chapter tible is 
> typeset with Garamond not Roboto.
> 
> Any hints or feed back will be very appriciated.
\usetypescriptfile[ebgaramond]

\starttypescript [sans] [robotoflex]
     \setups[font:fallback:sans]
     \definefontsynonym [Sans]          [name:robotoflexregular]
     \definefontsynonym [SansItalic]    [name:robotoflexregularitalic]
     \definefontsynonym [SansBold]      [name:robotoflexregularbold]
     \definefontsynonym [SansBoldItalic][name:robotoflexregularbolditalic]
\stoptypescript

\starttypescript[robocop]
     \definetypeface [\typescriptone] [rm] [serif] [ebgaramond] 
[default]
     \definetypeface [\typescriptone] [ss] [sans]  [robotoflex] 
[default]
     \definetypeface [\typescriptone] [tt] [mono]  [dejavu] 
[default] [rscale=0.8]
     \definetypeface [\typescriptone] [mm] [math]  [ebgaramond] [default]
\stoptypescript

\setupbodyfont[robocop]

\setuphead[chapter][style=\ssbfd]

\starttext

     \startchapter[title=Whatever]
         \input tufte
     \stopchapter

     \page

     \usemodule[fonts-variable]

     \showfontvariations[font=file:robotoflex.ttf]

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-04-18 15:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-18 10:37 Pawel Urbanski via ntg-context
2023-04-18 13:29 ` Hans Hagen via ntg-context
2023-04-18 14:14   ` Pawel Urbanski via ntg-context
2023-04-18 13:52 ` Pawel Urbanski via ntg-context
2023-04-18 15:39   ` Hans Hagen via ntg-context [this message]
2023-04-19 14:06     ` Pawel Urbanski via ntg-context

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=7cab8e88-c9ca-7170-8d94-d9ed648f8c13@freedom.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@freedom.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).