ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* syntax for \definesimplefont in TeX Live version of simplefonts
@ 2013-11-14 15:42 Lars Huttar
  2013-11-14 16:31 ` Wolfgang Schuster
  2013-11-14 16:35 ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: Lars Huttar @ 2013-11-14 15:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,
We are using simplefonts, the version included with TeX Live 2013. As
mentioned in another email, we don't have the freedom to experiment with
potentially unstable versions.

I've been reading
http://wiki.contextgarden.net/simplefonts
and have it working well so far with the mainfont, sansfont, and
mainfontfallback.

The part I need help with is for using another font.
http://wiki.contextgarden.net/simplefonts#Defining_other_typefaces_and_fonts
says we can use

  * |\definesimplefont|, defines a font for the use in headers or other
    style elements.
  * |\simplefont|, defines a font for inline use.

Can anyone tell me the syntax for these commands - and for using them?
I tried
 \definesimplefont[titleface][Gentium Basic]
 ...
 \setupbodyfont[titleface]

There are no complaints and the \definesimplefont line, but I don't know
if it's the right syntax. And the \setupbodyfont line is giving the warning
  fonts > typescripts > unknown library 'titleface'



So I'm guessing that the \definesimplefont line is correct, but I just
don't know how to use the defined font.


Help please?


Thanks,
Lars

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

* Re: syntax for \definesimplefont in TeX Live version of simplefonts
  2013-11-14 15:42 syntax for \definesimplefont in TeX Live version of simplefonts Lars Huttar
@ 2013-11-14 16:31 ` Wolfgang Schuster
  2013-11-14 16:51   ` Lars Huttar
  2013-11-14 16:35 ` Aditya Mahajan
  1 sibling, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2013-11-14 16:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.11.2013 um 16:42 schrieb Lars Huttar <lars_huttar@sil.org>:

> Hello,
> We are using simplefonts, the version included with TeX Live 2013. As
> mentioned in another email, we don't have the freedom to experiment with
> potentially unstable versions.
> 
> I've been reading
> http://wiki.contextgarden.net/simplefonts
> and have it working well so far with the mainfont, sansfont, and
> mainfontfallback.
> 
> The part I need help with is for using another font.
> http://wiki.contextgarden.net/simplefonts#Defining_other_typefaces_and_fonts
> says we can use
> 
>  * |\definesimplefont|, defines a font for the use in headers or other
>    style elements.
>  * |\simplefont|, defines a font for inline use.
> 
> Can anyone tell me the syntax for these commands - and for using them?
> I tried
> \definesimplefont[titleface][Gentium Basic]
> ...
> \setupbodyfont[titleface]
> 
> There are no complaints and the \definesimplefont line, but I don't know
> if it's the right syntax. And the \setupbodyfont line is giving the warning
>  fonts > typescripts > unknown library 'titleface'
> 
> 
> 
> So I'm guessing that the \definesimplefont line is correct, but I just
> don't know how to use the defined font.

The \definesimplefont command can be used when you want a certain font
for the chapter, section etc. heading, e.g.

  \definesimplefont[ChapterFont][Gentium Basic][size=24pt]

  \setuphead[chapter][style=ChapterFont]

but I don’t recommend this command anymore (and removed it from the new version)
because you can get the same result with a custom typeface, e.g.

  \definesimplefonttypeface[chapterfont][Gentium Basic]

  \definefont[ChapterFont][\classfont{chapterfont}{Serif} at 24pt]

  \setuphead[chapter][style=ChapterFont]


When you want to change only the global font for your document you
need the \definesimplefonttypeface command, e.g.

  \definesimplefonttypeface[documentfont][Gentium Basic]

  \setupbodyfont[documentfont]


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


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

