\setmainfont[callig15][size=...] not working (simplefonts + calligra-type1)
Hi, Test file: --8<---------------cut here---------------start------------->8--- \usemodule[simplefonts] \setmainfont [callig15] % from http://www.ctan.org/tex-archive/fonts/calligra-type1/ [size=24pt] % does not work \setupbodyfont[24pt] % workaround \starttext \input tufte \stoptext --8<---------------cut here---------------end--------------->8--- No real problem, thanks to the workaround. -- Peter
On Sun, Jul 22, 2012 at 10:15 PM, Peter Münster
Hi,
Test file:
--8<---------------cut here---------------start------------->8--- \usemodule[simplefonts] \setmainfont [callig15] % from http://www.ctan.org/tex-archive/fonts/calligra-type1/ [size=24pt] % does not work \setupbodyfont[24pt] % workaround \starttext \input tufte \stoptext --8<---------------cut here---------------end--------------->8---
No real problem, thanks to the workaround.
-- Peter
___________________________________________________________________________________ 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
___________________________________________________________________________________
\usemodule[simplefonts] \setupsimplefonts[size=24pt] \setmainfont[callig15] \starttext \input tufte \stoptext or, given that default size is 12pt, \usemodule[simplefonts] \setmainfont[callig15] \setmainfont[callig15][scale=2] \starttext \input tufte \stoptext -- luigi
Am 23.07.2012 um 10:24 schrieb Peter Münster:
On Sun, Jul 22 2012, luigi scarso wrote:
\setupsimplefonts[size=24pt]
Just another workaround, or do you mean, that this is normal behavior?
This is normal, the simplefonts module passes the value also to \setupbodyfont which is used in the code to load the font. Wolfgang
Am 23.07.2012 um 11:14 schrieb Peter Münster:
On Mon, Jul 23 2012, Wolfgang Schuster wrote:
This is normal
So, is this the rule of thumb:
"You can set the size with `\setmainfont[...][size=...]' but there is one exception: with calligra-type1 you have to use `\setupsimplefonts[size=...]'."
No, you change the font size with \usemodule[simplefonts][size=…] *before* you set the fonts or with \setupsimplefonts[size=…] before *and* after you have set the fonts and with \setupbodyfont[…] *after* you have set the fonts. Wolfgang
On Mon, Jul 23 2012, Wolfgang Schuster wrote:
No, you change the font size with
\usemodule[simplefonts][size=…]
*before* you set the fonts or with
\setupsimplefonts[size=…]
before *and* after you have set the fonts and with
\setupbodyfont[…]
*after* you have set the fonts.
Thanks. So I guess, the conclusion is, that \setmainfont[...][size=...] is deprecated. -- Peter
On Mon, Jul 23 2012, Wolfgang Schuster wrote:
Am 23.07.2012 um 13:09 schrieb Peter Münster:
Thanks. So I guess, the conclusion is, that \setmainfont[...][size=…] is deprecated.
Can you declare a option deprecated which has never existed?
What is this? I'm sure, that I've always used this option without any problems (copied from some message on this list some time ago), and now, I realize, that it doesn't work, for *any* font! Sorry, there must be some bugs in my context-files, or in my brain... :( -- Peter
On Mon, Jul 23, 2012 at 2:59 PM, Peter Münster
On Mon, Jul 23 2012, Wolfgang Schuster wrote:
Am 23.07.2012 um 13:09 schrieb Peter Münster:
Thanks. So I guess, the conclusion is, that \setmainfont[...][size=…] is deprecated.
Can you declare a option deprecated which has never existed?
What is this? I'm sure, that I've always used this option without any problems (copied from some message on this list some time ago), and now, I realize, that it doesn't work, for *any* font!
After a quick search I have not found a valid use of \setmainfont[...][size=…] in this ml .
-- luigi
On Mon, Jul 23, 2012 at 11:14 AM, Peter Münster
On Mon, Jul 23 2012, Wolfgang Schuster wrote:
This is normal
So, is this the rule of thumb:
"You can set the size with `\setmainfont[...][size=...]' but there is one exception: with calligra-type1 you have to use `\setupsimplefonts[size=...]'."
?
The rationale (I think) is that a document has a main font size, (the reference font size) that you can set with \setupsimplefonts[size=...] Then, if you need to adjust the size of some variant w.r.t the reference size, then you can use \setmainfont[...][scale=...] (and not \setmainfont[...][size=...] ) and it's ok because so you use as reference the main font size.
-- luigi
participants (3)
-
luigi scarso
-
Peter Münster
-
Wolfgang Schuster