From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#26958: Can we make wavy underlines scale like straight ones? Date: Wed, 17 May 2017 00:36:47 -0400 Message-ID: References: <2751b56b-c419-8ad9-c588-11186a86fb9e@live.com> <0f5ba7d0-ab89-448c-969f-cdfc6bd0ef50@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ArQ0nrLCtB9uc27J9R3mQA4l5TGu1Vrw5" X-Trace: blaine.gmane.org 1494995895 12192 195.159.176.226 (17 May 2017 04:38:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 17 May 2017 04:38:15 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: Drew Adams , 26958@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 17 06:38:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAqiv-00033x-Qj for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 May 2017 06:38:10 +0200 Original-Received: from localhost ([::1]:45465 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAqiz-0001F7-TF for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 May 2017 00:38:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dAqit-0001Eq-Ex for bug-gnu-emacs@gnu.org; Wed, 17 May 2017 00:38:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dAqio-0001ry-HZ for bug-gnu-emacs@gnu.org; Wed, 17 May 2017 00:38:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46755) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dAqio-0001rq-Dg for bug-gnu-emacs@gnu.org; Wed, 17 May 2017 00:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dAqio-0004Dn-5u for bug-gnu-emacs@gnu.org; Wed, 17 May 2017 00:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 May 2017 04:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26958 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26958-submit@debbugs.gnu.org id=B26958.149499582916163 (code B ref 26958); Wed, 17 May 2017 04:38:02 +0000 Original-Received: (at 26958) by debbugs.gnu.org; 17 May 2017 04:37:09 +0000 Original-Received: from localhost ([127.0.0.1]:49432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAqhx-0004Cd-0L for submit@debbugs.gnu.org; Wed, 17 May 2017 00:37:09 -0400 Original-Received: from mout.kundenserver.de ([217.72.192.74]:57389) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dAqhv-0004C4-1n for 26958@debbugs.gnu.org; Wed, 17 May 2017 00:37:07 -0400 Original-Received: from [18.189.18.195] ([18.189.18.195]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.184]) with ESMTPSA (Nemesis) id 0LbIy2-1dq04a1ElO-00kuEp; Wed, 17 May 2017 06:36:54 +0200 In-Reply-To: <0f5ba7d0-ab89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it@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" Xref: news.gmane.org gmane.emacs.bugs:132559 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ArQ0nrLCtB9uc27J9R3mQA4l5TGu1Vrw5 Content-Type: multipart/mixed; boundary="cFVetV8bgJ27awjR508i9GOVR3geOskLQ"; protected-headers="v1" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: Drew Adams , 26958@debbugs.gnu.org Message-ID: Subject: Re: bug#26958: Can we make wavy underlines scale like straight ones? References: <2751b56b-c419-8ad9-c588-11186a86fb9e@live.com> <0f5ba7d0-ab89-448c-969f-cdfc6bd0ef50@default> In-Reply-To: <0f5ba7d0-ab89-448c-969f-cdfc6bd0ef50@default> --cFVetV8bgJ27awjR508i9GOVR3geOskLQ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-05-17 00:14, Drew Adams wrote: >> Straight underlines get thicker when font size increases, but wavy >> underlines do not. The problem is particularly visible on hi-resoluti= on >> displays, where wavy underlines look really tiny. This problem can be >> observed on all displays by running the following and pressing C-x C-=3D= a few >> times: >> >> (font-lock-mode -1) >> (insert (propertize "AAAAA" 'face '(:underline (:style line))) >> "\n" (propertize "AAAAA" 'face '(:underline (:style wave)))) >=20 > FWIW, on Windows I see neither straight nor wavy underline thicken. > They both continue to have the same line width (thickness) when > text-scaled. >=20 > Should they not stay the same? Should they thicken? Why? Thanks for the reply! They do scale in GNU/Linux; the code in xftfont say= s: font->underline_position =3D -ft_face->underline_position * size / = upEM; font->underline_thickness =3D ft_face->underline_thickness * size /= upEM; The corresponding code in w32font says: font->underline_thickness =3D metrics->otmsUnderscoreSize; font->underline_position =3D -metrics->otmsUnderscorePosition; which might be missing the scaling? > I'm not on a "highdpi", I imagine. But why should that make > difference as to whether an underline should change thickness > as the text is scaled? That's the behavior I see on every other program that (I checked and that= ) supports underlines on my machine: Thunderbird (which also scales wavy = underlines used to indicate spelling errors), Firefox, Chromium, and Libr= e Office Writer (which used to not scale spell-checking underlines, thoug= h this is partly fixed =E2=80=94 see bug 90793). > What about :overline? It has no :wavy property, but should > it too thicken when the text is scaled up? >=20 > And :box? :box has a :line-width property. Is that relevant > here? What should the behavior be for :box? What should it > be for attributes such as :underline or :overline or > :strike-through, which don't have a :line-width property? >=20 > It doesn't seem as if the right design is obvious. Judging by what web browsers do, they should all scale. > Note that the first URL you cite does not ask necessarily for > the wavy underline to scale. It explicitly asks about > customizing to specify the line width. >=20 > Maybe that's what the enhancement request should be: provide > :line-width for :underline, like we do for :box. And perhaps > for :overline and :strike-through? I made a separate request for (a limited version of) this. > The first question is whether such line widths should respond > to scaling. Dunno. I expect they should, based on looking at web browsers (and plenty of oth= er programs =E2=80=94 including Emacs ^^ =C2=AD=E2=80=94 in the case of u= nderlines). But it's not only a thickness issue: it's also a positioning= issue (the relative space between the text and the underline should be c= onstant). Cl=C3=A9ment. --cFVetV8bgJ27awjR508i9GOVR3geOskLQ-- --ArQ0nrLCtB9uc27J9R3mQA4l5TGu1Vrw5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJZG9NfAAoJEPqg+cTm90wjD/QP/0NJeJR+8xKGTyzgYkZWBi1J ZRk2BWmovF2+FZiZteKPLw/7qvpCroZsDmxJFxlUllAaoEPXnc249906X7qzHyPM wOuOswyYwegYxCYHAQtU6t1CtqXseNNj/Mp25QfvqpFWdbqyoXGR4LF8g1ErIw1F 7V3881E+nHjRPQ/Z5CV3C9pbIEbgQSou1YSOWoP+oKNP4hR+w2wfXo1UYdYJYsCG goiD+adaeJsAre+goBr2y8IoG0Dw/GzZhzQwQ5CJvENwdoZ9pn6e8n0tDIOJNGHz 73LTi6/9cKuxwSVDjKAiaOLKyqkwQxjPTraCF+VKr33phSD2eLkztBEiMXxvRZeQ miq6+rcCiAbeLbZWQvkrx2v5ClQTRvaIUUT/2SZFUBfZeboEmVFYLhYNHqbxgraT oa3b35LcqdmzNKI1skN2/6s+VDYpSPbx5rUThunAQUVl4b7hakCVvJDk1ezBriit gDoEFm/tlxJ6q3+HaGNBNpUcYI9UqxdH3Y7dG1cJF5A8cvHVfErD2H2IlepepNEO 58a5e68NPn8m5Ke1G9HxjH62t98QIUrchEdcvle01Cq3ZcHRC3LoEt7+4gu3p6fs 5H8QMUA0DsQTqHGKgnlBss1aBDe565suqOmxPRxg6xPeP2+iYYxjtwwmEzvoWNeI 5uc3++2RuS/uqjD5MFN2 =O2uR -----END PGP SIGNATURE----- --ArQ0nrLCtB9uc27J9R3mQA4l5TGu1Vrw5--