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#31702: Date: Mon, 4 Jun 2018 20:02:33 -0300 Message-ID: References: <87tvqjp7lj.fsf@carlos.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1528153331 3884 195.159.176.226 (4 Jun 2018 23:02:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 4 Jun 2018 23:02:11 +0000 (UTC) To: 31702@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 05 01:02:07 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 1fPyUI-0000ua-Li for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Jun 2018 01:02:06 +0200 Original-Received: from localhost ([::1]:42275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPyWP-0002tm-NN for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jun 2018 19:04:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPyWG-0002tQ-CX for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 19:04:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPyWC-0006jx-BJ for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 19:04:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54047) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPyWC-0006io-72 for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 19:04:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPyWA-0003Bu-4Y for bug-gnu-emacs@gnu.org; Mon, 04 Jun 2018 19:04:03 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87tvqjp7lj.fsf@carlos.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: Carlos Pita Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jun 2018 23:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31702 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 31702-submit@debbugs.gnu.org id=B31702.152815338412187 (code B ref 31702); Mon, 04 Jun 2018 23:04:02 +0000 Original-Received: (at 31702) by debbugs.gnu.org; 4 Jun 2018 23:03:04 +0000 Original-Received: from localhost ([127.0.0.1]:33711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPyVD-0003AV-TP for submit@debbugs.gnu.org; Mon, 04 Jun 2018 19:03:04 -0400 Original-Received: from mail-io0-f194.google.com ([209.85.223.194]:43548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPyVA-00039p-3k for 31702@debbugs.gnu.org; Mon, 04 Jun 2018 19:03:00 -0400 Original-Received: by mail-io0-f194.google.com with SMTP id t6-v6so974529iob.10 for <31702@debbugs.gnu.org>; Mon, 04 Jun 2018 16:03:00 -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=gh4dHQsxdnxJtwqbk3ULkvcT+oXGruH1rUmtTWxtOuA=; b=AeFhvA3QASbwZg1GKDUxk2ZEmmywWUVMu2bPGeCjFQ2vYmRfkl3wP/nUVCEcSrD1/f eTP3BRPI7+EgPK+dhqy8n0mliiN/VrrRaBxMTafp7ma5g3hwFtinSZIbquPLryxWBPK4 QCEBEGx/irenpXrC9scKO5gSNIDHqP4HgjS/GAHLnvQV8chlvBiiGhA5bGTFFe9laEAm RSrai/g8L33F4nVBzkCE7K93e3g9ALpuGvT2HtqBx0r7prkekubv16y8wqAd7/IN+ioJ Kb9+uRkzzU/XcvcO2DAO7SZLKvTdEhePIpSkGNOUtur2IzEjkqXS8PsDtEBwcPwY+mkx lrfw== 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=gh4dHQsxdnxJtwqbk3ULkvcT+oXGruH1rUmtTWxtOuA=; b=ZQ1DKw0dT7wyCFNChF96FM8kwbqfnxCG9r2MniTEvk4Tw71DEoLy8HwdNjdX69IqI8 u4Ivx41x1XDIEhxV0Bm7MVDG5n/1AE/eaZm+/GgdGsGibfpfzacfrQXNo0hlddQ4ivfD r3+rIe4z0WajRTryKISRwrwKB7PlNj+Y9H8yctdJWpk21FVs2fijOW8d0dz+F1Wm/j3F VQjD0tUPeA5Tf7I4Qm1XipYwatQTZjYJkZ86Kbo/tw+eLvaXVcdoTUHpKK0h1ufN9bgI aBZHUm0D84A/eIdhFqqiAyrcgxnjlp8iHzfJvi0yfFj5YpY2+dmSyTF97Noa6vzrbzfp PFUA== X-Gm-Message-State: APt69E08r8ZZ8fCUoQWS2dKxSkUlo3cgIuxQeWLeYsLnHkr4efIz0gp+ C3jW7uYVtR7RLre7WcJ8kV97g13pzB1DuuDcoRE37g== X-Google-Smtp-Source: ADUXVKIFTDfNPb7yx50Zuml7+XJda7WbmiUFXnERGx6Ts39n5QBcCRlhODZokazYGUD90ALPOO9FJmy8BgRKCPpWlGo= X-Received: by 2002:a6b:bfc1:: with SMTP id p184-v6mr23860503iof.80.1528153374551; Mon, 04 Jun 2018 16:02:54 -0700 (PDT) Original-Received: by 2002:a02:a98e:0:0:0:0:0 with HTTP; Mon, 4 Jun 2018 16:02:33 -0700 (PDT) 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:146977 Archived-At: I noticed another weird behavior (but it's not emacs fault as explained below). Hack:size=11 looks very different of "Hack 11" or Hack-11. In fact "Hack 11" is more like Hack:size=15. The fontconfig documentation states that the size property is a double which specifies the size in points, but then it's ambiguous when stating how the size is encoded in a descriptor. The general descriptor format is: -:=:=... where can be "size". So there seems to be two equivalent ways of specifying a size in points: Hack-11 and Hack:size=11. But by trial and error I found out that when part of the name-value list, the size property is synonymous with the pixelsize property. So the right way to specify a point size is, in my example, Hack-11. Now, I was concerned about missing some font sizes, since emacs is rounding sizes in a different way than gtk or whatever is the desktop using. But my concern was unfounded. To be sure, emacs' Hack-10 is desktop's Hack-10 and emacs' Hack-11 is desktop's Hack-12, so there is a gap there. Of course, this is no big deal when setting the font from inside emacs, since I'm able to set the size with tenth-of-point precision: instead of 110 I just set 109 to get desktop's Hack-11. But TIL that from resources file I'm able to set double valued sizes, so Hack-10.9 also does the trick. :) >From my very limited experiments, it seems to be that emacs is rounding sizes to the nearest available one while the desktop is always rounding them down. Perhaps is a bit impolite from the part of emacs to behave like that in a desktop environment but its behavior is both internally consistent and more accurate. I feel inclined to close this issue (and maybe to add an entry to the wiki explaining this font sizing border case).