[XeTeX] Kerning problems (?) with fixed-width fonts
Nikos Platis
nplatis at freemail.gr
Mon Mar 2 00:20:41 CET 2009
The correct thing to write would probably be
\fontspec[Kerning=Off]{Courier New}
but this does not solve my problem.
Now that I look better, Courier New does not seem to have the problem,
but Consolas surely does. It is better exemplified by typing a url, e.g.
www.xetex.org, where it can be seen that the dots are moved to the left.
Also the Consolas font does not seem to support the Kerning option of
fontspec (I receive a relevant warning). This is a pitty, because
Consolas is a nice constant-width font...
Nikos
> Try turning of the kerning property, thus:
>
> \fontspec{Courier New:-kern}
>
>
> Nicolas
>> 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?
>
>
--
-----------------------------------------------------------------------
Nikos Platis e-mail: nplatis at freemail.gr
"The empires of the future are the empires of the mind." - W. Churchill
-----------------------------------------------------------------------
More information about the XeTeX
mailing list