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: Re: Font size Date: Wed, 04 Aug 2021 16:15:46 +0200 Message-ID: <877dh1e1nx.fsf@gmail.com> References: <835ywpo8ar.fsf@gnu.org> <87pmut1idr.fsf@gmail.com> <83bl6dl3f6.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="3558"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: masm+emacs@masm11.me, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 04 16:16:52 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 1mBHhS-0000hz-OA for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 16:16:50 +0200 Original-Received: from localhost ([::1]:38926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mBHhR-0007N2-BI for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Aug 2021 10:16:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mBHgX-00061Q-Gf for emacs-devel@gnu.org; Wed, 04 Aug 2021 10:15:53 -0400 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:51048) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mBHgW-0003Q5-1c; Wed, 04 Aug 2021 10:15:53 -0400 Original-Received: by mail-wm1-x32e.google.com with SMTP id m19so1334073wms.0; Wed, 04 Aug 2021 07:15:51 -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=sXRM2FNR9iMQ0bxFr/johaXIG4I6q6i7nqxP7W+r5xk=; b=n5AO8ymCGl1ZcftDVL5WyDYaf6sNBn7B7PsQqDA+aNPuK0IfLJvw+sIoVH8VzqGj2Q zpa1uNF0HP1EQpTUOQQ+v2ZHpkXqM9FQYufvUqOU782ujIRHy/QQn73B2phua0xaBlUG gKj9A4HeVoMTcb+OD9vHE3NFEu99p3vn/Y3ppByPBOKJ5iPp+ux16NuiAf5Y2gYikuZl Z+H3qacNxfk5hekPGjbHNQVJfiQkZuR7KR/G2iJNYDN6CAsgVJ9AYZOmh7m5T2KsS8CB ixbnNO0hcbQ1+c8sJIMqCxmgoks/GSzGq4/XLi5SHWD1+kd67JdwXp29DjJIT7OGx4QV EGfg== 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=sXRM2FNR9iMQ0bxFr/johaXIG4I6q6i7nqxP7W+r5xk=; b=qqVJtrrdua40UYYXYinVv+OVOBzSkpfjFJ8NfXEjN0coN6tOcR+35WDxjIVSST4v7U Ukwe8m18CKDohtsP2lqq40i/+Lscks6NtzjU187dY3BKzXQ6qz8rbQGuG+xoF04GWUNT 220l0dS9W8Vx/BBkDMsggSKx6yjSZKUdn21DYUO8PzZk8Cd8m7VTEp1cYHG/5oGVYTeC iwDY7QuQcj+L+T8kVGcYGVdpV0aUF4y+X/QZ1rP9tfhiq4xApzHZhdEgxG68DgZ7Qm34 8HvkV6V9BQlSUETOUAAK/GEnlMCwe5RKOeDsA4fkCoHGajLiUcdgcYxAHaiZAhzR2MVz YR4Q== X-Gm-Message-State: AOAM533jWr1P/Gb9FITEFPdxjx3fnuMmYHnKQgPF6nRxUVUwC9mMpzd4 EKk3xJ5vJZheTdpqFQstMMvNT59S+rg= X-Google-Smtp-Source: ABdhPJyrqZK8ZcSx7zSjaFH93Z14wymyU3F5uQYKiVf5WGgHw4w4HhPwmyk0qCM5PS4RULmtpxdjOQ== X-Received: by 2002:a05:600c:4fd6:: with SMTP id o22mr23421729wmq.45.1628086549359; Wed, 04 Aug 2021 07:15:49 -0700 (PDT) Original-Received: from hirondell (pop.92-184-112-206.mobile.abo.orange.fr. [92.184.112.206]) by smtp.gmail.com with ESMTPSA id b14sm2951554wrm.43.2021.08.04.07.15.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Aug 2021 07:15:48 -0700 (PDT) In-Reply-To: <83bl6dl3f6.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 04 Aug 2021 16:55:57 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x32e.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:272043 Archived-At: Eli Zaretskii writes: >> From: K=C3=A9vin Le Gouguec >> Date: Wed, 04 Aug 2021 14:53:04 +0200 >> Cc: Yuuki Harano , Eli Zaretskii >>=20 >> $ gsettings set org.gnome.desktop.interface monospace-font-name 'DejaVu = Sans Mono 10.5' >>=20 >> Emacs emits a warning: >>=20 >> > 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"))> >>=20 >> Is this expected? > > I don't know if it's expected, but the error message says that the > "10.5" part is not expected there. What happens if you use "10" > instead of "10.5"? Cf. the paragraph just above: > 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: >=20 > GSettings=C2=B3 C-u C-x =3D > 9 12 > 10 13 > 10.5 ERROR (see below) > 11 15 >=20 > =C2=B3 "XX" in "gsettings org.gnome.desktop.interface monospace-font-name= 'DejaVu Sans Mono XX'" What I don't understand: 1. How come GSettings/Xresources and Emacs use different "units"? (Apologies if the answer lies somewhere in the manual, which it most certainly does) 2. Why does 10.5 work with Xresources and not GSettings?