From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Sylvain Hubert via ntg-context <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: features of fallback font
Date: Tue, 7 Sep 2021 13:46:36 +0200 [thread overview]
Message-ID: <e438102a-e069-2de4-562a-b88af8f60bdb@gmail.com> (raw)
In-Reply-To: <CACNy3NB_igSei-5VoaYY5aNYV0AxBerjg_e66iSnTxqyPyvb2g@mail.gmail.com>
Sylvain Hubert via ntg-context schrieb am 07.09.2021 um 13:32:
> Dear List,
>
> I'm using the chinese simsun font that has no builtin SerifBold.
>
> I'm trying to define a fakebold feature for it, but the following code
> does not work:
>
> \definefontfeature[fakebold][effect={width=0.3, delta=0}]
>
> \definefontfallback [sunfallback] [name:simsun] [cjkunifiedideographs]
> \definefontfallback [sunbffallback] [name:simsun]
> [cjkunifiedideographs][features=fakebold]
>
> \definefontsynonym [Serif] [modern] [fallbacks=sunfallback]
> \definefontsynonym [SerifBold] [modern] [fallbacks=sunbffallback]
>
> \starttext
> 人 foo \bf 人 bar % bar is bold, the second 人 is not
> \stoptext
>
> Does anyone know how to define features for fallback font?
\definefallbackfamily [sylvain] [serif] [SimSun]
[range=cjkunifiedideographs,
bf={style:regular,features:boldened}]
\definefontfamily [sylvain] [serif] [Latin Modern Roman]
\definefontfamily [sylvain] [math] [Latin Modern Math]
\setupbodyfont [sylvain]
\starttext
人 foo {\bf 人 bar} 人 foo
\stoptext
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
___________________________________________________________________________________
prev parent reply other threads:[~2021-09-07 11:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-07 11:32 Sylvain Hubert via ntg-context
2021-09-07 11:46 ` Wolfgang Schuster 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=e438102a-e069-2de4-562a-b88af8f60bdb@gmail.com \
--to=ntg-context@ntg.nl \
--cc=wolfgang.schuster.lists@gmail.com \
/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).