ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Questions regarding simplefonts
@ 2010-01-19 17:56 Nicolas Girard
  2010-01-19 18:03 ` Nicolas Girard
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Nicolas Girard @ 2010-01-19 17:56 UTC (permalink / raw)
  To: ConTeXt users

Hi again,
although simplefonts seems very promising and I put the highest hopes
on it, the lack of proper documentation simply prevents me to use it,
which is somewhat frustrating.
Here are some of my unanswered questions about simplefonts ; I'm
willing to update the wiki with any informations this thread could
bring.

1) How can I specify that the default font features should enable the
standard ligatures (liga) ?
I blindly tried several possibilities like
\setupsimplefonts[features={liga}] but none worked

2) How can I get \sc to work with a font  family whose small caps are
defined as a font feature, rather than dedicated .otf files ?

3) How can I get font expansion and protrusion to work using
simplefonts' dedicated keywords ? There again, I spent more than 30
minutes trying every combination I could think of, unsuccessfully.
I think it would be useful to have a complete example of code
involving simplefonts and expansion/protrusion that people could copy
& paste from the wiki

4) What is the purpose of the 'mode' keyword ?

Many thanks in advance,
cheers,
Nicolas
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Questions regarding simplefonts
  2010-01-19 17:56 Questions regarding simplefonts Nicolas Girard
@ 2010-01-19 18:03 ` Nicolas Girard
  2010-01-19 18:16 ` Wolfgang Schuster
  2010-01-19 20:15 ` Wolfgang Schuster
  2 siblings, 0 replies; 8+ messages in thread
From: Nicolas Girard @ 2010-01-19 18:03 UTC (permalink / raw)
  To: ConTeXt users

2010/1/19 Nicolas Girard <nicolas.girard@nerim.net>:
> Hi again,

I forgot this one:

5) My log files contain this reassuring message:

(/home/ngirard/context/tex/texmf-context/tex/context/third/simplefonts/t-simplefonts.tex
loading         : ConTeXt User Module / Simplefonts
)

immediatly followed with a puzzling one:

system          : module simplefonts not found


Should I ignore it ?

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

* Re: Questions regarding simplefonts
  2010-01-19 17:56 Questions regarding simplefonts Nicolas Girard
  2010-01-19 18:03 ` Nicolas Girard
@ 2010-01-19 18:16 ` Wolfgang Schuster
  2010-01-19 20:15 ` Wolfgang Schuster
  2 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2010-01-19 18:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 19.01.10 18:56, schrieb Nicolas Girard:
> 4) What is the purpose of the 'mode' keyword ?
it's the mode option from \definefontfeature, here is a explanation from 
Taco

http://www.ntg.nl/pipermail/ntg-context/2009/043782.html

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

* Re: Questions regarding simplefonts
  2010-01-19 17:56 Questions regarding simplefonts Nicolas Girard
  2010-01-19 18:03 ` Nicolas Girard
  2010-01-19 18:16 ` Wolfgang Schuster
@ 2010-01-19 20:15 ` Wolfgang Schuster
  2010-01-20  7:58   ` Marius
  2 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2010-01-19 20:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Am 19.01.10 18:56, schrieb Nicolas Girard:
> Hi again,
> although simplefonts seems very promising and I put the highest hopes
> on it, the lack of proper documentation simply prevents me to use it,
> which is somewhat frustrating.
I try to provide a proper documentation when I release the next
version of my module.
> Here are some of my unanswered questions about simplefonts ; I'm
> willing to update the wiki with any informations this thread could
> bring.
>
> 1) How can I specify that the default font features should enable the
> standard ligatures (liga) ?
> I blindly tried several possibilities like
> \setupsimplefonts[features={liga}] but none worked
Ligatures are enabled in ConTeXt default fontfeature and simplefonts 
applies only
the default features to the font, when you don't get them in your 
document this could
be a font problem, in most cases it helps to select a different script.

\setupsimplefonts[script=latin]

or

\setmainfont[...][script=latin]
> 2) How can I get \sc to work with a font  family whose small caps are
> defined as a font feature, rather than dedicated .otf files ?
The caps font is loaded by default by the smallcaps fontfeature,
if this did not work the problem could be the same as for the ligatures.
> 3) How can I get font expansion and protrusion to work using
> simplefonts' dedicated keywords ? There again, I spent more than 30
> minutes trying every combination I could think of, unsuccessfully.
> I think it would be useful to have a complete example of code
> involving simplefonts and expansion/protrusion that people could copy
> &  paste from the wiki

You can use the two keys expamsion ans protrusion, their values are
the same as you have e to write in \definefontfeature.

\setupsimplefonts[expansion=quality,protrusion=quality]


or


\setmainfont[...][expansion=quality,protrusion=quality]

Examples are available on bitbucket:
http://bitbucket.org/wolfs/simplefonts/src/tip/files/


Wolfgang


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

[-- Attachment #2: Type: text/plain, Size: 486 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] 8+ messages in thread

* Re: Questions regarding simplefonts
  2010-01-19 20:15 ` Wolfgang Schuster
