From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ben Bonfil Newsgroups: gmane.emacs.bugs Subject: bug#28222: [PATCH] Use thin font smoothing in macOS Date: Thu, 24 Aug 2017 13:20:26 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="001a114562f0f51b5505577e0316" X-Trace: blaine.gmane.org 1503588500 14802 195.159.176.226 (24 Aug 2017 15:28:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 15:28:20 +0000 (UTC) To: 28222@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 24 17:28:13 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 1dku3C-0003GI-RG for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Aug 2017 17:28:07 +0200 Original-Received: from localhost ([::1]:49025 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dku3J-00032H-N3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Aug 2017 11:28:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dku39-0002xa-Px for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2017 11:28:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dku38-0005tH-Vf for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2017 11:28:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44343) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dku38-0005t6-QD for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2017 11:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dku38-00033T-Dq for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2017 11:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ben Bonfil Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Aug 2017 15:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28222 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150358844711696 (code B ref -1); Thu, 24 Aug 2017 15:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Aug 2017 15:27:27 +0000 Original-Received: from localhost ([127.0.0.1]:53024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dku2Z-00032a-IK for submit@debbugs.gnu.org; Thu, 24 Aug 2017 11:27:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkqBq-0001mZ-02 for submit@debbugs.gnu.org; Thu, 24 Aug 2017 07:20:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkqBg-00011e-Ig for submit@debbugs.gnu.org; Thu, 24 Aug 2017 07:20:37 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dkqBg-00011a-EO for submit@debbugs.gnu.org; Thu, 24 Aug 2017 07:20:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40832) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dkqBc-0006TE-F6 for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2017 07:20:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dkqBZ-0000zK-SF for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2017 07:20:30 -0400 Original-Received: from mail-ua0-x232.google.com ([2607:f8b0:400c:c08::232]:36561) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dkqBZ-0000yp-Lt for bug-gnu-emacs@gnu.org; Thu, 24 Aug 2017 07:20:29 -0400 Original-Received: by mail-ua0-x232.google.com with SMTP id 60so959313uac.3 for ; Thu, 24 Aug 2017 04:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=q1iCm2kQU4OeuXN8Ed4f/nyogCBc3i9P25HwCxodmYQ=; b=jUh4UAs3gcYcSFODSvzEh3X/zaw+yfN1JRYQHStwQMaZ8r54zD7lJU/0wZ6o3zi+m7 y+/B7Tg99lBnPgSwOCukqqjlxLVQcRRUi2PZyHdYdyD9K5zrYtskNAf8ce+BT+9swqoR g6lvJvj8yz2SMp8tCv18M7emjD+4uJM5zDA9s+GOnPRiH3J4/Dv6ozv75b6V7o7liBCp aH/3CqRr0oAR13eM9ndeu+JREitrHohZEXRulYXdCDzlchtNZv7GpiZmrEzDiYSP33+0 JueS40kpLyVfUdyOdIo3A2C5X6eo9Ol8unhXHdycJZHk8CAX+OebDYGarapghMoID9Hk jCMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=q1iCm2kQU4OeuXN8Ed4f/nyogCBc3i9P25HwCxodmYQ=; b=RRNr913cgihbwN6cix2VGXSkboWufi+4Gh9YNKbt7kRYSS1oIPILf69ekb6Uveib6F R0UAtkIxH+g/d4qR4YsvrSGl1f0VcqU+MSW0ndq4VFvq35ZCQxBEhGiByHWRPaLMBRvo EoFeIFGWwstBelaYPvtVauGn5FSfcwnySSZvImBSlrszTqax5T/9iRreNu3aqcBCSl13 8m46yhZfUBg6Es6aCZupWU0WSxoKp7GqPL5Eh4mbp0/tbiD4JEKYYTpi9W2jg4XdMjw9 qECNkBJlVKSzmESzrXfGR1ZVuMqR1Q60ks6kHYOKZI6m4iv3jFuJljeJ41MfqYPXaEj1 fRRA== X-Gm-Message-State: AHYfb5jNRUFdjz+A9QR0+BEalH4x/gUn7f5mKLJ/DLm+d3xlvvyclmE7 0Llx1yiZeka2ZbYcJ+Ol67ZOUe8+gHnD X-Received: by 10.159.50.74 with SMTP id y10mr3809431uad.105.1503573627433; Thu, 24 Aug 2017 04:20:27 -0700 (PDT) Original-Received: by 10.176.76.8 with HTTP; Thu, 24 Aug 2017 04:20:26 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 24 Aug 2017 11:27:26 -0400 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" Xref: news.gmane.org gmane.emacs.bugs:136149 Archived-At: --001a114562f0f51b5505577e0316 Content-Type: multipart/alternative; boundary="001a114562f0f51b5005577e0314" --001a114562f0f51b5005577e0314 Content-Type: text/plain; charset="UTF-8" Hello, Attached is a small patch that enables thin font smoothing on macOS, just like in iTerm2. It is toggled by a new variable called ns-use-thin-smoothing. Tested only on macOS Sierra (10.12.6) Thanks, Ben --001a114562f0f51b5005577e0314 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Attached is a smal= l patch that enables thin font smoothing on macOS, just like in iTerm2.
=
It is toggled by a new variable called ns-use-thin-smoothing.

Tested only on macOS Sierra (10.12.6)
<= br>
Thanks,
Ben


