ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mkii to mkiv, setting the fonts for my project
@ 2015-03-01 10:20 Gerben Wierda
  2015-03-01 11:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Gerben Wierda @ 2015-03-01 10:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I’m trying to get my project from mkii to mkiv. I’m running into a font issue. I’m using the Optima font from OS X on the Mac. My current setup is as added below.  Can someone tell me how to do that in mkiv?

\usetypescript[serif,sans,mono] [hanging] [normal]
\starttypescript [sans,serif] [optima] [texnansi,ec]
\definefontsynonym [Optima-Regular] [\typescriptthree-OptimaRegular]
[encoding=\typescriptthree]
\definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic]
[encoding=\typescriptthree]
\definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold]
[encoding=\typescriptthree]
\definefontsynonym [Optima-BoldItalic] [\typescriptthree-OptimaBoldItalic]
[encoding=\typescriptthree]
\definefontsynonym [Optima-ExtraBlack] [\typescriptthree-OptimaExtraBlack]
[encoding=\typescriptthree]
\stoptypescript
\starttypescript [sans,serif] [optima] [name]
\setups            [font:fallback:\typescriptone]
\definefontsynonym [\typescriptprefix\typescriptone] [Optima-Regular]
\definefontsynonym [\typescriptprefix\typescriptone Italic] [Optima-Italic]
\definefontsynonym [\typescriptprefix\typescriptone Bold]       [Optima-Bold]
\definefontsynonym [\typescriptprefix\typescriptone BoldItalic]
[Optima-BoldItalic]
\definefontsynonym [\typescriptprefix\typescriptone Black] [Optima-ExtraBlack]
\stoptypescript
\definetypeface[allsans][rm][serif][optima][default][encoding=texnansi]
\definetypeface[allsans][ss][sans][optima][default][encoding=texnansi]
\loadmapfile [gtamacfonts.map]
\setupbodyfont[allsans,10pt]

In gtamacfonts.map, I find:

% Optima

ec-raw-OptimaRegular Optima-Regular 4 <OptimaRegular.ttf ec.enc
ec-raw-OptimaBold Optima-Bold 4 <OptimaBold.ttf ec.enc
ec-raw-OptimaBoldItalic Optima-BoldItalic 4 <OptimaBoldItalic.ttf ec.enc
ec-raw-OptimaExtraBlack Optima-ExtraBlack 4 <OptimaExtraBlack.ttf ec.enc
ec-raw-OptimaItalic Optima-Italic 4 <OptimaItalic.ttf ec.enc

ts1-OptimaRegular Optima-Regular 4 <OptimaRegular.ttf lm-ts1.enc
ts1-OptimaBold Optima-Bold 4 <OptimaBold.ttf lm-ts1.enc
ts1-OptimaBoldItalic Optima-BoldItalic 4 <OptimaBoldItalic.ttf lm-ts1.enc
ts1-OptimaExtraBlack Optima-ExtraBlack 4 <OptimaExtraBlack.ttf lm-ts1.enc
ts1-OptimaItalic Optima-Italic 4 <OptimaItalic.ttf lm-ts1.enc
ts1-OptimaRegular Optima-Regular 4 <OptimaRegular.ttf lm-ts1.enc

texnansi-OptimaBold Optima-Bold 4 < OptimaBold.ttf texnansi.enc
texnansi-OptimaBoldItalic Optima-BoldItalic 4 < OptimaBoldItalic.ttf texnansi.enc
texnansi-OptimaExtraBlack Optima-ExtraBlack 4 < OptimaExtraBlack.ttf texnansi.enc
texnansi-OptimaItalic Optima-Italic 4 < OptimaItalic.ttf texnansi.enc
texnansi-OptimaRegular Optima-Regular 4 < OptimaRegular.ttf texnansi.enc

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2015-03-01 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-01 10:20 mkii to mkiv, setting the fonts for my project Gerben Wierda
2015-03-01 11:03 ` Wolfgang Schuster

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