GNU bug report logs - #475
23.0.60; [Feature request] activate kerning and standard ligatures in variable-pitch-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: James Cloos <cloos@HIDDEN>; merged with #30331, #36914; dated Tue, 24 Jun 2008 11:55:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 475 30331 36914. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 475 36914. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to `wishlist' from `normal' Request was from Jason Rumney <jasonr@HIDDEN> to control@HIDDEN. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-6.4 required=4.0 tests=AWL,BAYES_00,FOURLA,
	RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 24 Jun 2008 11:49:30 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5OBnPm6032071
	for <submit@HIDDEN>; Tue, 24 Jun 2008 04:49:26 -0700
Received: from mail.gnu.org ([199.232.76.166]:60489 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <cloos@HIDDEN>)
	id 1KB71S-00074J-J0
	for emacs-pretest-bug@HIDDEN; Tue, 24 Jun 2008 07:49:18 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <cloos@HIDDEN>)
	id 1KB71U-00078Z-7c
	for emacs-pretest-bug@HIDDEN; Tue, 24 Jun 2008 07:49:23 -0400
Received: from eagle.jhcloos.com ([207.210.242.212]:2679)
	by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <cloos@HIDDEN>)
	id 1KB71T-00076n-Jd
	for emacs-pretest-bug@HIDDEN; Tue, 24 Jun 2008 07:49:19 -0400
Received: by eagle.jhcloos.com (Postfix, from userid 10)
	id 1AFE3402AC; Tue, 24 Jun 2008 11:49:16 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com;
	s=eagle; t=1214308156; bh=NwZBoyQg2dDtymsjsg8evHigzENYznTKHCXTModcK
	1E=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:
	 Content-Transfer-Encoding; b=JuVw4+E3t4sml92edys8npp3w5RqfVfmU3aRh
	pSo2sMONF4dAkQEiDt9WPTZ045a4FmYxI+VqguEMBT2ZV5DqzQZrFsthK/i0MBqpHBE
	YhjT28Cj3ENqmCEmvsdmNhzs5Co0jEDh4dcLmo8mRjjrNhT7P0Hh90XJ9PEm3sk08QQ
	=
Received: by lugabout.jhcloos.org (Postfix, from userid 500)
	id C1B8C210685; Tue, 24 Jun 2008 11:24:13 +0000 (UTC)
From: James Cloos <cloos@HIDDEN>
To: emacs-pretest-bug@HIDDEN
Subject: 23.0.60; [Feature request] activate kerning and standard ligatures in variable-pitch-mode
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux)
Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAI1J
 REFUOE+lU9ESgCAIg64P1y+ngUdxhl5H8wFbbM0OmUiEhKkCYaZThXCo6KE5sCbA1DDX3genvO4d
 eBQgEMaM5qy6uWk4SfBYfdu9jvBN9nSVDOKRtwb+I3epboOsOX5pZbJNsBJFvmQQ05YMfieIBnYX
 FK2N6dOawd97r/e8RjkTLzmMsiVgrAoEugtviCM3v2WzjgAAAABJRU5ErkJggg==
Copyright: Copyright 2008 James Cloos
OpenPGP: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc
OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B  63E7 997A 9F17 ED7D AEA6
Date: Tue, 24 Jun 2008 07:23:50 -0400
Message-ID: <m3prq7yt2a.fsf@HIDDEN>
Lines: 66
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4)


Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@HIDDEN mailing l=
ist.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I=E2=80=99ve been testing (variable-pitch-mode) for gnus *Article* buffer=
s,
message buffers and src modes.  Quite cool.

But it would be better were the standard ligatures applied.

I=E2=80=99ve been using DejaVu Serif for the variable-pitch face.  Its OT=
F
tables include ff, fi, fl, ffi, ffl ligs which should apply for all text
runs, but Emacs does not apply them.  The ligs /are/ easier to read,
even at screen resolutions.

Obviously this should not be done for fixed-pitch text runs, but it will
improve variable-pitch runs quite a bit.

For cases where point is at one of the characters which make up a
ligated glyph, the Right Thing To Do is to break the text run either
side of point, so that the individual glyphs are painted; this will
ensure that the user can tell what is going on.

Put another way:  in order the get the ligated glyphs you have to pass
each text run at least a word at a time to the OTF engine.  If the text
run is also broken before and after point =E2=80=94 which implies that th=
e
character at point is its own single-character text run =E2=80=94 then
everything just works.

(At least for simple scripts like latin, greek, cyrillic, et al.  I
/think/ that concept would work OK for arabic as well, but I=E2=80=99m no=
t at
all sure how well it matches up with, eg, the dravidian scripts.)

For non-OTF variable-pitch-mode fonts, it would not hurt to look for
encoded ligatures and use them, at least for fi and fl, but getting it
working for fonts with OTF tables would be an important first step.

Kerning probably will have only a minimal impact on the display at
typical screen resolution, but it should be applied anyway.  There are a
few combinations where it does make a significant difference in legibilit=
y.

As a side note, it would be cool to support applying other OTF features
by way of overlays.

In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2008-06-21 on lugabout
Windowing system distributor `The X.Org Foundation', version 11.0.1059900=
1
configured using `configure  '--prefix=3D/usr' '--host=3Di686-pc-linux-gn=
u' '--mandir=3D/usr/share/man' '--infodir=3D/usr/share/info' '--datadir=3D=
/usr/share' '--sysconfdir=3D/etc' '--localstatedir=3D/var/lib' '--program=
-suffix=3D-emacs-23' '--infodir=3D/usr/share/info/emacs-23' '--without-ca=
rbon' '--with-sound' '--with-x' '--with-toolkit-scroll-bars' '--with-gif'=
 '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--e=
nable-font-backend' '--with-freetype' '--with-xft' '--with-libotf' '--wit=
h-m17n-flt' '--with-x-toolkit=3Dathena' '--without-hesiod' '--with-kerber=
os' '--with-kerberos5' '--with-gpm' '--with-dbus' '--build=3Di686-pc-linu=
x-gnu' 'build_alias=3Di686-pc-linux-gnu' 'host_alias=3Di686-pc-linux-gnu'=
 'CC=3Di686-pc-linux-gnu-gcc' 'CFLAGS=3D-march=3Dpentium3 -O2' 'LDFLAGS=3D=
 -Wl,--as-needed ''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: C
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t





Acknowledgement sent to James Cloos <cloos@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#475; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.