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:


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.

2. To load the typescript, the command is not "\usetypefile  [delicious]" 
but "\usetypescriptfile  [type-delicious]"


Have fun!
Uwe
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to