ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: font variants
Date: Fri, 19 Nov 2004 16:11:07 +0100	[thread overview]
Message-ID: <419E0D0B.5030300@wxs.nl> (raw)
In-Reply-To: <20041119141139.19722@news.comp.lancs.ac.uk>

Adam Lindsay wrote:

> However, it's relevant in the pdfTeX/type1 world as well. Just last
> night, I discovered the FPL fonts (SC/OsF for URW Palladio) on CTAN
> (<http://www.ctan.org/tex-archive/fonts/fpl/>). How does one access the
> old style figures in this font without knowing intimately about the font?

interesting, fetching them

> I took inspiration (and code) from the Unicode font mechanisms and the

getglyph uses something similar

> new font effects. The code is in the attached test-psc, the typescript in
> type-psc. The result is at <http://homepage.mac.com/atl/tex/test-psc.pdf>.

> What this does and doesn't do:
> - generalises font access to features in associated fonts
> - adapts itself to current size/family/alternative
> - doesn't allow further adaptation (e.g., \it \Var[osf] 123 \bf 456)
> - best for short runs of associated fonts (e.g., OsF, sub/superscripts)
> - can insert arbitrary features into existing typescripts

how about adding support for font classes (i'll look into it)

> - relies on a couple special naming conventions within typescripts
> - can be defined based on Serif/Sans/Mono family
> - is not currently defined based on bodyfont namespace. 

doable

>      Is this more desirable with people \switchbodyfont ing in a doc?
> - allows expansion beyond \tf\bf\it\bi\sl\bs\sc choices.

so, we need an installable fontstylesuffix (analogue to math switching, no problem)

> Any thoughts? 
> (If anyone wants to give pointers on the correct usage/relevance of
> [#1][#2]#3 parameters, pushfont/popfont, and adapting to bodyfont
> namespaces, please feel free!)

> [Hans, if you see the general utility of this kind of solution, I'd
> appreciate the addition of Caps to the \fontstylesuffix.]

ok, done

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

      reply	other threads:[~2004-11-19 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-19 14:11 Adam Lindsay
2004-11-19 15:11 ` Hans Hagen [this message]

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=419E0D0B.5030300@wxs.nl \
    --to=pragma@wxs.nl \
    --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).