@ 2010-01-20  7:58   ` Marius
  2010-01-20 12:59     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Marius @ 2010-01-20  7:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello all,

I add my questions regarding simplefonts to this thread too.
How to enable em dash and en dash? It looks like I need to set tlig to
yes, but with heading pasted below, the --- is not interpreted as em
dash.


%%%%%%%%%%%%%%%%
\usemodule[simplefonts]
\setmainfont[Times New Roman][script=latin, texligatures=yes]
\setsansfont[Arial Unicode MS]
\setmonofont[Courier New]

\setupbodyfont[10pt]

\setuppapersize[C5][C5]
\setupindenting[yes, medium, next]

\starttext
text---text
\stoptext
%%%%%%%%%%%%%%%%
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Questions regarding simplefonts
  2010-01-20  7:58   ` Marius
@ 2010-01-20 12:59     ` Wolfgang Schuster
  2010-01-20 13:52       ` Marius
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2010-01-20 12:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Am 20.01.10 08:58, schrieb Marius:
> Hello all,
>
> I add my questions regarding simplefonts to this thread too.
> How to enable em dash and en dash? It looks like I need to set tlig to
> yes, but with heading pasted below, the --- is not interpreted as em
> dash.
>
>
> %%%%%%%%%%%%%%%%
> \usemodule[simplefonts]
> \setmainfont[Times New Roman][script=latin, texligatures=yes]
\setmainfont[Times New Roman][mode=node]

It's a problem with the font as you can see in this example:

\definefontfeature[default][default][mode=node] % mode=base works

\definefont[times][name:timesnewroman*default]


\starttext

\times text---text

\stoptext

> \setsansfont[Arial Unicode MS]
> \setmonofont[Courier New]
>
> \setupbodyfont[10pt]
Can you use the module options to change the font size.

\usemodule[simplefonts][size=10pt]

or

\setupsimplefonts[size=10pt]

Wolfgang


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

[-- Attachment #2: Type: text/plain, Size: 486 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] 8+ messages in thread

* Re: Questions regarding simplefonts
  2010-01-20 12:59     ` Wolfgang Schuster
@ 2010-01-20 13:52       ` Marius
  2010-01-20 14:03         ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Marius @ 2010-01-20 13:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

On Wed, Jan 20, 2010 at 2:59 PM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>  Am 20.01.10 08:58, schrieb Marius:
>
> Hello all,
>
> I add my questions regarding simplefonts to this thread too.
> How to enable em dash and en dash? It looks like I need to set tlig to
> yes, but with heading pasted below, the --- is not interpreted as em
> dash.
>
>
> %%%%%%%%%%%%%%%%
> \usemodule[simplefonts]
> \setmainfont[Times New Roman][script=latin, texligatures=yes]
>
>  \setmainfont[Times New Roman][mode=node]
>
> It's a problem with the font as you can see in this example:
>
>  \definefontfeature[default][default][mode=node] % mode=base works
>
> \definefont[times][name:timesnewroman*default]
>
>
>  \starttext
>
> \times text---text
>
> \stoptext
>

I realy do not understand what these \definexxx commands mean, but  then I
set \setmainfont[Times New Roman][mode=base], I get em dash as expected,
thank you.

>  \setsansfont[Arial Unicode MS]
> \setmonofont[Courier New]
>
> \setupbodyfont[10pt]
>
>  Can you use the module options to change the font size.
>
> \usemodule[simplefonts][size=10pt]
>
> or
>
> \setupsimplefonts[size=10pt]
>

Why? It works as expected with \setupbodyfont[10pt] too.

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

[-- Attachment #2: Type: text/plain, Size: 486 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] 8+ messages in thread

* Re: Questions regarding simplefonts
  2010-01-20 13:52       ` Marius
@ 2010-01-20 14:03         ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2010-01-20 14:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Am 20.01.10 14:52, schrieb Marius:
> I realy do not understand what these \definexxx commands mean, but 
>  then I set \setmainfont[Times New Roman][mode=base], I get em dash as 
> expected, thank you.
http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf
>
>     Can you use the module options to change the font size.
>
>
> Why? It works as expected with \setupbodyfont[10pt] too.
Because it's the simplefont method but \setupbodyfont should work too.

Wolfgang


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

[-- Attachment #2: Type: text/plain, Size: 486 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] 8+ messages in thread

end of thread, other threads:[~2010-01-20 14:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-19 17:56 Questions regarding simplefonts Nicolas Girard
2010-01-19 18:03 ` Nicolas Girard
2010-01-19 18:16 ` Wolfgang Schuster
2010-01-19 20:15 ` Wolfgang Schuster
2010-01-20  7:58   ` Marius
2010-01-20 12:59     ` Wolfgang Schuster
2010-01-20 13:52       ` Marius
2010-01-20 14:03         ` Wolfgang Schuster

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