ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: set fallback in \definefont
Date: Tue, 16 Feb 2021 19:34:51 +0100	[thread overview]
Message-ID: <b6ed787a-f2ad-4b2e-7b5d-ae40ef387f08@gmail.com> (raw)
In-Reply-To: <CAMHZ1daaR9O-ynuNi+BYCFcVqDMunK4ggo07uCU8vp52yPuDoQ@mail.gmail.com>

Mohammad Hossein Bateni schrieb am 15.02.2021 um 22:31:
> Thanks for the quick response, Pablo.  I already use typescripts 
> (\definetypeface, \definefontsynonym and \definefontfallback): 
> https://github.com/bateni/dabeer/tree/master/texmf-local/tex/context/fonts/mkiv
>
> By arbitrary style, I meant something like:
>
> \definefontfamily[myface][CUSTOM][TeX Gyre Pagella]]
>
> https://wiki.contextgarden.net/Font_Switching says fontstyle is rm, 
> ss, tt, mm, hw, cg, ...
> Because the the three dots at the end, I thought it would be possible 
> to define new fontstyles.  But I get an error if I do so.

You can add additional styles but this requires more than a single line 
of code.

\definefontfamily itself is limited to the default styles because the 
command
creates a typescript behind the scenes.

Wolfgang

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-02-16 18:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 19:47 Mohammad Hossein Bateni
2021-02-15 20:51 ` Pablo Rodriguez
2021-02-15 21:30   ` Wolfgang Schuster
2021-02-15 21:55     ` Mohammad Hossein Bateni
2021-02-15 21:31   ` Mohammad Hossein Bateni
2021-02-16 18:34     ` Wolfgang Schuster [this message]

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=b6ed787a-f2ad-4b2e-7b5d-ae40ef387f08@gmail.com \
    --to=wolfgang.schuster.lists@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).