ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: [NTG-context] Re: fake slant for definefallbackfamily
Date: Sun, 20 Oct 2024 19:00:34 +0200	[thread overview]
Message-ID: <9c3f9acc-f2fe-4c42-a6da-8844ae214f20@gmx.es> (raw)
In-Reply-To: <CACNy3NCwd_WBvFGPsosLOqhFiaZy-6GH7JsMr24H41qGQGMedQ@mail.gmail.com>

On 10/18/24 18:04, Sylvain Hubert wrote:
> I can define fake slant for a font with
>
>     \definefontfamily[mainface][rm][My Fancy Font][sl=features:slanted]
>
> How can I do it with \definefallbackfamily?

Sorry, Sylvain, since you provide no sample, mine will contain Greek:

  \definefallbackfamily [mainface][rm][Dejavu Sans]
    [sl={style:regular, features:slanted},preset=range:greek]
  \definefontfamily       [mainface][rm][Latin Modern Sans]
  \setupbodyfont         [mainface]
  \starttext
  αβγ9 some word others
  \sl αβγ9 some word others
  \stoptext

I cannot get the slanted font if I use:

  \enableexperiments[fonts.compact]

But this affects only LMTX, not MkIV.

Could anyone confirm this?

Many thanks for your help,

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2024-10-20 17:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18 16:04 [NTG-context] " Sylvain Hubert
2024-10-19  4:50 ` [NTG-context] " ai2472206007
2024-10-20 17:00 ` Pablo Rodriguez via ntg-context [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=9c3f9acc-f2fe-4c42-a6da-8844ae214f20@gmx.es \
    --to=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).