all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Werner LEMBERG <wl@gnu.org>
To: eliz@gnu.org
Cc: 22699@debbugs.gnu.org, andrewjmoreton@gmail.com
Subject: bug#22699: 25.0.91; Accented characters truncated with DejaVu Sans Mono
Date: Tue, 23 Feb 2016 01:54:19 +0100 (CET)	[thread overview]
Message-ID: <20160223.015419.2093154995903849810.wl@gnu.org> (raw)
In-Reply-To: <834md0lid8.fsf@gnu.org>


>> With DejaVu Sans Mono (version 2.35), accented characters are not
>> displayed properly at some sizes, and appear truncated at the top
>> (as if a pixel row is missing).
>> 
>> For example, LATIN SMALL LETTER A WITH RING ABOVE "å"
>> 
>> Displays properly
>> -----------------
>> In Windows font dialog, choose "Deja Vu Sans Mono", "Bold", "9"
>> 
>> `describe-char' shows the font as:
>> uniscribe:-outline-DejaVu Sans 
>> Mono-bold-normal-normal-mono-12-*-*-*-c-*-iso8859-1 (#xA7)
>> 
>> Top of ring is clipped
>> ----------------------
>> In Windows font dialog, choose "Deja Vu Sans Mono", "Book", "9"
>> 
>> `describe-char' shows the font as:
>> uniscribe:-outline-DejaVu Sans Mono-normal-normal-normal-mono-12-*-*-*-c-*-=
>> iso8859-1 (#xA7)
>> 
>> This only appears with DejaVu Sans Mono version 2.35 at this size,
>> with the "Book" or "Oblique" font styles (larger or smaller sizes
>> display properly).
> 
> Thanks.  I wonder how to make sure this is an Emacs problem and not
> a problem with the font.

Here's my educated guess as a font specialist, but without any clue
how Emacs font rendering is handled on MS Windows.

AFAICS, this is a problem with the Windows GDI library, which only
renders glyph data in the vertical range between `usWinAscent' and
`usWinDescent'.  These two parameters are set in a TrueType font's
`OS/2' table; they are used to define the default spacing between text
baselines for a particular font.

Even Microsoft core fonts are affected by this problem.  For example,
glyph U+01FA (Aringacute) in arial.ttf gets clipped.

The only solution to reliably avoid this issue is to use the
DirectWrite library, as far as I know.


    Werner

  reply	other threads:[~2016-02-23  0:54 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-16 15:22 bug#22699: 25.0.91; Accented characters truncated with DejaVu Sans Mono Andy Moreton
2016-02-22 18:17 ` Eli Zaretskii
2016-02-23  0:54   ` Werner LEMBERG [this message]
2016-02-23 17:26     ` Eli Zaretskii
2016-02-23 18:02       ` Werner LEMBERG
2016-02-23 18:18         ` Eli Zaretskii
2016-02-23 18:44           ` Werner LEMBERG
2016-02-23 18:44         ` Eli Zaretskii
2020-08-12  3:54           ` Stefan Kangas
2016-02-23 23:22 ` Andy Moreton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160223.015419.2093154995903849810.wl@gnu.org \
    --to=wl@gnu.org \
    --cc=22699@debbugs.gnu.org \
    --cc=andrewjmoreton@gmail.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.