Garamond Premier Pro font goodies file
Hello list, I'm using the Adobe Garamond Premier Pro font. It has 4 optical sizes: Caption, Normal, Subhead, Display. I tried to modify ebgaramond.lfg to adapt it to Garamond Premier Pro. You find it as an attachment. I don't know how to use that goodies file to see the different optical sizes in a document. I've tried this: \loadfontgoodies[GaramondPremierPro] \definefontfamily [default] [rm] [tf=name:GaramondPremierPro-Regular, it=name:GaramondPremierPro-Italic] \setupbodyfont[default,12pt] \dostepwiserecurse {6} {22} {1} { \definebodyfontenvironment[default][#1pt][text=#1pt,em=italic] } \starttext \dostepwiserecurse {6} {22} {1} { \switchtobodyfont[#1pt] \purefontname\font: \input tufte \blank } \stoptext but it does not work. Any help? Thanks in advance, Massi To Hans: if you find it useful for Context, you can add and/or modify it to the distribution. You can also change the author to yourself.
massifr@fastwebnet.it mailto:massifr@fastwebnet.it 28. April 2016 um 10:58 Hello list, I'm using the Adobe Garamond Premier Pro font. It has 4 optical sizes: Caption, Normal, Subhead, Display. I tried to modify ebgaramond.lfg to adapt it to Garamond Premier Pro. You find it as an attachment.
I don't know how to use that goodies file to see the different optical sizes in a document. I've tried this:
\loadfontgoodies[GaramondPremierPro]
\definefontfamily [default] [rm] [tf=name:GaramondPremierPro-Regular, it=name:GaramondPremierPro-Italic]
\setupbodyfont[default,12pt]
\dostepwiserecurse {6} {22} {1} { \definebodyfontenvironment[default][#1pt][text=#1pt,em=italic] }
\starttext
\dostepwiserecurse {6} {22} {1} { \switchtobodyfont[#1pt] \purefontname\font: \input tufte \blank }
\stoptext
but it does not work. Any help? %\definefontfamily [default] [rm] [GaramondPremierPro] [opticalsize=yes] \definefontfamily [default] [rm] [Latin Modern Roman] [opticalsize=yes]
\setupbodyfont[default,12pt] \starttext \dostepwiserecurse {6} {22} {1} {\switchtobodyfont[#1pt] \purefontname\font: \input ward \blank} \stoptext Wolfgang
Thank you Wolfgang, now it works partially (see the first attachment): it uses different optical sizes, but not always the right ones. \definefontfamily [default] [rm] [GaramondPremierPro] [opticalsize=yes] \setupbodyfont[default,12pt] \starttext \dostepwiserecurse {6} {22} {2} {\switchtobodyfont[#1pt] \purefontname\font: \input ward \blank} \stoptext My garamondpremierpro.lfg is a modified version of ebgaramond.lfg. While I was waiting for an answer to my mail, I made a modified version of type-imp-ebgaramond.mkiv: type-imp-garamondpremierpro.mkiv (second attachment). Then I tried this: \input type-imp-garamondpremierpro.mkiv \setupbodyfont[GaramondPremierPro,12pt] \starttext \dostepwiserecurse {6} {22} {2} {\switchtobodyfont[#1pt] \purefontname\font: \input ward \blank} \stoptext This works as expected (see third attachment): "GaramondPremierPro- Capt" under 8.5pt, then "GaramondPremierPro" until 13pt, then "GaramondPremierPro-Subh" until 21.5pt, then "GaramondPremierPro-Disp". How can I make it work with \definefontfamily? I prefer its simpler syntax to typescripts like "type-imp- garamondpremierpro.mkiv". I tried this: \definefontfamily [default] [rm] [GaramondPremierPro] [opticalsize=yes,goodies=GaramondPremierPro] \setupbodyfont[default,12pt] \starttext \dostepwiserecurse {6} {22} {2} {\switchtobodyfont[#1pt] \purefontname\font: \input ward \blank} \stoptext but it does not work as expected. The file garamondpremierpro.lfg gets loaded, but its contents are ignored when choosing the right optical size. How can I tell ConTeXt to use the optical sizes defined in my goodies file with \definefontfamily and without using type-imp- garamondpremierpro.mkiv typescripts?
participants (3)
-
massifr@fastwebnet.it
-
mf
-
Wolfgang Schuster