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: Fri, 25 Aug 2017 18:58:51 +0200 Message-ID: References: <20170825161324.GA63651@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11471dcc0413cb055796dc09" X-Trace: blaine.gmane.org 1503680357 19930 195.159.176.226 (25 Aug 2017 16:59:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 25 Aug 2017 16:59:17 +0000 (UTC) Cc: 28222@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 25 18:59:12 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 1dlHws-0004pT-L5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 18:59:10 +0200 Original-Received: from localhost ([::1]:54243 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlHwz-00055X-J8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 25 Aug 2017 12:59:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dlHwo-000544-My for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 12:59:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dlHwk-0006c0-Pc for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 12:59:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46128) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dlHwk-0006bh-K3 for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 12:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dlHwk-0007y1-9z for bug-gnu-emacs@gnu.org; Fri, 25 Aug 2017 12:59: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: Fri, 25 Aug 2017 16:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28222 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 28222-submit@debbugs.gnu.org id=B28222.150368033930616 (code B ref 28222); Fri, 25 Aug 2017 16:59:02 +0000 Original-Received: (at 28222) by debbugs.gnu.org; 25 Aug 2017 16:58:59 +0000 Original-Received: from localhost ([127.0.0.1]:54809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlHwh-0007xk-0M for submit@debbugs.gnu.org; Fri, 25 Aug 2017 12:58:59 -0400 Original-Received: from mail-yw0-f173.google.com ([209.85.161.173]:34102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dlHwf-0007xV-9V for 28222@debbugs.gnu.org; Fri, 25 Aug 2017 12:58:58 -0400 Original-Received: by mail-yw0-f173.google.com with SMTP id t188so2205183ywb.1 for <28222@debbugs.gnu.org>; Fri, 25 Aug 2017 09:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=X/82NUQ/kPvM9lMVSuxu4tcwEaxWAqYW2SZdDUjQFCo=; b=nZFvbHcHqnsZMZQ7fb3Fs9aIqYWmY8s1VQbnNDAkn+WCGs+heJsTxIaOBYQx3faJD3 g3IA5m7OshgfpHeTaeQfYITgpzGcp5pEW4BMRWgrVFgn6ee4d2slLz5J+I/DI5x1A9Kw HkShJ4AbnY4QS7QtHTWQKRTEvyWubkAor5VZiRnKribDOgxzQ6gQGqv4b7PkW1l73qoj wBdf8PLT4A6116Qt3Ug4Swdq0OTU//Fjf5sziVJrkjAw1piaLzkic4oA8CLBEzLVRzin wOUPQySnPDPnJO6vkL5fSh93flkzSx/k7CgG5Dwjvu+rgKz6b3MzBvuKBeSD/izhyRm/ OhLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=X/82NUQ/kPvM9lMVSuxu4tcwEaxWAqYW2SZdDUjQFCo=; b=cOdfrSYTlv8Bm/zwmEw8uM6QJDDlg09sihZch3m8jmKXSeVDyslvhn1lU4cVbNNNUP fB+AGBcqpUZM4jJZC0+uCvtwnJ0sZtD+mSYcgWlotzYBhSHo4oKsyFLH8DGtavNY+yfM E/3Wi7o9MFPR8LETlcGlQOfGgx68+2h07WR+lkYYQxShhY+y99zwTKiiwvL3HYpYlJtM kM06oKSiepuKH5yr7xVbm/D6lvO6OCbLda3MWHcXsVI/I/XB4KBWEBaNpWztNWSg+gXS ax84OucKgyUr3YOsEtUvWNvWHW2D/C3LPUNqHQ+lzIzEhVfJQhOzJpHDkVO1fcqPTrPT DyfA== X-Gm-Message-State: AHYfb5hnKMKGRO6kqrjA7MbRy5MlLkJB66IDCgHk6vrhLZX3OJDKF8k+ qZUelnNDDeUBpDmfXBJytpdHjgmCsB83GiM= X-Received: by 10.37.192.210 with SMTP id c201mr7489484ybf.159.1503680331516; Fri, 25 Aug 2017 09:58:51 -0700 (PDT) Original-Received: by 10.37.79.65 with HTTP; Fri, 25 Aug 2017 09:58:51 -0700 (PDT) In-Reply-To: <20170825161324.GA63651@breton.holly.idiocy.org> 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:136206 Archived-At: --001a11471dcc0413cb055796dc09 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Alan, Thanks for taking the time to look at this. The way I see it, this is analogous to the existing ns-antialias-text flag, which is another rendering preference that can be changed system-wide, yet is available within Emacs. I would say that the use of these options is sometimes beneficial, based on one's choice of fonts. For example, if you use a bitmap font in Emacs, you would likely disable anti-aliasing, but you wouldn't necessarily do it system-wide. (I don't really know how to turn on thin smoothing system-wide, but that's not the main argument) As for Dr. Stallman's question: fortunately this is not necessary in GNU/Linux, but on macOS with a non-HiDPI display I personally find the difference significant. Ben On Fri, Aug 25, 2017 at 6:13 PM, Alan Third wrote: > On Thu, Aug 24, 2017 at 01:20:26PM +0200, Ben Bonfil wrote: > > Attached is a small patch that enables thin font smoothing on macOS, ju= st > > like in iTerm2. > > It is toggled by a new variable called ns-use-thin-smoothing. > > > > Tested only on macOS Sierra (10.12.6) > > Hi, is there any reason this needs to be done within Emacs? As far as > I can tell you should be able to set thin anti=E2=80=90aliasing without > needing a setting in Emacs. > -- > Alan Third > --001a11471dcc0413cb055796dc09 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Alan,

= Thanks for taking the time to look at this.

The way I s= ee it, this is analogous to the existing ns-antialias-text flag, which is a= nother rendering preference that can be changed system-wide, yet is availab= le within Emacs.
I would say that the use of these options is som= etimes beneficial, based on one's choice of fonts.
For example, if y= ou use a bitmap font in Emacs, you would likely disable anti-aliasing, but = you wouldn't necessarily do it system-wide.

(I don't r= eally know how to turn on thin smoothing system-wide, but that's not th= e main argument)

As for Dr. Stallman's questio= n: fortunately this is not necessary in GNU/Linux, but on macOS with a non-= HiDPI display I personally find the difference significant.
<= br>
Ben

On Fri, Aug 25, 2017 at 6:13 PM, Alan Third <alan@idiocy.org> wrote:
On Thu, Aug = 24, 2017 at 01:20:26PM +0200, Ben Bonfil wrote:
> Attached is a small patch that enables thin font smoothing on macOS, j= ust
> like in iTerm2.
> It is toggled by a new variable called ns-use-thin-smoothing. >
> Tested only on macOS Sierra (10.12.6)

Hi, is there any reason this needs to be done within Emacs? As far as
I can tell you should be able to set thin anti=E2=80=90aliasing without
needing a setting in Emacs.
--
Alan Third

--001a11471dcc0413cb055796dc09--