From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Miele Newsgroups: gmane.emacs.bugs Subject: bug#42240: Interpretation of 'size' Property in Fontconfig Pattern Strings Date: Thu, 16 Jul 2020 20:10:30 +0200 Message-ID: <87r1tbib55.fsf@gmail.com> References: <87pn97r2hw.fsf@gmail.com> <871rlbo3lw.fsf@gmail.com> <87y2njmoix.fsf@gmail.com> Reply-To: sebastian.miele@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37353"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.10; emacs 27.0.91 Cc: 42240@debbugs.gnu.org To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 16 20:11:12 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jw8Lf-0009ZA-Ni for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jul 2020 20:11:11 +0200 Original-Received: from localhost ([::1]:40250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jw8Ld-0006VV-Tp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Jul 2020 14:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jw8LW-0006V9-Sr for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2020 14:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44399) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jw8LW-0003Jw-IE for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2020 14:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jw8LW-0003zh-BV for bug-gnu-emacs@gnu.org; Thu, 16 Jul 2020 14:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Miele Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jul 2020 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42240 X-GNU-PR-Package: emacs Original-Received: via spool by 42240-submit@debbugs.gnu.org id=B42240.159492304315326 (code B ref 42240); Thu, 16 Jul 2020 18:11:02 +0000 Original-Received: (at 42240) by debbugs.gnu.org; 16 Jul 2020 18:10:43 +0000 Original-Received: from localhost ([127.0.0.1]:55945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jw8LD-0003z7-C9 for submit@debbugs.gnu.org; Thu, 16 Jul 2020 14:10:43 -0400 Original-Received: from mail-wr1-f51.google.com ([209.85.221.51]:37853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jw8L9-0003ys-9T for 42240@debbugs.gnu.org; Thu, 16 Jul 2020 14:10:42 -0400 Original-Received: by mail-wr1-f51.google.com with SMTP id a6so8052919wrm.4 for <42240@debbugs.gnu.org>; Thu, 16 Jul 2020 11:10:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:reply-to:in-reply-to :message-id:date:mime-version:content-transfer-encoding; bh=d3KBwQA8MM9u3buNjwSTrfkQU3AJDttrGhXRouAsg30=; b=kOtz/w7Q2OWJP76/qnddVrLhBUND+5mfsfoAYneC0Dl0zs9suo1b+2fwNtrSymTEVO rmJlOnuDBF9cVXNwkYznGPwrhVBhm1zCBkzDhE1vAt1iWJAB4hcBi8YGRQTPwV6Qvhpw TRnBGYbhKdOtILjbuNEQsXb0Uha9rdRloDN4Du4oLWv2qZDuhJwtCrgUdS6bTKz5IlKI O7dSq0o+vBIVK0VemCyTfZEHSurWy4/2E4ozSunqy/6MBN5J6zrB8IhtoGNGpmuIWnVI hG+bnbrRAThbY0H++ATnvif0qJbyMaH8ZMJlw0AylDfrGbCcEubW4uFjbcKAPouyaHkN 68nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :reply-to:in-reply-to:message-id:date:mime-version :content-transfer-encoding; bh=d3KBwQA8MM9u3buNjwSTrfkQU3AJDttrGhXRouAsg30=; b=LiBgUOnoJW/d27xb8OdfhtVU8Ur6lorKR/2+Vj9AfCOpP4y1Rn2CVToR61aq1RhY18 RHt7ipfHAtWLNXUxs6F0yhKJpR2Kho3SXt7YLwkYcwSlSVS3GZU0G5Uf4sK1BLXDhqRA 3D4GTGRm1y67EvfVqnQVNkKC7xd0F/ucFFGQLXFJTgP3zo6wjbmB0/0gM/ItTh7Glh7s yqYqMqn+pPbK1gWxEvpNjPo1u/1BPgokhdurl2/NUPrKydGGGX7iD8M/zx/ReQJ/s7A2 FZI1GEwBevwtx5ckelV5pcFyIaFVx1ZiWlzn2YgcwillnEjc0TSAYfueWaHjBwjYBkeQ XvKQ== X-Gm-Message-State: AOAM533vBwTcjPeOxTVo9JOSbc1zL0ry5JPClK42OcWsrBd/MIqD5E80 tyUU+R3XryPtZpnRocTdekyGtplA X-Google-Smtp-Source: ABdhPJxFa1OKv3g1HI25pnAwCeAh0KSTSZNFbDs2DBW/D5sesvgr4Wk9HsVMHFiaA17qSZ6pNOPRpg== X-Received: by 2002:adf:8524:: with SMTP id 33mr6111937wrh.366.1594923032809; Thu, 16 Jul 2020 11:10:32 -0700 (PDT) Original-Received: from huette ([5.146.118.181]) by smtp.gmail.com with ESMTPSA id a12sm10427443wrv.41.2020.07.16.11.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 11:10:32 -0700 (PDT) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183102 Archived-At: Robert Pluim : > Cairo implies --without-xft in any case, so no harm done. Good to know. Thank you. > Looks like I=CA=BCll have to boot up my GNU/Linux box (although I=CA=BCm = hazy on > the difference between 'size' and 'pixelsize') The main Fontconfig manual page describing all properties is called 'man 5 fonts-conf' (which can be hard to find, because neither 'fc' nor 'fontconfig' are substrings of 'fonts-conf'). The 'size' is the point size. In general, there are many different definitions of point size. But in practice only one is used nowadays (except by TeX which uses a slightly different but very close definition that works better with its fixed point arithmetics). Usually a point is 1/72 inch (https://en.wikipedia.org/wiki/Point_(typography)). Together with 'dpi' (dots/pixels per inch) that defines the relation between point size and pixel size. X has at least two different places where a dpi may be defined. One for the entire X display, although that does not really make sense with an X display having monitors of different pixel densities. Apart from that at least the Xrandr extension has a notion of distinct dpis per monitor. In general, Fontconfig has an even separate dpi. I do not really know what dpi Fontconfig uses, if it is not explicitly set in the Fontconfig configuration, but, e.g., fc-match :family=3DHack:size=3D11.1 size pixelsize dpi or fc-match -v :family=3DHack:size=3D11. display the dpi used.