module article-basic interferes with \definebodyfont?
The following code: \enabletrackers[context.trace] %\usemodule[article-basic] \starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym [SansBold] [file:Optima.ttc(Optima Bold)] [features=default] \definefontsynonym [SansItalic] [file:Optima.ttc(Optima Italic)] [features=default] \definefontsynonym [SansBoldItalic] [file:Optima.ttc(Optima Bold Italic)] [features=default] \stoptypescript \definetypeface [optima] [ss] [sans] [optima] [default] \setupbodyfont [optima] \starttext \startMPpage[instance=doublefun] picture pic; pic := textext("\definebodyfont[14.9pt][rm][default=Regular at 14.9pt]\switchtobodyfont[14.9pt]\setupinterlinespace[16.9pt]\framed[align=center,frame=off,offset=none,width=335.350bp]{\colored[r=0.000, g=0.000, b=0.000]{\rm (Artifact)\\}}"); draw pic scaled 1.13; \stopMPpage \stoptext Produces nice Optima at 14.9pt without \usemodule[article-basic] (as above), but with \usemodule[article-basic] included, the output becomes some serif (modern?) font, but only if I use nonstandard font sizes. Took me some time to hunt this one down. I actually don’t know what article-basic does for me (I started out with an example given to me by Hans) and I don’t need it now, but I might need it later in combination with my own stuff G
Gerben Wierda schrieb am 01.05.2020 um 13:15:
The following code:
\enabletrackers[context.trace]
%\usemodule[article-basic]
\starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym [SansBold] [file:Optima.ttc(Optima Bold)] [features=default] \definefontsynonym [SansItalic] [file:Optima.ttc(Optima Italic)] [features=default] \definefontsynonym [SansBoldItalic] [file:Optima.ttc(Optima Bold Italic)] [features=default] \stoptypescript
\definetypeface [optima] [ss] [sans] [optima] [default]
Set a math font to avoid problems.
\setupbodyfont [optima]
\starttext
\startMPpage[instance=doublefun] picture pic; pic := textext("\definebodyfont[14.9pt][rm][default=Regular at 14.9pt]\switchtobodyfont[14.9pt]\setupinterlinespace[16.9pt]\framed[align=center,frame=off,offset=none,width=335.350bp]{\colored[r=0.000, g=0.000, b=0.000]{\rm (Artifact)\\}}");
You use \rm here which is used to switch to the serif typeface. When your goal is to enforce the upright alternative you use the wrong command because you need \tf for this. Wolfgang
On 1 May 2020, at 13:22, Wolfgang Schuster
wrote: Gerben Wierda schrieb am 01.05.2020 um 13:15:
The following code: \enabletrackers[context.trace] %\usemodule[article-basic] \starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym [SansBold] [file:Optima.ttc(Optima Bold)] [features=default] \definefontsynonym [SansItalic] [file:Optima.ttc(Optima Italic)] [features=default] \definefontsynonym [SansBoldItalic] [file:Optima.ttc(Optima Bold Italic)] [features=default] \stoptypescript \definetypeface [optima] [ss] [sans] [optima] [default]
Set a math font to avoid problems.
\setupbodyfont [optima] \starttext \startMPpage[instance=doublefun] picture pic; pic := textext("\definebodyfont[14.9pt][rm][default=Regular at 14.9pt]\switchtobodyfont[14.9pt]\setupinterlinespace[16.9pt]\framed[align=center,frame=off,offset=none,width=335.350bp]{\colored[r=0.000, g=0.000, b=0.000]{\rm (Artifact)\\}}");
You use \rm here which is used to switch to the serif typeface. When your goal is to enforce the upright alternative you use the wrong command because you need \tf for this.
Thank you, that got me the right info on ConTeXtgarden. I now use \tf and: \starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym [SansBold] [file:Optima.ttc(Optima Bold)] [features=default] \definefontsynonym [SansItalic] [file:Optima.ttc(Optima Italic)] [features=default] \definefontsynonym [SansBoldItalic] [file:Optima.ttc(Optima Bold Italic)] [features=default] \stoptypescript \definetypeface [optima] [ss] [sans] [optima] [default] \definetypeface [optima] [rm] [serif] [optima] [default] \definetypeface [optima] [tt] [mono] [modern] [default] \definetypeface [optima] [mm] [math] [optima] [default] \setupbodyfont [optima] As I now understand it, I have now defined the typescript for sans, but created a setup that sans is the fallback. I have also defined rm, tt and mm explicitly. But my guess is that if I had used ss instead of rm everywhere in my code it would have worked as well. G
On 5/1/2020 1:58 PM, Gerben Wierda wrote:
But my guess is that if I had used ss instead of rm everywhere in my code it would have worked as well.
or define the ss first and don't use \rm (first defined is default) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Gerben Wierda schrieb am 01.05.2020 um 13:58:
\definetypeface [optima] [ss] [sans] [optima] [default] \definetypeface [optima] [rm] [serif] [optima] [default] \definetypeface [optima] [tt] [mono] [modern] [default] \definetypeface [optima] [mm] [math] [optima] [default]
\setupbodyfont [optima]
As I now understand it, I have now defined the typescript for sans, but created a setup that sans is the fallback. I have also defined rm, tt and mm explicitly.
This does not work because you have no serif or math typescripts for optima (\starttypescript [serif] [optima]) defined. Wolfgang
On 1 May 2020, at 16:02, Wolfgang Schuster
Gerben Wierda schrieb am 01.05.2020 um 13:58:
\definetypeface [optima] [ss] [sans] [optima] [default] \definetypeface [optima] [rm] [serif] [optima] [default] \definetypeface [optima] [tt] [mono] [modern] [default] \definetypeface [optima] [mm] [math] [optima] [default] \setupbodyfont [optima] As I now understand it, I have now defined the typescript for sans, but created a setup that sans is the fallback. I have also defined rm, tt and mm explicitly.
This does not work because you have no serif or math typescripts for optima (\starttypescript [serif] [optima]) defined.
Yes, I was in doubt about that, but I guessed that the fallback maybe took care of that. \setups[font:fallback:sans] mm should be modern anyway, I think (not that I need it, I only want the ss form anyway). G
Wolfgang
On 5/1/2020 6:19 PM, Gerben Wierda wrote:
mm should be modern anyway, I think (not that I need it, I only want the ss form anyway). use pagella math with optima, not modern
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
use pagella math with optima, not modern
Zo? \definetypeface [optima] [mm] [math] [pagella] [default] Ik gok, want documentatie die dat helder maakt heb ik niet. Er is geen uitleg in de manuals die bij de standalone context komen en op ContextGarden vond ik vooral mkii zaken die niet meer geldig/juist zijn. G
On 5/1/2020 11:33 PM, Gerben Wierda wrote:
use pagella math with optima, not modern
Zo?
\definetypeface [optima] [mm] [math] [pagella] [default]
Ik gok, want documentatie die dat helder maakt heb ik niet. Er is geen uitleg in de manuals die bij de standalone context komen en op ContextGarden vond ik voora l mkii zaken die niet meer geldig/juist zijn. er is een dikke font manual en verder is er wolfgangs module (met documentatie, ook op de wiki) maar meestal is een font setup vrij simple: ik zelf pak gewoon een type-imp-* file, copieer wat regels en vul dan de font file namen in; er zit ook allerhande font spul in de test suite
(dutch answer to dutch question) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Gerben Wierda schrieb am 01.05.2020 um 18:19:
On 1 May 2020, at 16:02, Wolfgang Schuster
mailto:wolfgang.schuster.lists@gmail.com> wrote: Gerben Wierda schrieb am 01.05.2020 um 13:58:
\definetypeface [optima] [ss] [sans] [optima] [default] \definetypeface [optima] [rm] [serif] [optima] [default] \definetypeface [optima] [tt] [mono] [modern] [default] \definetypeface [optima] [mm] [math] [optima] [default] \setupbodyfont [optima] As I now understand it, I have now defined the typescript for sans, but created a setup that sans is the fallback. I have also defined rm, tt and mm explicitly.
This does not work because you have no serif or math typescripts for optima (\starttypescript [serif] [optima]) defined.
Yes, I was in doubt about that, but I guessed that the fallback maybe took care of that.
\setups[font:fallback:sans]
mm should be modern anyway, I think (not that I need it, I only want the ss form anyway).
This has still nothing to do with the serif/roman style, what the setup does is to map the slanted and boldslanted alternatives to the italic files. You can achieve the same with two additional \definefontsynonym lines for "SansSlanted" and "SansBoldSlanted". Wolfgang
On 5/1/2020 1:15 PM, Gerben Wierda wrote:
The following code:
\enabletrackers[context.trace]
%\usemodule[article-basic]
\starttypescript [sans] [optima] \setups[font:fallback:sans] \definefontsynonym [Sans] [file:Optima.ttc(Optima Regular)] [features=default] \definefontsynonym [SansBold] [file:Optima.ttc(Optima Bold)] [features=default] \definefontsynonym [SansItalic] [file:Optima.ttc(Optima Italic)] [features=default] \definefontsynonym [SansBoldItalic] [file:Optima.ttc(Optima Bold Italic)] [features=default] \stoptypescript
\definetypeface [optima] [ss] [sans] [optima] [default]
\definetypeface [optima] [rm] [sans] [optima] [default] \definetypeface [optima] [tt] [mono] [dejavu]
\setupbodyfont [optima]
\starttext
\startMPpage[instance=doublefun] picture pic; pic := textext("\definebodyfont[14.9pt][rm][default=Regular at 14.9pt]\switchtobodyfont[14.9pt]\setupinterlinespace[16.9pt]\framed[align=center,frame=off,offset=none,width=335.350bp]{\colored[r=0.000, g=0.000, b=0.000]{\rm (Artifact)\\}}"); draw pic scaled 1.13; \stopMPpage
\stoptext
Produces nice Optima at 14.9pt without \usemodule[article-basic] (as above), but with \usemodule[article-basic] included, the output becomes some serif (modern?) font, /but only if I use nonstandard font sizes/.
Took me some time to hunt this one down.
I actually don’t know what article-basic does for me (I started out with an example given to me by Hans) and I don’t need it now, but I might need it later in combination with my own stuff
G
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Gerben Wierda
-
Hans Hagen
-
Wolfgang Schuster