--001a114562f0f51b5005577e0314-- --001a114562f0f51b5505577e0316 Content-Type: application/octet-stream; name="0001-Enable-thin-font-smoothing-in-macOS.patch" Content-Disposition: attachment; filename="0001-Enable-thin-font-smoothing-in-macOS.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_j6qcwom30 RnJvbSBiYTAxY2I5NTYyODQxOTNkNDFiOWNmNmIzYTI2MDM4NWZhMzY3MDM5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBCZW4gQm9uZmlsIDxib25maWxAZ21haWwuY29tPgpEYXRlOiBU aHUsIDI0IEF1ZyAyMDE3IDEyOjU5OjUwICswMjAwClN1YmplY3Q6IFtQQVRDSF0gRW5hYmxlIHRo aW4gZm9udCBzbW9vdGhpbmcgaW4gbWFjT1MKCiogc3JjL25zdGVybS5tIChzeW1zX29mX25zdGVy bSk6IERlZmluZSB2YXIgbnMtdXNlLXRoaW4tc21vb3RoaW5nLgoqIHNyYy9tYWNmb250Lm0gKG1h Y2ZvbnRfZHJhdyk6IFVzZSBmb250IHNtb290aGluZy4KLS0tCiBzcmMvbWFjZm9udC5tIHwgNSAr KysrKwogc3JjL25zdGVybS5tICB8IDQgKysrKwogMiBmaWxlcyBjaGFuZ2VkLCA5IGluc2VydGlv bnMoKykKCmRpZmYgLS1naXQgYS9zcmMvbWFjZm9udC5tIGIvc3JjL21hY2ZvbnQubQppbmRleCAx OTE0NWY5MmMwLi44YTRkMGZhNDgxIDEwMDY0NAotLS0gYS9zcmMvbWFjZm9udC5tCisrKyBiL3Ny Yy9tYWNmb250Lm0KQEAgLTI4ODgsNiArMjg4OCwxMSBAQCBTbyB3ZSB1c2UgQ1RGb250RGVzY3Jp cHRvckNyZWF0ZU1hdGNoaW5nRm9udERlc2NyaXB0b3IgKG5vCiAgICAgICBpZiAobm9fYW50aWFs aWFzX3ApCiAgICAgICAgIENHQ29udGV4dFNldFNob3VsZEFudGlhbGlhcyAoY29udGV4dCwgZmFs c2UpOwogCisgICAgICBpZiAoIU5JTFAgKG5zX3VzZV90aGluX3Ntb290aGluZykpIHsKKyAgICAg ICAgICBDR0NvbnRleHRTZXRTaG91bGRTbW9vdGhGb250cyhjb250ZXh0LCBZRVMpOworICAgICAg ICAgIENHQ29udGV4dFNldEZvbnRTbW9vdGhpbmdTdHlsZShjb250ZXh0LCAxNik7CisgICAgICB9 CisKICAgICAgIENHQ29udGV4dFNldFRleHRNYXRyaXggKGNvbnRleHQsIGF0Zm0pOwogICAgICAg Q0dDb250ZXh0U2V0VGV4dFBvc2l0aW9uIChjb250ZXh0LCB0ZXh0X3Bvc2l0aW9uLngsIHRleHRf cG9zaXRpb24ueSk7CiAKZGlmZiAtLWdpdCBhL3NyYy9uc3Rlcm0ubSBiL3NyYy9uc3Rlcm0ubQpp bmRleCAyMmY4ZWZkNmI5Li5mZjMzMjlkMWNlIDEwMDY0NAotLS0gYS9zcmMvbnN0ZXJtLm0KKysr IGIvc3JjL25zdGVybS5tCkBAIC05MTMzLDYgKzkxMzMsMTAgQEAgQ29udmVydCBhbiBYIGZvbnQg bmFtZSAoWExGRCkgdG8gYW4gTlMgZm9udCBuYW1lLgogICAgICAgICAgICAgICAgIk5vbi1uaWwg KHRoZSBkZWZhdWx0KSBtZWFucyB0byByZW5kZXIgdGV4dCBhbnRpYWxpYXNlZC4iKTsKICAgbnNf YW50aWFsaWFzX3RleHQgPSBRdDsKIAorICBERUZWQVJfTElTUCAoIm5zLXVzZS10aGluLXNtb290 aGluZyIsIG5zX3VzZV90aGluX3Ntb290aGluZywKKyAgICAgICAgICAgICAgICJOb24tbmlsIHR1 cm5zIG9uIGEgZm9udCBzbW9vdGhpbmcgbWV0aG9kIHRoYXQgcHJvZHVjZXMgdGhpbm5lciBzdHJv a2VzLiIpOworICBuc191c2VfdGhpbl9zbW9vdGhpbmcgPSBRbmlsOworCiAgIERFRlZBUl9MSVNQ ICgibnMtY29uZmlybS1xdWl0IiwgbnNfY29uZmlybV9xdWl0LAogICAgICAgICAgICAgICAgIldo ZXRoZXIgdG8gY29uZmlybSBhcHBsaWNhdGlvbiBxdWl0IHVzaW5nIGRpYWxvZy4iKTsKICAgbnNf Y29uZmlybV9xdWl0ID0gUW5pbDsKLS0gCjIuMTEuMCAoQXBwbGUgR2l0LTgxKQoK --001a114562f0f51b5505577e0316--