ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Uwe Koloska <ml@koloro.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: fontscript for delicious?
Date: Tue, 10 Jun 2008 00:35:58 +0200	[thread overview]
Message-ID: <200806100035.59220.ml@koloro.de> (raw)
In-Reply-To: <115224fb0806090507w2526aa78l5e6d565e5dd7e371@mail.gmail.com>

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	other threads:[~2008-06-09 22:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09  1:06 Uwe Koloska
2008-06-09  7:54 ` Wolfgang Schuster
2008-06-09  9:03   ` Uwe Koloska
2008-06-09 12:07     ` Wolfgang Schuster
2008-06-09 22:35       ` Uwe Koloska [this message]
2008-06-10 14:22         ` Wolfgang Schuster
2008-06-11  7:43         ` Wolfgang Schuster
2008-06-11 22:38           ` Uwe Koloska
2008-06-12  7:32             ` Wolfgang Schuster
2008-06-15 15:44               ` Uwe Koloska
2008-06-15 16:18                 ` Aditya Mahajan
2008-06-15 16:23                   ` Wolfgang Schuster
2008-06-15 17:44                 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200806100035.59220.ml@koloro.de \
    --to=ml@koloro.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).