Hi there, I am a bit confused about \definetypeface. I try to mix some self-installed otf-fonts. Serif works fine, but I can't get the sans variant to work: \definetypeface [chaparral][rm][serif] [chaparral][default][encoding=texnansi] \definetypeface [myriad] [ss][sans] [myriad] [default][encoding=texnansi] \ss does not switch to myriad (instead, ConTeXt uses lmss), but \myriad does! So I think that the font is installed correctly and the typescript is not completely broken. How should the \setupbodyfont look like? My current setup is: \setupbodyfont[chaparral,14pt] What other information do you need? Patrick
On Apr 25, 2007, at 2:37 PM, Patrick Gundlach wrote:
Hi there,
I am a bit confused about \definetypeface. I try to mix some self-installed otf-fonts. Serif works fine, but I can't get the sans variant to work:
\definetypeface [chaparral][rm][serif] [chaparral][default] [encoding=texnansi] \definetypeface [myriad] [ss][sans] [myriad] [default] [encoding=texnansi]
Try: \definetypeface [chaparral] [ss][sans] [myriad] [default] [encoding=texnansi] (assuming that the typsecript "myriad" defines the font as Sans etc). HTH Thomas
Hello Thomas, [...]
Try: \definetypeface [chaparral] [ss][sans] [myriad] [default] [encoding=texnansi]
great! This works. Thanks (also to Wolfgang). Now another question: I'd like to set the interlinespace for \rm only. My attempt: \definebodyfontenvironment [chaparral][14pt][interlinespace=20pt] changes the interlinespace for all fonts and \definebodyfontenvironment [Serif][14pt][interlinespace=20pt] does 'nothing' (no changed interlinespace at all) This is my setup: -------------------------------------------------- \definetypeface [foo] [rm][serif] [chaparral][default][encoding=texnansi] \definetypeface [foo] [ss][sans] [myriad][default][encoding=texnansi] \definetypeface [foo] [tt][mono] [modern][computer-modern] [encoding=texnansi] \definebodyfontenvironment [foo][14pt][interlinespace=20pt] \setupbodyfont[foo,14pt] -------------------------------------------------- Any idea how to setup interlinespace for rm, ss and tt differently? My application: I have normal text (\rm) and some code samples and I'd like to have fewer interlinespace in the code samples. Of course I could put some code in the setup for the code samples (\setupinterlinespace[line=xxxpt]??) and this would be the fallback solution. Thinking of it, this might even be the best solution... Patrick
2007/4/25, Patrick Gundlach
Hello Thomas,
[...]
Try: \definetypeface [chaparral] [ss][sans] [myriad] [default] [encoding=texnansi]
great! This works. Thanks (also to Wolfgang). Now another question: I'd like to set the interlinespace for \rm only.
My attempt:
\definebodyfontenvironment [chaparral][14pt][interlinespace=20pt]
changes the interlinespace for all fonts and
\definebodyfontenvironment [Serif][14pt][interlinespace=20pt]
does 'nothing' (no changed interlinespace at all)
This is my setup: -------------------------------------------------- \definetypeface [foo] [rm][serif] [chaparral][default][encoding=texnansi] \definetypeface [foo] [ss][sans] [myriad][default][encoding=texnansi] \definetypeface [foo] [tt][mono] [modern][computer-modern] [encoding=texnansi]
\definebodyfontenvironment [foo][14pt][interlinespace=20pt] \setupbodyfont[foo,14pt] --------------------------------------------------
Any idea how to setup interlinespace for rm, ss and tt differently?
My application: I have normal text (\rm) and some code samples and I'd like to have fewer interlinespace in the code samples. Of course I could put some code in the setup for the code samples (\setupinterlinespace[line=xxxpt]??) and this would be the fallback solution. Thinking of it, this might even be the best solution...
Patrick
Hi Patrick, can you try the following setup \definebodyfontenvironment[chaparral][14pt][interlinespace=20pt] Wolfgang
Hello Wolfgang,
can you try the following setup
\definebodyfontenvironment[chaparral][14pt][interlinespace=20pt]
No effect with: \definetypeface [foo] [rm][serif] [chaparral][default][encoding=texnansi] \definetypeface [foo] [ss][sans] [myriad][default][encoding=texnansi] \definetypeface [foo] [tt][mono] [modern][computer-modern] [encoding=texnansi] \definebodyfontenvironment [chaparral][14pt][interlinespace=20pt] \setupbodyfont[foo,14pt] When I replace 'foo' with 'chaparral', all fonts get the interlinespace. Patrick
2007/4/25, Patrick Gundlach
Hi there,
I am a bit confused about \definetypeface. I try to mix some self-installed otf-fonts. Serif works fine, but I can't get the sans variant to work:
\definetypeface [chaparral][rm][serif] [chaparral][default][encoding=texnansi] \definetypeface [myriad] [ss][sans] [myriad] [default][encoding=texnansi]
\ss does not switch to myriad (instead, ConTeXt uses lmss), but \myriad does! So I think that the font is installed correctly and the typescript is not completely broken.
How should the \setupbodyfont look like? My current setup is: \setupbodyfont[chaparral,14pt]
What other information do you need?
Patrick
Hi Patrick, I'm myself not a font expert but one of the next two solutions should work. \setupbodyfont[chaparral,myriad,14pt] with your current \definetypeface settings or \definetypeface [mytypeface][rm][serif][chaparral][default][encoding=texnansi] \definetypeface [mytypeface][ss][sans] [myriad] [default][encoding=texnansi] \setupbodyfont[mytypeface] Gruß Wolfgang
participants (3)
-
Patrick Gundlach
-
Thomas A. Schmitz
-
Wolfgang Schuster