[XeTeX] Bad glyph positions with DejaVu Sans Mono and Courier New
Nikos Platis
nplatis at freemail.gr
Mon Apr 27 23:07:23 CEST 2009
Well, some time ago I had a similar problem with the monospaced font
Consolas. So I changed the code you provide to use Consolas, and it does
exhibit the problem you mention, glyphs are aligned left instead of
centered.
Apostolos Syropoulos was, back then, kind enough to try my test document
as well, and he demonstrated the problem in this message:
http://tug.org/mailman/htdig/xetex/2009-March/012372.html
(see the attachments at the end)
What I am seeing is that too many monospaced fonts seem to produce the
same problem in XeTeX, while they work correctly in other
applications... This is becoming something that should be investigated
by the XeTeX developers...
Nikos Platis
O/H Tomáš Janoušek έγραψε:
> Hello list,
>
> On Mon, Apr 27, 2009 at 07:36:22PM +0200, Tomáš Janoušek wrote:
>
>> On Mon, Apr 27, 2009 at 09:34:09AM -0700, Apostolos Syropoulos wrote:
>>
>>> [...]
>>> \setmonofont{Courier New}
>>> [...]
>>> but Acroread, evince, gv give exactly the same result. I can send you
>>> screenshot if you like.
>>>
>> Well, maybe you have another version of Courier New. Is it possible that you
>> send me the font and the PDF output so that I can try that here?
>>
>
> We exchanged a few emails with Apostolos (with megabyte-sized attachment,
> hence off-list) and we found this:
>
> Courier New font that's shipped in msttcorefonts on Debian and with Windows XP
> (about 300k in size) works incorrectly -- aligns glyphs to the left.
>
> Courier New shipped with Windows Vista and OpenSolaris (about 690k in size)
> works fine -- and in Windows Vista it has an OpenType icon (while being a .ttf
> file, in fact).
>
> Still no clue what's wrong with DejaVu Sans Mono, but at least I have a
> working example of Courier New.
>
> Any ideas, anyone?
>
> Thanks,
>
--
-----------------------------------------------------------------------
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