Re: [NTG-context] Auto selecting optical sizes for a font
![](https://secure.gravatar.com/avatar/2ca46745b6298e53f48d12a023e0adf0.jpg?s=120&d=mm&r=g)
Am 22.06.2013 16:57, schrieb Hans Hagen:
We have no feature 'size' (or I must have forgotten about it). As there is no consistency in designsizes and there is always some esthetic choice involved no automatic mechanism is (and will be) build in.
Hi, There is a 'size' table in opentype fonts which contains informations about the design size, the design range and a style-ID and -name. Fonts that come with different optical sizes do in fact use that table exactly for the purpose desired by Andrés. Latin Modern does so, Adobe fonts do so and EB Garamond happens to use that table too. XeLaTeX and LuaLaTeX interpret it correctly (by means of fontspec, IIRC). So perhaps it’s worth reconsidering this. Best regards, Georg
![](https://secure.gravatar.com/avatar/2108b4611c915035ac4d553468360111.jpg?s=120&d=mm&r=g)
HI Georg, All,
as such ConTexT should support the use of the size table in its font handling,
but as Hans has mentioned design sizes a very special and few actually know
what that information means and put it to a useful purpose.
Question would be in far this font feature should be rudimentarily supported.
regards
Keith.
Am 24.06.2013 um 00:28 schrieb Georg Duffner
Am 22.06.2013 16:57, schrieb Hans Hagen:
We have no feature 'size' (or I must have forgotten about it). As there is no consistency in designsizes and there is always some esthetic choice involved no automatic mechanism is (and will be) build in.
Hi,
There is a 'size' table in opentype fonts which contains informations about the design size, the design range and a style-ID and -name. Fonts that come with different optical sizes do in fact use that table exactly for the purpose desired by Andrés. Latin Modern does so, Adobe fonts do so and EB Garamond happens to use that table too. XeLaTeX and LuaLaTeX interpret it correctly (by means of fontspec, IIRC). So perhaps it’s worth reconsidering this.
Best regards, Georg ___________________________________________________________________________________ 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 ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 6/24/2013 10:02 AM, Keith J. Schultz wrote:
HI Georg, All,
as such ConTexT should support the use of the size table in its font handling, but as Hans has mentioned design sizes a very special and few actually know what that information means and put it to a useful purpose.
Question would be in far this font feature should be rudimentarily supported.
it is (and has always been) supported, given that one loads the goodie file and sets the option, and it's not even that rudimentary (and as you say, design sizes are dangerous when misused) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 6/24/2013 12:28 AM, Georg Duffner wrote:
Am 22.06.2013 16:57, schrieb Hans Hagen:
We have no feature 'size' (or I must have forgotten about it). As there is no consistency in designsizes and there is always some esthetic choice involved no automatic mechanism is (and will be) build in.
Hi,
There is a 'size' table in opentype fonts which contains informations about the design size, the design range and a style-ID and -name. Fonts that come with different optical sizes do in fact use that table exactly for the purpose desired by Andrés. Latin Modern does so, Adobe fonts do so and EB Garamond happens to use that table too. XeLaTeX and LuaLaTeX interpret it correctly (by means of fontspec, IIRC). So perhaps it’s worth reconsidering this.
It's too much trouble for the few fonts that come in design sizes. As typescripts need to be defined adding the bit of extra info is no problem. I had a look at the relevant info and in order to make it work with the context font loader (the name driven one, as for files it is irrelevant anyway) quite some fuzzy logic has to be applied: we need a proper way (at least in context) to identify regular, italic, bold italic etc combined with the font name and the fact that names (as well as modifiers) are poluted makes that for lm a different logic has to be applied than for eb and if I don't do some filtering we get an inconsistent lot of of antykwas being seen as a design size collection as well. I just tried to make a an auto-internal-goodie generator and some tracing showed me that if we can get 50% done right, we need to work around the other 50%. (I have lots of fonts on my system). So for the moment I'll stick to providing goodies files. After all, users load a relevant typescript anyway so much gets hidden. If we get dozens of design sized files I'll look into it again. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Georg Duffner
-
Hans Hagen
-
Keith J. Schultz