From: ai2472206007@yeah.net
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: fake slant for definefallbackfamily
Date: Sat, 19 Oct 2024 04:50:04 -0000 [thread overview]
Message-ID: <172931340477.1601628.9904386783724123198@cgl.ntg.nl> (raw)
In-Reply-To: <CACNy3NCwd_WBvFGPsosLOqhFiaZy-6GH7JsMr24H41qGQGMedQ@mail.gmail.com>
There is no complete example. I created a new one. The following example is working on my computer.
% Maybe you need to explicitly specify the font name through the “tf” parameter.
% Just replace “adobesongstdlight” with your own font.
%%%%%%
\definefallbackfamily [mainface][rm][adobesongstd][tf={adobesongstdlight},sl={features:slanted},preset=range:chinese]
\definefontfamily [mainface][rm][libertinusserif]
\setupbodyfont [mainface]
\mainlanguage[cn]
\setupscript[hanzi]
\sl 李信真是太好玩了,还带保送的 some word others
%%%%%%%
Because there are many hanzi characters in Chinese,
it is scattered in different ranges, so the scope of Chinese characters is defined.
You can define it by \definefontfamilypreset.
These ranges are in: https://wiki.contextgarden.net/List_of_Unicode_blocks.
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-10-19 4:55 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 ` ai2472206007 [this message]
2024-10-20 17:00 ` [NTG-context] " Pablo Rodriguez 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=172931340477.1601628.9904386783724123198@cgl.ntg.nl \
--to=ai2472206007@yeah.net \
--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).