* definetypeface confusion
@ 2007-04-25 12:37 Patrick Gundlach
2007-04-25 12:48 ` Thomas A. Schmitz
2007-04-25 12:54 ` Wolfgang Schuster
0 siblings, 2 replies; 6+ messages in thread
From: Patrick Gundlach @ 2007-04-25 12:37 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definetypeface confusion
2007-04-25 12:37 definetypeface confusion Patrick Gundlach
@ 2007-04-25 12:48 ` Thomas A. Schmitz
2007-04-25 13:15 ` Patrick Gundlach
2007-04-25 12:54 ` Wolfgang Schuster
1 sibling, 1 reply; 6+ messages in thread
From: Thomas A. Schmitz @ 2007-04-25 12:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 568 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2143 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definetypeface confusion
2007-04-25 12:48 ` Thomas A. Schmitz
@ 2007-04-25 13:15 ` Patrick Gundlach
2007-04-25 13:36 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: Patrick Gundlach @ 2007-04-25 13:15 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definetypeface confusion
2007-04-25 13:15 ` Patrick Gundlach
@ 2007-04-25 13:36 ` Wolfgang Schuster
2007-04-25 17:49 ` Patrick Gundlach
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2007-04-25 13:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1567 bytes --]
2007/4/25, Patrick Gundlach <patrick@gundla.ch>:
>
> 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
[-- Attachment #1.2: Type: text/html, Size: 2001 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: definetypeface confusion
2007-04-25 12:37 definetypeface confusion Patrick Gundlach
2007-04-25 12:48 ` Thomas A. Schmitz
@ 2007-04-25 12:54 ` Wolfgang Schuster
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2007-04-25 12:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1136 bytes --]
2007/4/25, Patrick Gundlach <patrick@gundla.ch>:
>
> 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
[-- Attachment #1.2: Type: text/html, Size: 1480 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-04-25 17:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-25 12:37 definetypeface confusion Patrick Gundlach
2007-04-25 12:48 ` Thomas A. Schmitz
2007-04-25 13:15 ` Patrick Gundlach
2007-04-25 13:36 ` Wolfgang Schuster
2007-04-25 17:49 ` Patrick Gundlach
2007-04-25 12:54 ` 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).