From: Eli Zaretskii <eliz@gnu.org>
To: Werner LEMBERG <wl@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 19:26:09 +0200 [thread overview]
Message-ID: <83vb5fibim.fsf@gnu.org> (raw)
In-Reply-To: <20160223.015419.2093154995903849810.wl@gnu.org> (message from Werner LEMBERG on Tue, 23 Feb 2016 01:54:19 +0100 (CET))
> Date: Tue, 23 Feb 2016 01:54:19 +0100 (CET)
> Cc: andrewjmoreton@gmail.com, 22699@debbugs.gnu.org
> From: Werner LEMBERG <wl@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.
Emacs uses Uniscribe if possible (and it is in this case), not GDI
directly.
I indeed confirm that the problem exists in version 2.35 of the font,
but not in an earlier version I had before that (2.19?). So perhaps a
bug report to the DejaVu fonts is in order.
> The only solution to reliably avoid this issue is to use the
> DirectWrite library, as far as I know.
Does MS-Word on Windows 8.1 use DirectWrite? Because it, too, suffers
from the same problem with this font and size, when displaying that
character.
next prev parent reply other threads:[~2016-02-23 17:26 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
2016-02-23 17:26 ` Eli Zaretskii [this message]
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=83vb5fibim.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=22699@debbugs.gnu.org \
--cc=andrewjmoreton@gmail.com \
--cc=wl@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.