From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22699: 25.0.91; Accented characters truncated with DejaVu Sans Mono Date: Tue, 23 Feb 2016 19:26:09 +0200 Message-ID: <83vb5fibim.fsf@gnu.org> References: <56C33EC8.9050309@gmail.com> <834md0lid8.fsf@gnu.org> <20160223.015419.2093154995903849810.wl@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1456248456 23469 80.91.229.3 (23 Feb 2016 17:27:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2016 17:27:36 +0000 (UTC) Cc: 22699@debbugs.gnu.org, andrewjmoreton@gmail.com To: Werner LEMBERG Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 18:27:24 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYGk8-0002X2-BD for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 18:27:24 +0100 Original-Received: from localhost ([::1]:58762 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYGk7-0000cZ-O0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 12:27:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYGjr-0000Oo-Cr for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 12:27:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYGjl-0003Cs-Ui for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 12:27:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYGjl-0003Cm-Rc for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 12:27:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYGjl-0004uV-Kv for bug-gnu-emacs@gnu.org; Tue, 23 Feb 2016 12:27:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Feb 2016 17:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22699 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22699-submit@debbugs.gnu.org id=B22699.145624839018835 (code B ref 22699); Tue, 23 Feb 2016 17:27:01 +0000 Original-Received: (at 22699) by debbugs.gnu.org; 23 Feb 2016 17:26:30 +0000 Original-Received: from localhost ([127.0.0.1]:41591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYGjG-0004ti-JU for submit@debbugs.gnu.org; Tue, 23 Feb 2016 12:26:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44564) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYGjF-0004tV-01 for 22699@debbugs.gnu.org; Tue, 23 Feb 2016 12:26:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYGj9-0002zf-3Z for 22699@debbugs.gnu.org; Tue, 23 Feb 2016 12:26:23 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYGj2-0002v0-6z; Tue, 23 Feb 2016 12:26:16 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2611 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aYGj1-0006bo-FP; Tue, 23 Feb 2016 12:26:15 -0500 In-reply-to: <20160223.015419.2093154995903849810.wl@gnu.org> (message from Werner LEMBERG on Tue, 23 Feb 2016 01:54:19 +0100 (CET)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113600 Archived-At: > Date: Tue, 23 Feb 2016 01:54:19 +0100 (CET) > Cc: andrewjmoreton@gmail.com, 22699@debbugs.gnu.org > From: Werner LEMBERG > > >> 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.