* Re: syntax for \definesimplefont in TeX Live version of simplefonts
  2013-11-14 15:42 syntax for \definesimplefont in TeX Live version of simplefonts Lars Huttar
  2013-11-14 16:31 ` Wolfgang Schuster
@ 2013-11-14 16:35 ` Aditya Mahajan
  2013-11-14 16:50   ` Lars Huttar
  1 sibling, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2013-11-14 16:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 14 Nov 2013, Lars Huttar wrote:

> I tried
> \definesimplefont[titleface][Gentium Basic]
> ...
> \setupbodyfont[titleface]

> So I'm guessing that the \definesimplefont line is correct, but I just
> don't know how to use the defined font.

\titleface

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

* Re: syntax for \definesimplefont in TeX Live version of simplefonts
  2013-11-14 16:35 ` Aditya Mahajan
@ 2013-11-14 16:50   ` Lars Huttar
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Huttar @ 2013-11-14 16:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/14/2013 11:35 AM, Aditya Mahajan wrote:
> On Thu, 14 Nov 2013, Lars Huttar wrote:
>
>> I tried
>> \definesimplefont[titleface][Gentium Basic]
>> ...
>> \setupbodyfont[titleface]
>
>> So I'm guessing that the \definesimplefont line is correct, but I just
>> don't know how to use the defined font.
>
> \titleface

So simple! <facepalm>

Thanks...

Lars

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

* Re: syntax for \definesimplefont in TeX Live version of simplefonts
  2013-11-14 16:31 ` Wolfgang Schuster
@ 2013-11-14 16:51   ` Lars Huttar
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Huttar @ 2013-11-14 16:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/14/2013 11:31 AM, Wolfgang Schuster wrote:
> Am 14.11.2013 um 16:42 schrieb Lars Huttar <lars_huttar@sil.org>:
>
>> Hello,
>> We are using simplefonts, the version included with TeX Live 2013. As
>> mentioned in another email, we don't have the freedom to experiment with
>> potentially unstable versions.
>>
>> I've been reading
>> http://wiki.contextgarden.net/simplefonts
>> and have it working well so far with the mainfont, sansfont, and
>> mainfontfallback.
>>
>> The part I need help with is for using another font.
>> http://wiki.contextgarden.net/simplefonts#Defining_other_typefaces_and_fonts
>> says we can use
>>
>>  * |\definesimplefont|, defines a font for the use in headers or other
>>    style elements.
>>  * |\simplefont|, defines a font for inline use.
>>
>> Can anyone tell me the syntax for these commands - and for using them?
>> I tried
>> \definesimplefont[titleface][Gentium Basic]
>> ...
>> \setupbodyfont[titleface]
>>
>> There are no complaints and the \definesimplefont line, but I don't know
>> if it's the right syntax. And the \setupbodyfont line is giving the warning
>>  fonts > typescripts > unknown library 'titleface'
>>
>>
>>
>> So I'm guessing that the \definesimplefont line is correct, but I just
>> don't know how to use the defined font.
> The \definesimplefont command can be used when you want a certain font
> for the chapter, section etc. heading, e.g.
>
>   \definesimplefont[ChapterFont][Gentium Basic][size=24pt]
>
>   \setuphead[chapter][style=ChapterFont]
>
> but I don’t recommend this command anymore (and removed it from the new version)
> because you can get the same result with a custom typeface, e.g.
>
>   \definesimplefonttypeface[chapterfont][Gentium Basic]
>
>   \definefont[ChapterFont][\classfont{chapterfont}{Serif} at 24pt]
>
>   \setuphead[chapter][style=ChapterFont]
>
>
> When you want to change only the global font for your document you
> need the \definesimplefonttypeface command, e.g.
>
>   \definesimplefonttypeface[documentfont][Gentium Basic]
>
>   \setupbodyfont[documentfont]
>
>
> Wolfgang

Thanks, very helpful.
I will update the wiki page with this.

Lars

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

end of thread, other threads:[~2013-11-14 16:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-14 15:42 syntax for \definesimplefont in TeX Live version of simplefonts Lars Huttar
2013-11-14 16:31 ` Wolfgang Schuster
2013-11-14 16:51   ` Lars Huttar
2013-11-14 16:35 ` Aditya Mahajan
2013-11-14 16:50   ` Lars Huttar

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