ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* module article-basic interferes with \definebodyfont?
@ 2020-05-01 11:15 Gerben Wierda
  2020-05-01 11:22 ` Wolfgang Schuster
  2020-05-01 11:31 ` Hans Hagen
  0 siblings, 2 replies; 11+ messages in thread
From: Gerben Wierda @ 2020-05-01 11:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-05-01 22:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-01 11:15 module article-basic interferes with \definebodyfont? Gerben Wierda
2020-05-01 11:22 ` Wolfgang Schuster
2020-05-01 11:58   ` Gerben Wierda
2020-05-01 13:43     ` Hans Hagen
2020-05-01 14:02     ` Wolfgang Schuster
2020-05-01 16:19       ` Gerben Wierda
2020-05-01 18:01         ` Hans Hagen
2020-05-01 21:33           ` Gerben Wierda
2020-05-01 22:32             ` Hans Hagen
2020-05-01 19:00         ` Wolfgang Schuster
2020-05-01 11:31 ` Hans Hagen

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