[XeTeX] Kerning problems (?) with fixed-width fonts
Nikos Platis
nplatis at freemail.gr
Wed Feb 25 14:00:15 CET 2009
I was typesetting some code with XeLaTeX and I found out that some
fixed-width fonts exhibit strange kerning.
Here is some sample code:
%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{fontspec}
\begin{document}
{\fontspec{Consolas}array[i].get() --- Consolas}
{\fontspec{Andale Mono}array[i].get() --- Andale Mono}
{\fontspec{Courier New}array[i].get() --- Courier New}
\end{document}
%%%%%%%%%%%%%%%
You will notice that Consolas and Courier New produce two problems:
- in [i], i is not centered between the [ ]
- the text around the dot (.) is not in even distances, it looks as
though the dot is moved to the left
These problems do not happen with Andale Mono.
Also if you type this text in Word or OpenOffice.org, there is no
problem at all.
Any ideas on whose fault this is?
Thank you in advance.
Nikos Platis
More information about the XeTeX
mailing list