On 23 Apr 2020, at 19:18, Henning Hraban Ramm <texml@fiee.net> wrote:


Am 23.04.2020 um 16:42 schrieb Gerben Wierda <gerben.wierda@rna.nl>:


On 23 Apr 2020, at 16:34, Henning Hraban Ramm <texml@fiee.net> wrote:


Am 23.04.2020 um 16:22 schrieb Gerben Wierda <gerben.wierda@rna.nl>:



On 23 Apr 2020, at 16:16, Vladimir Lomov <lomov.vl@yandex.ru> wrote:

Hello,
** Gerben Wierda <gerben.wierda@rna.nl> [2020-04-23 16:00:34 +0200]:

On my Mac, I am trying:

\definefontfamily[mainface][rm][Optima]
\setupbodyfont[mainface,10pt]

{\bf Bold} and {\it Italic} and {\rm Regular} text.

https://wiki.contextgarden.net/Font_Switching

What do I need to do to get actual bold and italics in my output?

\bi == \bf\it

Or by "actual bold" you mean something different?

Yes, in my output everything is regular, there is no bold or italics text, even when I use \bf or \it

What do you get from
mtxrun --script=fonts --list --all --pattern=Optima

hermione:Export and Metapost gerben$ mtxrun --script fonts --list --all --pattern=optima
identifier         familyname   fontname           filename                           subfont   instances

optimablack        optima       optimaextrablack   /System/Library/Fonts/Optima.ttc   5
optimabold         optima       optimabold         /System/Library/Fonts/Optima.ttc   2
optimabolditalic   optima       optimabolditalic   /System/Library/Fonts/Optima.ttc   4
optimaextrablack   optima       optimaextrablack   /System/Library/Fonts/Optima.ttc   5
optimaitalic       optima       optimaitalic       /System/Library/Fonts/Optima.ttc   3
optimanormal       optima       optimaregular      /System/Library/Fonts/Optima.ttc   1
optimaregular      optima       optimaregular      /System/Library/Fonts/Optima.ttc   1

Hm. Here, ConTeXt only found subfont #5 until I rebuilt the font cache, then it looked like yours.

And the minimal example (plus \starttext ... \stoptext) worked.

(Latest ConTeXt on MacOS Mojave.)


No such luck for me. Any help welcome. I did remove the macOS font cache with sudo atsutil databases -remove and I rebooted. I am running an up to date macOS Mojave.

\starttext
\definefontfamily[mainface][rm][Optima]
\setupbodyfont[mainface,10pt]

{\bf Bold} and {\it Italic} and {\rm Regular} text.
\stoptext

results in



Console:

$ context test.tex

resolvers       | formats | executing runner 'run luametatex format': /usr/local/context-osx-64/tex/texmf-osx-64/bin/luametatex --jobname="test" --fmt=/usr/local/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/usr/local/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui cont-yes.mkiv --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/usr/local/context-osx-64/tex/texmf-osx-64/bin"
This is LuaMetaTeX, Version 2.05.01 
open source     > level 1, order 1, name 'cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2020.04.03 10:31 MKIV beta  fmt: 2020.4.7  int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name '/usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 2, order 2, name '/usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system          > files > jobname 'test', input './test', result 'test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name './test.tex'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
backend         > xmp > using file '/usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 3, name './test.tex'
close source    > level 1, order 3, name 'cont-yes.mkiv'

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /usr/local/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 468 modules (0.361 sec), 93 tables (0.021 sec), 561 chunks (0.382 sec)
mkiv lua stats  > traced context: maxstack: 1414, freed: 0, unreachable: 1414
mkiv lua stats  > cleaned up reserved nodes: 57 nodes, 9 lists of 442
mkiv lua stats  > node memory usage: 6 attribute, 3 attribute_list, 1 glue, 51 glue_spec, 3 kern, 2 penalty, 2 temp, 2 whatsit
mkiv lua stats  > node list callback tasks: 8 unique task lists, 7 instances (re)created, 36 calls
mkiv lua stats  > used backend: lmtx version 0.10, pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: internal: 100, file: 142, direct: 2, late: 0, function 1222, total: 1466
mkiv lua stats  > randomizer: resumed with value 0.43716649460098
mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, objectcompresslevel 1
mkiv lua stats  > loaded patterns: en::1, load time: 0.000
mkiv lua stats  > loaded fonts: 3 files: optima.ttc, latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > font engine: otf 3.111, afm 1.513, tfm 1.000, 13 instances, 6 shared in backend, 4 common vectors, 2 common hashes, load time 0.447 seconds 
mkiv lua stats  > font embedding time: 0.008 seconds, 1 fonts
mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: texmf-osx-64
mkiv lua stats  > used engine: luametatex version: 2.0501, functionality level: 20200402, format id: 491, compiler: clang
mkiv lua stats  > control sequences: 46577 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.4, used memory: 55 MB, ctx: 54 MB, max: 54 MB, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 1.035 seconds, 1 processed pages, 1 shipped pages, 0.966 pages/second
system          | total runtime: 1.060 seconds of 1.181 seconds



Best, Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________