From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos Pita Newsgroups: gmane.emacs.bugs Subject: bug#32210: Support medium weighted fonts Date: Thu, 19 Jul 2018 11:06:22 -0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cf336905715aaf3a" X-Trace: blaine.gmane.org 1532009936 28163 195.159.176.226 (19 Jul 2018 14:18:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 19 Jul 2018 14:18:56 +0000 (UTC) To: 32210@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 19 16:18:52 2018 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 1fg9lc-0007CX-0g for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2018 16:18:52 +0200 Original-Received: from localhost ([::1]:43523 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fg9nh-000593-7C for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Jul 2018 10:21:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fg9aF-000246-25 for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:07:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fg9aA-0004GO-QI for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:07:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fg9aA-0004GD-Ld for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fg9aA-0005jm-Ee for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Jul 2018 14:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32210 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153200921222032 (code B ref -1); Thu, 19 Jul 2018 14:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Jul 2018 14:06:52 +0000 Original-Received: from localhost ([127.0.0.1]:48366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fg9a0-0005jI-2K for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:52 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47937) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fg9Zy-0005j6-EA for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fg9Zp-0003zJ-B3 for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:45 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54194) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fg9Zp-0003zB-7g for submit@debbugs.gnu.org; Thu, 19 Jul 2018 10:06:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fg9Zn-0001hj-SB for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:06:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fg9Zj-0003wy-Or for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:06:39 -0400 Original-Received: from mail-yw0-x235.google.com ([2607:f8b0:4002:c05::235]:44332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fg9Zj-0003wW-II for bug-gnu-emacs@gnu.org; Thu, 19 Jul 2018 10:06:35 -0400 Original-Received: by mail-yw0-x235.google.com with SMTP id k18-v6so3093191ywm.11 for ; Thu, 19 Jul 2018 07:06:35 -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=bEUSTXc3zCzpLsq1Ku9YiCHWr5o5Wu104SNXWcpUEeM=; b=TTzUe6ZkkffcCu1fKwiHVak5cxkV83ddZpjNiKeZJ2QiUx8RqNBysKv9uZSPmta+gb HdAPFU+hHpXcfnKgdo1zHtn7NxSik7bB6yi2Kkd/SGVOxxhn2bOjUU1NCc/MIIECOAyh kYjT1u7Cn953Nbu8JYVdznMMW99j1ChDIK2igoM7l0WmRx9mEhuGpggnIZjnWjRVHy1S rZ/UXP/WcWuQb3OFQb7arjdVFDsslL3ehAD7faHYNRygZvFmCIBtyxETo3MDCHdS3+5/ mmjJuBqNWla0/vYyV9k+I2gjWdeLEpJaT3brUOwvssTOz5P8UW62S4dlqk9i5MXNuf6H 0+fA== 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=bEUSTXc3zCzpLsq1Ku9YiCHWr5o5Wu104SNXWcpUEeM=; b=A6X/TJJwa3lhovFpwmJ3lLxjWIqnilPWwRMC1Z97Jealc2nhP5Y4WTiDEE3KCKTjN4 0fSHJ7jSkAz5sp1aOpVmS/O0hjfn3iZoDhQXP28IFfIaOx0SY5+Dey0gU9GqcUGkm7lH vAJP2z+V8OqV7LnDgEjR9svfKUc6+gCJDBWdO/TbB4you0gEvpmseoWN5Dzyiki2c44m 6a5GDli9rpSZO7mAXsd2nwVqPhyLBTU2fDfIFnN8MC0BA0voTHDS3EzBl6AU/h0PCoKl uHe35OCgfJBBJTHFsceRL9GcnzAFDANjRY3vTIWmt0vNqFeOXDr0ws+GYBsS11x+iW6O T+cQ== X-Gm-Message-State: AOUpUlFVXXKYyorOGmKvdD7U9p1sHORcYImrPteRI81zS39+anvQUpBd F/9WLLAC3seo8SRfnli6nRDSvjictAYEydIkHuEsuDlZ X-Google-Smtp-Source: AAOMgpehRwg+6FiAKoc3v7KxUar16Tbur9V38RDcCgyPgAKQE1AKmAhrAl8BzSljJ4sN9Els+WgBD7uiIC8RjubG01I= X-Received: by 2002:a81:9b8b:: with SMTP id s133-v6mr5076282ywg.90.1532009194139; Thu, 19 Jul 2018 07:06:34 -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-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:148675 Archived-At: --000000000000cf336905715aaf3a Content-Type: text/plain; charset="UTF-8" (I'm unable to access my emacs now so sorry for reporting this from my phone. Ask for any additional details and I will provide them ASAP.) Many programming fonts are designed for hidpi devices and look pretty bad (too thin and "diffused") in their default weight in antialiased settings with standard resolution screen. Nevertheless a number of fontsets provide medium and/or demibold variants in between the regular one and the bold one. For example, the medium SauceCodePro (based on SourceCodePro) looks much solid than the regular variant. Now, the problem is that, no matter how emacs font is configured (xresources with xft or gtk descriptor, customize-face, the standard gtk dialog launched from the menu) medium is taken as an alias for normal/regular and you have to jump from regular to demibold. One good example is the aforementioned font. In xfce4-terminal I get all regular, medium and demibold variants. Medium is a nice default weight, demibold being too close to bold for regular usage. In emacs I get only the too thin regular weight (using regular or medium weights) or the too fat demibold (using demi/semibold). I think this is a relevant issue since emacs is mostly a programmer's tool and being unable to use the best font in a set designed for programming is not just a minor annoyance. One general solution would be to allow numerical values for weight, but nevertheless the medium symbol should be assigned the right meaning. --000000000000cf336905715aaf3a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(I'm unable to access my emacs now so sorry for repor= ting this from my phone. Ask for any additional details and I will provide = them ASAP.)

Many programming f= onts are designed for hidpi devices and look pretty bad (too thin and "= ;diffused") in their default weight in antialiased settings with stand= ard resolution screen.

N= evertheless a number of fontsets provide medium and/or demibold variants in= between the regular one and the bold one. For example, the medium SauceCod= ePro (based on SourceCodePro) looks much solid than the regular variant.

Now, the problem is that, = no matter how emacs font is configured (xresources with xft or gtk descript= or, customize-face, the standard gtk dialog launched from the menu) medium = is taken as an alias for normal/regular and you have to jump from regular t= o demibold.

One good exa= mple is the aforementioned font. In xfce4-terminal I get all regular, mediu= m and demibold variants. Medium is a nice default weight, demibold being to= o close to bold for regular usage. In emacs I get only the too thin regular= weight (using regular or medium weights) or the too fat demibold (using de= mi/semibold).

I think th= is is a relevant issue since emacs is mostly a programmer's tool and be= ing unable to use the best font in a set designed for programming is not ju= st a minor annoyance.

On= e general solution would be to allow numerical values for weight, but never= theless the medium symbol should be assigned the right meaning.


--000000000000cf336905715aaf3a--