Fonts & Character SetsEmulation of Accents in incomplete Fonts

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
Bram
Posts: 20
Joined: Sat Jul 14, 2012 12:54 pm

Emulation of Accents in incomplete Fonts

Post by Bram »

Some commercial fonts don't have all Unicode characters, but they provide symbols for accents, so that the user can construct their own accented characters. This requires overlaying two characters and fiddling a bit with the elevation of the accents. How can I do that in XeLaTeX?

In the example below with XeLaTeX, a normal "g" is printed and than an breve (a dish-like accent). They need to be combined to form a g-breve.

Any help would be appreciated!

Code: Select all

\documentclass{memoir}
\usepackage{fontspec,xltxtra,xunicode}
\setmainfont{Scala}
\newfontfamily\accentfont[Scale=0.8]{ScalaExpert}

\begin{document}
g \accentfont\char"0046
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Emulation of Accents in incomplete Fonts

Post by kaiserkarl13 »

Does it work to use \'g (as in standard TeX)?
Post Reply