ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* fallback font in new interface to simplefonts
@ 2014-01-25 12:10 Pablo Rodriguez
  2014-01-25 12:20 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2014-01-25 12:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

the following code doesn’t find the fallback font for Hebrew:

\definefallbackfamily[mainface][serif][FreeMono-Bold][range={hebrew,
alphabeticpresentationforms}, force=yes]
\definefontfamily[mainface][serif][TeX Gyre Pagella]
\setupbodyfont[mainface]
\starttext
ץ׃​.
\stoptext

But the same font works with the old interface:

\usemodule[simplefonts]
\setmainfontfallback[FreeMono-Bold][range={hebrew,
alphabeticpresentationforms}, force=yes]
\setmainfont[TeX Gyre Pagella]
\starttext
ץ׃​.
\stoptext

Am I doing something wrong here?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: fallback font in new interface to simplefonts
  2014-01-25 12:10 fallback font in new interface to simplefonts Pablo Rodriguez
@ 2014-01-25 12:20 ` Wolfgang Schuster
  2014-01-25 12:37   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2014-01-25 12:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1678 bytes --]

Hi Pablo,  

you have to use the name of the font family (the name which is displayed in word processors when you choose a font). When you want to use the bold font for the upright style you can add “tf=style:bold” to the fourth argument of \definefallbackfamily.  

  \definefallbackfamily[mainface][serif][FreeMono][tf=style:bold,range={hebrew,alphabeticpresentationforms}]  

BTW: You can omit “force=yes” because it’s part of the default setup.  

Wolfgang  

On 25.01.2014 13:10:44, Pablo Rodriguez <oinos@gmx.es> wrote: Dear list,

the following code doesn’t find the fallback font for Hebrew:

\definefallbackfamily[mainface][serif][FreeMono-Bold][range={hebrew,
alphabeticpresentationforms}, force=yes]
\definefontfamily[mainface][serif][TeX Gyre Pagella]
\setupbodyfont[mainface]
\starttext
ץ׃​.
\stoptext

But the same font works with the old interface:

\usemodule[simplefonts]
\setmainfontfallback[FreeMono-Bold][range={hebrew,
alphabeticpresentationforms}, force=yes]
\setmainfont[TeX Gyre Pagella]
\starttext
ץ׃​.
\stoptext

Am I doing something wrong here?

Many thanks for your help,


Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________ 

[-- Attachment #1.2: Type: text/html, Size: 1882 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: fallback font in new interface to simplefonts
  2014-01-25 12:20 ` Wolfgang Schuster
@ 2014-01-25 12:37   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2014-01-25 12:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 01/25/2014 01:20 PM, Wolfgang Schuster wrote:
> Hi Pablo,
> 
> you have to use the name of the font family (the name which is displayed
> in word processors when you choose a font). When you want to use the
> bold font for the upright style you can add “tf=style:bold” to the
> fourth argument of \definefallbackfamily.
> 
> \definefallbackfamily[mainface][serif][FreeMono][tf=style:bold,range={hebrew,alphabeticpresentationforms}]
> 
> BTW: You can omit “force=yes” because it’s part of the default setup.

Many thanks for your help, Wolfgang.


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2014-01-25 12:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-25 12:10 fallback font in new interface to simplefonts Pablo Rodriguez
2014-01-25 12:20 ` Wolfgang Schuster
2014-01-25 12:37   ` Pablo Rodriguez

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