From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= Newsgroups: gmane.emacs.devel Subject: Font size (was: Merging the pgtk branch) Date: Wed, 04 Aug 2021 14:53:04 +0200 Message-ID: <87pmut1idr.fsf@gmail.com> References: <835ywpo8ar.fsf@gnu.org> 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="32761"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Yuuki Harano , Eli Zaretskii To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 04 14:54:27 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mBGPi-0008K0-Ng for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 14:54:26 +0200 Original-Received: from localhost ([::1]:38054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBGPg-0004Kp-SK for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 08:54:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBGOV-0003Yi-Q4 for emacs-devel@gnu.org; Wed, 04 Aug 2021 08:53:11 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:43974) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBGOU-0000dc-5u; Wed, 04 Aug 2021 08:53:11 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id l8-20020a05600c1d08b02902b5acf7d8b5so682300wms.2; Wed, 04 Aug 2021 05:53:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=5XlwuVVmgp9DUDF20hnKqY/X6LT9J59vCVJrXsc7QGI=; b=SBFVAC/QeGSLmSSkxFxfG9C+giPPPq4HD6tFvfXiNRw85t7fD049kAHF3zYOQPUiHS Tu0lWvBuRo3S9H8AS7K48oqefSW2sZF+7itQOsJK6YVqQlT0BmRPsea5ozrXsj1mRPjH b/0B6WzQws4KS4jG5QQOsvLxLCa7jlsAgSSxgkjE0NYnXY24ThKehUzIxR6WWzOp9S6r bkMuBExZ24etxi5zncaZ+KlNkBocsmfnNyUtJQmh56YfW8ip+5w+czlonMaZemZHxULo CWlrlV8ekryhDJvkc0kPmrBLN6dLXw1W7UPjyKp5uq/PtywFpqfMb5Jf4uR0UYuygmov S5sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=5XlwuVVmgp9DUDF20hnKqY/X6LT9J59vCVJrXsc7QGI=; b=Gir3wphDmuPsX8xBrZ0Yjwm+oRmMpeB5/DFnKfYGVn/we4V9lQb3lfxtfK/KFVMBZq +ZshfHE4erL0e7nhUo0OHm9VpZRcmguIvCWxvwGpvPDE+hdHzp8w2kXRw26UVLC75528 bZe5gqvjgg+F+xSaXlp/ybQZ+hq9HiY313ZCnRZHkenDklrI8zzFdF+cC+0QNLy+r0W1 xH0/u02+I+dgQrGsW0/MvRONrxF0sv9k5Xgls0ciM/cdD7Bjmia/VCqlX7U0ieOwF5Hr 1daDtpgfqUPaJWHf8o29/OV/eP5dtC+rrXIWTGVsLL5OZbQt7e8C9g1bON28z9pI2tV3 xX/Q== X-Gm-Message-State: AOAM533QA7TmTMrWLIDpxIFQdmBtLiJ4Haqr9Fx8pYOnDYVMp9o1zFMJ eFLXIqFkAGF4HhYwoMzr2gRJALpJ6iI= X-Google-Smtp-Source: ABdhPJye2Qz3UU/eFOx2gh1k5HBeLLyJdaqpLgzpHq7t8uxiPK9vohmNu16/BEdTH0z/6mYlHhL0Jg== X-Received: by 2002:a05:600c:2909:: with SMTP id i9mr9741756wmd.74.1628081587444; Wed, 04 Aug 2021 05:53:07 -0700 (PDT) Original-Received: from hirondell (pop.92-184-112-42.mobile.abo.orange.fr. [92.184.112.42]) by smtp.gmail.com with ESMTPSA id s9sm2497069wra.80.2021.08.04.05.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 05:53:06 -0700 (PDT) In-Reply-To: <835ywpo8ar.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 01 Aug 2021 11:53:16 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:272038 Archived-At: Hello, AFAICT the branch builds and runs fine --with-pgtk --with-xwidgets --with-cairo on Debian 10 (XFCE). One hiccup: unless I'm mistaken, this build does not consult ~/.Xresources anymore. That led me to discover --with-gconf and font-use-system-font (I did not use these options previously); I am now a bit confused about how font sizes work. On master, with font-use-system-font set to nil, here is what C-u C-x =3D says for various values of emacs.font in ~/.Xresources: .Xresources=C2=B9 C-u C-x =3D=C2=B2 9 12 10 13 10.5 14 11 15 =C2=B9 "XX" in "emacs.font: DejaVu=C2=A0Sans=C2=A0Mono-XX" =C2=B2 "XX" in "ftcrhb:-PfEd-DejaVu=C2=A0Sans=C2=A0Mono-normal-normal-norma= l-*-XX-*-*-*-m-0-iso10646-1" On master --with-gconf and feature/pgtk, with font-use-system-font set to t, here is what C-u C-x =3D says for various GSettings: GSettings=C2=B3 C-u C-x =3D 9 12 10 13 10.5 ERROR (see below) 11 15 =C2=B3 "XX" in "gsettings org.gnome.desktop.interface monospace-font-name '= DejaVu Sans Mono XX'" As it happens, "10.5" (reported as "14" inside Emacs) is the size I find the most comfortable on my screen; unfortunately if I run: $ gsettings set org.gnome.desktop.interface monospace-font-name 'DejaVu San= s Mono 10.5' Emacs emits a warning: > set-face-attribute: Font not available: # Sans\ Mono\ 10\.5 nil nil nil nil nil nil nil nil nil ((:name > . "DejaVu Sans Mono 10.5") (:user-spec . "DejaVu Sans Mono 10.5"))> Is this expected? Otherwise, should I report an issue? (AFAICT it is not specific to the pgtk branch)