ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font in \setuplanguage
@ 2018-09-17 19:30 Pablo Rodriguez
  2018-09-18  3:50 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2018-09-17 19:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \mainlanguage[es]
    \setuplanguage[agr][font=\grcface]
    \definefontfamily[grcface][rm][DejaVu Sans]
    \definefontfamily[mainface][rm][DejaVu Serif]
    \setupbodyfont[mainface]
    \starttext
    \startTEXpage[offset=1em]
    a {\agr β}
    \stopTEXpage
    \stoptext

I cannot get the Greek fragment using another font.

Is this a bug or am I missing something?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: font in \setuplanguage
  2018-09-17 19:30 font in \setuplanguage Pablo Rodriguez
@ 2018-09-18  3:50 ` Wolfgang Schuster
  2018-09-19 16:28   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2018-09-18  3:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

With the font key you can apply certain font features for a different 
language
but you can’t use it to switch to a different font.

To switch to a different font for your greek texts use this method:

\startsetups [greekfont]
   \switchtobodyfont [grcface]
\stopsetups

\setuplanguage[agr][setups=greekfont]

Wolfgang


Pablo Rodriguez schrieb am 17.09.18 um 21:30:
> Dear list,
>
> I have the following sample:
>
>      \mainlanguage[es]
>      \setuplanguage[agr][font=\grcface]
>      \definefontfamily[grcface][rm][DejaVu Sans]
>      \definefontfamily[mainface][rm][DejaVu Serif]
>      \setupbodyfont[mainface]
>      \starttext
>      \startTEXpage[offset=1em]
>      a {\agr β}
>      \stopTEXpage
>      \stoptext
>
> I cannot get the Greek fragment using another font.
>
> Is this a bug or am I missing something?
>
> Many thanks for your help,
>
> Pablo

___________________________________________________________________________________
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] 3+ messages in thread

* Re: font in \setuplanguage
  2018-09-18  3:50 ` Wolfgang Schuster
@ 2018-09-19 16:28   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2018-09-19 16:28 UTC (permalink / raw)
  To: ntg-context

On 9/18/18 5:50 AM, Wolfgang Schuster wrote:
> With the font key you can apply certain font features for a different 
> language but you can’t use it to switch to a different font.
> 
> To switch to a different font for your greek texts use this method:

Many thanks for your reply, Wolfgang.

I wonder whether it would make sense to enable a style option in
\setuplanguage.

Having to use setups is maybe too difficult for newcomers and style is a
common option in other commands.

I agree that font is handy when using different languages using the
Latin script. But style would make sense when dealing with different
scripts.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2018-09-19 16:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17 19:30 font in \setuplanguage Pablo Rodriguez
2018-09-18  3:50 ` Wolfgang Schuster
2018-09-19 16:28   ` 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).