I played with typescripts and have a problem. I can use the beramono font in this way: \definefont [Bera] [fvmr8a at 9.5pt] \starttext \Bera \input knuth \stoptext but how would I insert it into a typescript of libertine, where the mono font should used from bera? This did not work: ... \starttypescript[libertine] \definetypeface[libertine][rm][serif][libertine][default] \definetypeface[libertine][ss][sans] [libertine][default] \definetypeface[libertine][tt][mono] [file:fvmr8a.pfb] [default][rscale=0.85] \definetypeface[libertine][mm][math] [modern] [default] \stoptypescript ... Herbert
2010/11/10 Herbert Voss
I can use the beramono font in this way:
\definefont [Bera] [fvmr8a at 9.5pt]
\starttext \Bera \input knuth \stoptext
but how would I insert it into a typescript of libertine, where the mono font should used from bera?
You need something like this: \starttypescript [mono] [bera] [name] \definefontsynonym [Mono] [file:fvmr8a.pfb] \stoptypescript \starttypescript[libertine] \definetypeface[libertine][rm][serif][libertine][default] \definetypeface[libertine][ss][sans] [libertine][default] \definetypeface[libertine][tt][mono] [bera] [default][rscale=0.85] \definetypeface[libertine][mm][math] [modern] [default] \stoptypescript Instead of the one definition above you can also define the following if you want to access the font by name "Bera": \starttypescript [mono] [bera] \definefontsynonym [Bera] [file:fvmr8a.pfb] \stoptypescript \starttypescript [mono] [bera] [name] \definefontsynonym [Mono] [Bera] \stoptypescript Mojca
Am 10.11.2010 21:28, schrieb Mojca Miklavec:
You need something like this:
\starttypescript [mono] [bera] [name] \definefontsynonym [Mono] [file:fvmr8a.pfb] \stoptypescript
thanks! It worked only in this way: \starttypescript [mono] [bera] [name] \definefontsynonym [Mono] [fvmr8a] \stoptypescript Herbert
On Thu, Nov 11, 2010 at 06:20, Wolfgang Schuster wrote:
Am 10.11.2010 um 21:28 schrieb Mojca Miklavec:
You need something like this:
\starttypescript [mono] [bera] [name] \definefontsynonym [Mono] [file:fvmr8a.pfb]
\definefontsynonym [Mono] [file:fvmr8a.afm]
The "file:*.pfb" didn't sound right to me either, but I misinterpreted from not-precise-enough reading that pfb worked. Thanks for correcting me. Mojca
On 11-11-2010 12:03, Mojca Miklavec wrote:
On Thu, Nov 11, 2010 at 06:20, Wolfgang Schuster wrote:
Am 10.11.2010 um 21:28 schrieb Mojca Miklavec:
You need something like this:
\starttypescript [mono] [bera] [name] \definefontsynonym [Mono] [file:fvmr8a.pfb]
\definefontsynonym [Mono] [file:fvmr8a.afm]
The "file:*.pfb" didn't sound right to me either, but I misinterpreted from not-precise-enough reading that pfb worked. Thanks for correcting me.
i can support that suffix too if needed ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
The "file:*.pfb" didn't sound right to me either, but I misinterpreted from not-precise-enough reading that pfb worked. Thanks for correcting me.
i can support that suffix too if needed
You have to find both afm and pfb with the same name. So maybe it does make sense to also allow pfb. (pfb might be the more intuitive of the two.) Mojca
participants (5)
-
Arthur Reutenauer
-
Hans Hagen
-
Herbert Voss
-
Mojca Miklavec
-
Wolfgang Schuster