ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* features of fallback font
@ 2021-09-07 11:32 Sylvain Hubert via ntg-context
  2021-09-07 11:46 ` Wolfgang Schuster via ntg-context
  0 siblings, 1 reply; 2+ messages in thread
From: Sylvain Hubert via ntg-context @ 2021-09-07 11:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Sylvain Hubert

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?

Thanks!

Best,
Sylvain
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: features of fallback font
  2021-09-07 11:32 features of fallback font Sylvain Hubert via ntg-context
@ 2021-09-07 11:46 ` Wolfgang Schuster via ntg-context
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-07 11:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Sylvain Hubert via ntg-context
  Cc: Wolfgang Schuster

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-09-07 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07 11:32 features of fallback font Sylvain Hubert via ntg-context
2021-09-07 11:46 ` Wolfgang Schuster via ntg-context

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).