[XeTeX] Charis SIL glyph variants

Benct Philip Jonsson bpj at melroch.se
Fri Nov 21 10:12:56 CET 2008


On 2008-11-18 Jonathan Kew wrote:
> I would recommend setting the font for the whole
> run of text, rather than the individual
> character. And if you can go through fontspec
> and use \newfontfamily, you'll get something
> that adapts to the current font size, etc.,
> rather than just a single, fixed-size instance,
> so that's much better if it is supported.

I've found that another font, Titus Cyberbit which
is if I am not mistaken also based on Bitstream
Charter, has the shapes of ŋ and Ŋ which I want
in its PUA. Unfortunately it has no bold or italic
styles, so now I wonder if it is possible to
combine the font transformation commands described
in § 5.8 of the fontspec manual with the with the
arbitrary shape commands described in § 3.3, and
in a \newfontfamily command, something like

%%%%% begin %%%%%

\newfontfamily\titus[ItalicFont=[FakeSlant=0.2]{Titus Cyberbit}]{{Titus Cyberbit}}

% I'm sure this is not the correct way to nest the
% commands!

\newcommand{\ng}{\titus ŋ}
\newcommand{\NG}{\titus Ŋ}

% In document:

və\ng huš

%%%%% end %%%%%

BTW would XeTeX tolerate Unicode characters in
command names so that I can use \ŋ ?


/BP 8^)>
-- 
Benct Philip Jonsson -- melroch atte melroch dotte se
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 "C'est en vain que nos Josués littéraires crient
 à la langue de s'arrêter; les langues ni le soleil
 ne s'arrêtent plus. Le jour où elles se *fixent*,
 c'est qu'elles meurent."           (Victor Hugo)



More information about the XeTeX mailing list