fake slant for definefallbackfamily
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? According to https://wiki.contextgarden.net/index.php?title=Command/definefallbackfamily , the following should work, but it actually doesn't: \definefallbackfamily[mainface][rm][My Fancy Font][preset={range:chinese},sl=features:slanted] Besides, the wiki page lists an option `range=...` in the last bracket, but what's actually used is `preset=range:...`. Are they mistakes?
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.
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
participants (3)
-
ai2472206007@yeah.net
-
Pablo Rodriguez
-
Sylvain Hubert