Hallo Uwe,
On Tue, Jun 10, 2008 at 12:35 AM, Uwe Koloska
Hello Wolfgang, hello list,
thank you for the help!
Unfortunately the code doesn't work flawlessly with the current minimal context distribution. So for the archive, here are the corrected files and a short usage description:
I tested it now on my own system and it worked for me. ConTeXT: MtxRun | main context file: C:/tex/share/texmf-local/tex/context/base/context.tex MtxRun | current version: 2008.06.07 23:44 LuaTeX: This is LuaTeX, Version snapshot-0.25.3-2008060811 ... This is build 1309, created on 20080608T112701Z XeTeX: XeTeX 3.1415926-2.2-0.999.1 (Web2C 7.5.6)
The typescript that defines the context bindings for the delicious font from http://www.josbuivenga.demon.nl/delicious.html
--- type-delicious.--------------------------------------------------------- \starttypescript [sans] [delicious] \setups[font:fallback:sans] \definefontsynonym [Sans] [Delicious-Regular] \definefontsynonym [SansItalic] [Delicious-Italic] \definefontsynonym [SansBold] [Delicious-Bold] \definefontsynonym [SansBoldItalic] [Delicious-BoldItalic] \definefontsynonym [SansCaps] [Delicious-Caps] \stoptypescript
\starttypescript [sans] [delicious] \definefontsynonym [Delicious-Regular] [name:Delicious-Roman] \definefontsynonym [Delicious-Italic] [name:Delicious-Italic] \definefontsynonym [Delicious-Bold] [name:Delicious-Bold] \definefontsynonym [Delicious-BoldItalic] [name:Delicious-BoldItalic] \definefontsynonym [Delicious-Caps] [name:Delicious-SmallCaps] \stoptypescript
\starttypescript [delicious] \definetypeface [delicious] [ss] [sans] [delicious] [default] \stoptypescript ----------------------------------------------------------------------------
Now the testfile: --- delicious-test.tex ----------------------------------------------------- \usetypescriptfile [type-delicious] \usetypescript[delicious] \setupbodyfont[delicious]
\starttext
My document with the delicious fonts.
\input knuth
\stoptext ----------------------------------------------------------------------------
Now save these two file together with the otf-files from the delicious download in a directory and call the luatex version of context with this command: texexec --lua delicious-test.tex
What did I change?
1. The interface for the \definefontsynonym command seems to have changed: There is no third parameter -- this one "[features=default]" end up in the document as text.
Makes no sense because you need the third parameter to define smallcaps if you don't have a seperate font but select it as OpenType feature. Kerning, ligatures etc. are enabled with the features parameter too.
2. To load the typescript, the command is not "\usetypefile [delicious]" but "\usetypescriptfile [type-delicious]"
Why did it not work for you, do you get a error message or is the file not loaded, give us more information, ConTeXt version, LuaTeX version, log files ... I attached my typescript and test files with the output for XeTeX and LuaTeX. Wolfgang