From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: [External] : Re: Text scale mode and additional fonts Date: Sat, 30 Dec 2023 20:54:20 +0200 Message-ID: <83zfxr34ir.fsf@gnu.org> References: <871qb4dj8v.fsf@zohomail.eu> <837ckv4m7f.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35536"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 30 19:55:03 2023 Return-path: Envelope-to: geh-help-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 1rJeUB-000902-7f for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 30 Dec 2023 19:55:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJeTj-0002zI-8j; Sat, 30 Dec 2023 13:54:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJeTg-0002z8-31 for help-gnu-emacs@gnu.org; Sat, 30 Dec 2023 13:54:32 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rJeTf-0003Zq-RG for help-gnu-emacs@gnu.org; Sat, 30 Dec 2023 13:54:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=EUPjIstAjfuY/Q7FXZl40b42NQtv/pbx9YQRpHdV0vY=; b=bJCCB1GQHU8Z LQ3V2I/2cOrj+KB5LJRKHs33iiMASJWoV/8MLV1vo9l+yYde6S60z46f+zveCcefOWnTeh0EDug0d poQf+wfbatHMfDt8ti+xsvKUxEkxOXrAefvEvR//m99sQf6qdu6bgeCDLF86pMmlX0ye8NaVo32+t IQjwDXsxsTBlvTQGYv+P5YFPN45zUHvviEkVsgxRayXYe9FN3xSyfV9oPPuq8a3ZJIsXigyJMMky3 unloXSkJC0ZWpSDgZzeLQNTUGVbAiLfvtAic98TsOKK4HwJWC9eP+BXXBuPTDZlC/wq5gSb57Mr4H LlUfFj5ypPOldVkgvsoKOw==; In-Reply-To: (message from Drew Adams on Sat, 30 Dec 2023 18:12:08 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145689 Archived-At: > From: Drew Adams > Date: Sat, 30 Dec 2023 18:12:08 +0000 > > > > (set-fontset-font t 'arabic +bidi-arabic-font) > > > > > > this makes the initial situation better but now the Urdu text is not > > > affected by the `text-scale-mode` commands. > > > > That's because the :size attribute is absolute: 28. Instead, use a > > relative value, a float such as 1.5, then it should scale with the > > rest of the text. > > Very useful info. But I don't see that spelled > out clearly in the doc. There I find only > statements such as these. Do they perhaps imply > what you stated? > > `:size' > > VALUE must be a non-negative integer or a floating point number > specifying the font size. It specifies the font size in pixels (if > VALUE is an integer), or in points (if VALUE is a float). Sorry, I was confused. What I wrote is true for the :height attribute of a face, not about :size in a font-spec. IOW, to get what he wants, the OP should define a face with :height attribute a float.