Re: [NTG-context] Losing my patience with (understanding) ConTeXt/LuaTeX's font handling... [ re: Whacko font behaviour ? ( Or Am I ? :O) ]
\starttypescript[myFonts] \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default] \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default] \stoptypescript
\starttypescript[myFonts] \definetypeface [myFonts] [rm] [serif] [mySerifFont] [default] \definetypeface [myFonts] [ss] [sans] [mySansFont] [default] \stoptypescript You need the same name for both typefaces. Are you sure ? This works though... \setuppapersize [A4][A4] \starttypescript [serif] [mySerifFont] \definefontsynonym [mySerifFontRegular] [name:Times New Roman] [features=default] \definefontsynonym [mySerifFontItalic] [name:Times New Roman Italic] [features=default] \definefontsynonym [mySerifFontBold] [name:Times New Roman Bold] [features=default] \definefontsynonym [mySerifFontBoldItalic] [name:Times New Roman Bold Italic] [features=default] \stoptypescript \starttypescript [serif] [mySerifFont] \setups[font:fallback:serif] \definefontsynonym [Serif] [mySerifFontRegular] \definefontsynonym [SerifItalic] [mySerifFontItalic] \definefontsynonym [SerifBold] [mySerifFontBold] \definefontsynonym [SerifBoldItalic] [mySerifFontBoldItalic] \stoptypescript \starttypescript [sans] [mySansFont] \definefontsynonym [mySansFontRegular] [name:Arial] [features=default] \definefontsynonym [mySansFontItalic] [name:Arial Italic] [features=default] \definefontsynonym [mySansFontBold] [name:Arial Bold] [features=default] \definefontsynonym [mySansFontBoldItalic] [name:Arial Bold Italic] [features=default] \stoptypescript \starttypescript [sans] [mySansFont] \setups[font:fallback:sans] \definefontsynonym [Sans] [mySansFontRegular] \definefontsynonym [SansItalic] [mySansFontItalic] \definefontsynonym [SansBold] [mySansFontBold] \definefontsynonym [SansBoldItalic] [mySansFontBoldItalic] \stoptypescript \starttypescript[myFonts] \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default] \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default] \stoptypescript \usetypescript[myFonts] \setupbodyfont[mySerifFont,12pt] \definefont[myChapterFont][mySansFontRegular sa 1.728] \setuphead[chapter][style=\mySansFont\myChapterFont] \starttext \chapter{chapter test} \section{section test} text test \stoptext Alan
On Sun, Jul 20, 2008 at 1:13 PM, Alan Stone
\starttypescript[myFonts] \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default] \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default] \stoptypescript
\starttypescript[myFonts] \definetypeface [myFonts] [rm] [serif] [mySerifFont] [default] \definetypeface [myFonts] [ss] [sans] [mySansFont] [default] \stoptypescript
You need the same name for both typefaces.
Are you sure ?
You're playing games with me, do you?
This works though...
\setuppapersize [A4][A4]
\starttypescript [serif] [mySerifFont] \definefontsynonym [mySerifFontRegular] [name:Times New Roman] [features=default] \definefontsynonym [mySerifFontItalic] [name:Times New Roman Italic] [features=default] \definefontsynonym [mySerifFontBold] [name:Times New Roman Bold] [features=default] \definefontsynonym [mySerifFontBoldItalic] [name:Times New Roman Bold Italic] [features=default] \stoptypescript \starttypescript [serif] [mySerifFont] \setups[font:fallback:serif] \definefontsynonym [Serif] [mySerifFontRegular] \definefontsynonym [SerifItalic] [mySerifFontItalic] \definefontsynonym [SerifBold] [mySerifFontBold] \definefontsynonym [SerifBoldItalic] [mySerifFontBoldItalic] \stoptypescript
\starttypescript [sans] [mySansFont] \definefontsynonym [mySansFontRegular] [name:Arial] [features=default] \definefontsynonym [mySansFontItalic] [name:Arial Italic] [features=default] \definefontsynonym [mySansFontBold] [name:Arial Bold] [features=default] \definefontsynonym [mySansFontBoldItalic] [name:Arial Bold Italic] [features=default] \stoptypescript \starttypescript [sans] [mySansFont] \setups[font:fallback:sans] \definefontsynonym [Sans] [mySansFontRegular] \definefontsynonym [SansItalic] [mySansFontItalic] \definefontsynonym [SansBold] [mySansFontBold] \definefontsynonym [SansBoldItalic] [mySansFontBoldItalic] \stoptypescript
\starttypescript[myFonts] \definetypeface [mySerifFont] [rm] [serif] [mySerifFont] [default] \definetypeface [mySansFont] [ss] [sans] [mySansFont] [default] \stoptypescript
\usetypescript[myFonts]
\setupbodyfont[mySerifFont,12pt]
\definefont[myChapterFont][mySansFontRegular sa 1.728]
\setuphead[chapter][style=\mySansFont\myChapterFont]
This works ow because you load the typeface in the chapter settings but in your last mail you used only the \myChapter Font without the default typeface from \setupbodyfont.
\starttext
\chapter{chapter test}
\section{section test}
text test
\stoptext
Regards, Wolfgang
You're playing games with me, do you?
Nope. I'm playing with ctx/ltx, testing by trial and error what's possible.
You need the same name for both typefaces.
Hmmm... I was definitely interpreting this too literally then. Thanks for your support enabling me to better understand ctx/ltx font handling and typescripts. Best, Alan
participants (2)
-
Alan Stone
-
Wolfgang Schuster