On my Mac, I am trying: \definefontfamily[mainface][rm][Optima] \setupbodyfont[mainface,10pt] {\bf Bold} and {\it Italic} and {\rm Regular} text. What do I need to do to get actual bold and italics in my output? Thx, G
Hello,
** Gerben Wierda
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?
Thx,
G
--- WBR, Vladimir Lomov -- There has been an alarming increase in the number of things you know nothing about.
On 23 Apr 2020, at 16:16, Vladimir Lomov
wrote: Hello, ** Gerben Wierda
[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 G
Thx,
G
--- WBR, Vladimir Lomov
-- There has been an alarming increase in the number of things you know nothing about. ___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 23.04.2020 um 16:22 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:16, Vladimir Lomov
wrote: Hello, ** Gerben Wierda
[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 ? Best, Hraban
On 23 Apr 2020, at 16:34, Henning Hraban Ramm
wrote: Am 23.04.2020 um 16:22 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:16, Vladimir Lomov
wrote: Hello, ** Gerben Wierda
[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
?
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 ___________________________________________________________________________________
Am 23.04.2020 um 16:42 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:34, Henning Hraban Ramm
wrote: Am 23.04.2020 um 16:22 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:16, Vladimir Lomov
wrote: Hello, ** Gerben Wierda
[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.) Best, Hraban
On 23 Apr 2020, at 19:18, Henning Hraban Ramm
wrote: Am 23.04.2020 um 16:42 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:34, Henning Hraban Ramm
wrote: Am 23.04.2020 um 16:22 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:16, Vladimir Lomov
wrote: Hello, ** Gerben Wierda
[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 Gerben Wierda Chess and the Art of Enterprise Architecture https://ea.rna.nl/the-book/ Mastering ArchiMate https://ea.rna.nl/the-book-edition-iii/ Architecture for Real Enterprises https://www.infoworld.com/blog/architecture-for-real-enterprises/ at InfoWorld On Slippery Ice https://eapj.org/on-slippery-ice/ at EAPJ 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 ___________________________________________________________________________________
Hello,
** Gerben Wierda
On 23 Apr 2020, at 19:18, Henning Hraban Ramm
wrote: Am 23.04.2020 um 16:42 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:34, Henning Hraban Ramm
wrote:
[...]
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.
I think Henning Hraban Ramm meant not OS font cache (but may be including it, I'm not a Mac OS user) but context font cache. Run $ mtxrun --script fonts --reload --force and try above '--list --all ...' command again and your example:
\starttext \definefontfamily[mainface][rm][Optima] \setupbodyfont[mainface,10pt]
{\bf Bold} and {\it Italic} and {\rm Regular} text. \stoptext
Hope this will resolve you issue. [...] --- WBR, Vladimir Lomov -- Practically perfect people never permit sentiment to muddle their thinking. -- Mary Poppins
It's noticed that Optima is a Sans Serif font.
Maybe it conflicts with MacOS way to handle fonts.
Le ven. 24 avr. 2020 à 01:10, Vladimir Lomov
Hello, ** Gerben Wierda
[2020-04-23 23:57:26 +0200]: On 23 Apr 2020, at 19:18, Henning Hraban Ramm
wrote: Am 23.04.2020 um 16:42 schrieb Gerben Wierda
: On 23 Apr 2020, at 16:34, Henning Hraban Ramm
wrote: [...]
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.
I think Henning Hraban Ramm meant not OS font cache (but may be including it, I'm not a Mac OS user) but context font cache. Run
$ mtxrun --script fonts --reload --force
and try above '--list --all ...' command again and your example:
\starttext \definefontfamily[mainface][rm][Optima] \setupbodyfont[mainface,10pt]
{\bf Bold} and {\it Italic} and {\rm Regular} text. \stoptext
Hope this will resolve you issue.
[...]
--- WBR, Vladimir Lomov
-- Practically perfect people never permit sentiment to muddle their thinking. -- Mary Poppins
___________________________________________________________________________________ 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
___________________________________________________________________________________
Am 24.04.2020 um 05:19 schrieb kaddour kardio
: It's noticed that Optima is a Sans Serif font. Maybe it conflicts with MacOS way to handle fonts.
No, ConTeXt doesn’t care what kind of font you define as rm/ss/tt, and the OS has no say in that. Best, Hraban
With Arial: \definefontfamily[mainface][rm][Arial] \setupbodyfont[mainface,10pt] with Optima: \definefontfamily[mainface][rm][Optima] \setupbodyfont[mainface,10pt] It doesn’t matter if the font statements are before or after \starttext Then I thought, let’s test some other things. I logged in as another user, and used ConTeXt from TeX Live 2019: It seems to be that on my system, the standalone installed ConTeXt does not work with Optima, but the TeX Live installed one does. G
On 24 Apr 2020, at 08:09, Henning Hraban Ramm
wrote: Am 24.04.2020 um 05:19 schrieb kaddour kardio
: It's noticed that Optima is a Sans Serif font. Maybe it conflicts with MacOS way to handle fonts.
No, ConTeXt doesn’t care what kind of font you define as rm/ss/tt, and the OS has no say in that.
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 ___________________________________________________________________________________
Gerben Wierda schrieb am 24.04.2020 um 08:48:
With Arial:
\definefontfamily[mainface][rm][Arial] \setupbodyfont[mainface,10pt]
with Optima:
\definefontfamily[mainface][rm][Optima] \setupbodyfont[mainface,10pt]
It doesn’t matter if the font statements are before or after \starttext
Then I thought, let’s test some other things. I logged in as another user, and used ConTeXt from TeX Live 2019:
It seems to be that on my system, the standalone installed ConTeXt does not work with Optima, but the TeX Live installed one does.
Can you try this: \definefontfamily [mainface] [rm] [Optima] [it=optimaitalic, bf=optimabold, bi=optimabolditalic] Wolfgang
On 24 Apr 2020, at 08:53, Wolfgang Schuster
wrote: Can you try this:
\definefontfamily [mainface] [rm] [Optima] [it=optimaitalic, bf=optimabold, bi=optimabolditalic]
I altready did that earlier as per the Wiki information (did not report it) and just tried again. No difference. G
On 24. Apr 2020, at 09:21, Gerben Wierda
wrote: I altready did that earlier as per the Wiki information (did not report it) and just tried again. No difference.
Steps to happiness: 1. Extract the ttc font to ttf 2. Copy the ttf files to your local texmf directory 3. reload the font cache 4. enrich your vocabulary by learning the words “thank you” 5. never have to deal with stupid people who didn’t read all 10,000 lines of the log file you posted 6. profit! Thomas
Am 24.04.2020 um 08:48 schrieb Gerben Wierda
: Then I thought, let’s test some other things. I logged in as another user, and used ConTeXt from TeX Live 2019:
It seems to be that on my system, the standalone installed ConTeXt does not work with Optima, but the TeX Live installed one does.
So what’s your ConTeXt version? context --version current version: 2020.01.30 14:13 luatex --version This is LuaTeX, Version 1.11.1 (TeX Live 2020/dev) Best, Hraban
As per the fuller console output I included (where you can find all the details of the run as put out by ConTeXt): 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 If the standalone is used, it doesn’t work. If TeX Live 2019 is used, it does work. Note, there is no ‘luatex’ command in the standalone. And I get a different output from the --version command for context: $ context --version mtx-context | ConTeXt Process Management 1.03 mtx-context | mtx-context | main context file: /usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2019.07.24 11:31 mtx-context | main context file: /usr/local/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2020.02.17 19:36 The version differences probably from system > beware: some patches loaded from cont-new.mkiv I seem to be running a beta. I seem to recall I installed that because Hans patched something, but I am uncertain. Hans? G
On 24 Apr 2020, at 08:54, Henning Hraban Ramm
wrote: Am 24.04.2020 um 08:48 schrieb Gerben Wierda
: Then I thought, let’s test some other things. I logged in as another user, and used ConTeXt from TeX Live 2019:
It seems to be that on my system, the standalone installed ConTeXt does not work with Optima, but the TeX Live installed one does. So what’s your ConTeXt version?
context --version current version: 2020.01.30 14:13
luatex --version This is LuaTeX, Version 1.11.1 (TeX Live 2020/dev)
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 ___________________________________________________________________________________
Am 24.04.2020 um 02:10 schrieb Vladimir Lomov
: I think Henning Hraban Ramm meant not OS font cache (but may be including it, I'm not a Mac OS user) but context font cache. Run
$ mtxrun --script fonts --reload --force
and try above '--list --all ...' command again
No, since all the subfonts were already found, that’s not the problem.
and your example:
\starttext \definefontfamily[mainface][rm][Optima] \setupbodyfont[mainface,10pt]
{\bf Bold} and {\it Italic} and {\rm Regular} text. \stoptext
The font definition belongs before \starttext. Good if it works... But Gerben’s example was lacking \starttext .. \stoptext – didn’t try, but that might be the culprit. Best, Hraban
participants (6)
-
Gerben Wierda
-
Henning Hraban Ramm
-
kaddour kardio
-
Thomas A. Schmitz
-
Vladimir Lomov
-
Wolfgang Schuster