[XeTeX] Automatic glyph substitution

Zdenek Wagner zdenek.wagner at gmail.com
Fri Jul 12 02:09:09 CEST 2013


Hi,

I have simila problem with old (commercial) fonts from Storm's
Typokatalog. I have just extended the tex-text.map and it now
contains:

; TECkit mapping for TeX input conventions + Storm Typokatalog 4 fonts
<-> Unicode characters

LHSName "TeX-storm4t"
RHSName "UNICODE"

pass(Unicode)

; ligatures from Knuth's original CMR fonts
U+002D U+002D                   <>      U+2013  ; -- -> en dash
U+002D U+002D U+002D    <>      U+2014  ; --- -> em dash

U+0027                  <>      U+2019  ; ' -> right single quote
U+0027 U+0027   <>      U+201D  ; '' -> right double quote
U+0022                   >      U+201D  ; " -> right double quote

U+0060                  <>      U+2018  ; ` -> left single quote
U+0060 U+0060   <>      U+201C  ; `` -> left double quote

U+0021 U+0060   <>      U+00A1  ; !` -> inverted exclam
U+003F U+0060   <>      U+00BF  ; ?` -> inverted question

; additions supported in T1 encoding
U+002C U+002C   <>      U+201E  ; ,, -> DOUBLE LOW-9 QUOTATION MARK
U+003C U+003C   <>      U+00AB  ; << -> LEFT POINTING GUILLEMET
U+003E U+003E   <>      U+00BB  ; >> -> RIGHT POINTING GUILLEMET

; additional ligatures for Štorm's fonts
U+0066 U+0069   <>      U+FB01  ; fi
U+0066 U+006C   <>      U+FB02  ; fl

I specify it as Mapping when loading the font.

2013/7/12 Gareth Hughes <garzohugo at gmail.com>:
> Hi all!
>
> I am using Gill Sans MT for headings in a document that I'm setting. The
> font I'm using does not automatically substitute the ligature glyphs
> 'fi' and 'fl' that are supplied with the typefaces. Without editing the
> font files, is there an easy way to make the substitution automatic
> within the document? I know that I can use the \namedglyph command
> sequence with xltxtra, but I am hoping for something more graceful.
>
> Thanks,
>
> Gareth.
>
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz



More information about the XeTeX mailing list