[XeTeX] adding some diacritics to a font
Peter Dyballa
Peter_Dyballa at Web.DE
Wed Jan 7 00:20:15 CET 2009
Am 06.01.2009 um 23:14 schrieb François Patte:
> I want to use Garamong Pro otf fonts in a document where I need some
> diacritics which are not included in this font: under/over-dot
> chars (ṇ
> ṅ ḷ )
>
> If I put:
>
> \setmainfont[Mapping=tex-text]{Garamond Premier Pro}
>
> These glyphs do not appear. If I add:
>
> \usepackage[garamond]{mathdesign}
Mathdesign is a very complex package that uses it's own font
encodings. And T1 + TS1 for text!
>
> I can get these glyphs through ordinary latex command (\d n), but the
> whole document uses these mathdesign fonts....
The latter is no command, it's used in a declarative style. \d{n} is
a command. Or \.{n}.
In short: I'd use for maths mathdesign and for text I'd use a regular
fontspec font. And this font can be your Garamond Premier Pro! And in
case you don't see any character with a dot below: remove
xunicode.sty from the packages you use! Xunicode.sty translates
typical LaTeX constructs like \d{n} to their real Unicode value. And
if the font does not have a glyph at this position, then you'll see
an OPEN BOX character, I think. Without xunicode.sty XeLaTeX will
work like LaTeX and construct the final character from two (or more),
and this construct will be unsearchable. And without xunicode.sty
other things will fail, presumingly ... So it would be nice if one
could switch off xunicode.sty for certain constructs!
--
Greetings
Pete
There is no national science just as there is no national
multiplication table; what is national is no longer science.
– Anton Checov
More information about the XeTeX
mailing list