ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* expert font access
@ 2005-12-28  9:49 Henning Hraban Ramm
  2005-12-28 11:02 ` Siep Kroonenberg
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2005-12-28  9:49 UTC (permalink / raw)


Ahoi!

One decorative font that I use contains some additional (swashed  
etc.) characters.
At the moment I access them like this:

\def\DelitschC#1{\getglyph{\defaultencoding-raw-delitschantiqua} 
{\char#1}}
\definetextmodediscretionary A {\DelitschC{197}}

So I get the alternative A as |A|, and that's enough for me.
But in this way |A| always takes this character from the same font.

How could I solve this more generally, two cases:
1. if several fonts use the same "expert" encoding
2. if I change the font, I'd like to get a simple A instead of |A|

At the moment I need (2.), because I'd like to use something like  
\chapter{|A|nfang};
that's ok with my definition of chapter style=\hw (Delitsch font  
being defined as handwriting), but not in the ToC (rm font).

Further (don't know how different), how could I define "take this  
special character always at the end/beginning of a word" or the like,  
e.g. how could I enable the different 's' of gothic fonts?

Another one: How can I define additional ligatures, e.g. if my font  
provides a "Qu" or some other unusual ligature?


Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: expert font access
  2005-12-28  9:49 expert font access Henning Hraban Ramm
@ 2005-12-28 11:02 ` Siep Kroonenberg
  0 siblings, 0 replies; 2+ messages in thread
From: Siep Kroonenberg @ 2005-12-28 11:02 UTC (permalink / raw)


On Wed, Dec 28, 2005 at 10:49:20AM +0100, Henning Hraban Ramm wrote:
> Ahoi!
> 
> One decorative font that I use contains some additional (swashed  
> etc.) characters.
> At the moment I access them like this:
> 
> \def\DelitschC#1{\getglyph{\defaultencoding-raw-delitschantiqua} 
> {\char#1}}
> \definetextmodediscretionary A {\DelitschC{197}}
> 
> So I get the alternative A as |A|, and that's enough for me.
> But in this way |A| always takes this character from the same font.
> 
> How could I solve this more generally, two cases:
> 1. if several fonts use the same "expert" encoding
> 2. if I change the font, I'd like to get a simple A instead of |A|
> 
> At the moment I need (2.), because I'd like to use something like  
> \chapter{|A|nfang};
> that's ok with my definition of chapter style=\hw (Delitsch font  
> being defined as handwriting), but not in the ToC (rm font).
> 
> Further (don't know how different), how could I define "take this  
> special character always at the end/beginning of a word" or the like,  
> e.g. how could I enable the different 's' of gothic fonts?

Can't you define this behavior with ligatures?

> Another one: How can I define additional ligatures, e.g. if my font  
> provides a "Qu" or some other unusual ligature?

You can add ligature specifications to an enc file, see e.g.
cork.enc. For afm2pl, you can also specify ligatures in a separate
lig file. But I don't know how to use such custom enc or lig files
in the context of the texfont utility.

-- 
Siep Kroonenberg

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-28 11:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-28  9:49 expert font access Henning Hraban Ramm
2005-12-28 11:02 ` Siep Kroonenberg

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).