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.devel Subject: Re: Variable pitch text filling Date: Sat, 27 Nov 2021 21:36:32 +0200 Message-ID: <83o865xuf3.fsf@gnu.org> References: <87ilwft1ph.fsf@gnus.org> <837dcv2c2c.fsf@gnu.org> <875ysft0l3.fsf@gnus.org> <835yse3n01.fsf@gnu.org> <87lf1ars0f.fsf@gnus.org> <83czmm11t0.fsf@gnu.org> <87h7byrplm.fsf@gnus.org> <83a6hq0zey.fsf@gnu.org> <87lf19r7uv.fsf@gnus.org> <83tufxy7f0.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8587"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: larsi@gnus.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 20:37:39 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 1mr3Vy-0001xS-LG for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 20:37:38 +0100 Original-Received: from localhost ([::1]:58756 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mr3Vx-0007Lj-Ci for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 14:37:37 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr3Un-0006f7-VZ for emacs-devel@gnu.org; Sat, 27 Nov 2021 14:36:25 -0500 Original-Received: from [2001:470:142:3::e] (port=39076 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr3Un-0008Uz-KQ; Sat, 27 Nov 2021 14:36:25 -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=tT3g1RU6PcKg/8aUNLRDiG1TrRZd5VHD9VS8ii9vww4=; b=VcEobnjhJZ9P twADA0wzt0SuUKJMllPYP/9wqTN1oM2x9c5t64WytqnL+NN9qhvnv1bAnWDP1nNHMYWmcXUr6d9p8 ySNX53mZn+1t/GCi1JtYRQ4sfskKJArLV96MGZC/BaaefgmryHON+XGrep3Z344ywwIBTeEJjBjO2 1FejS+OTZsUVhRVNlRxuU9ZhDe5aW0BxsO1fxb3dRxXb2Um+PaFnWehS3BxZ59LTBh07qIw+jWlBy TyRxA7W3SLZflkUmDBgHJ+bPr1AzRkrnwf3ystWDsgwfglmeMdSPortB4l+L6UHdWHOftP5mfHasI PQvKodeZKAyXNuoYqgYmGg==; Original-Received: from [87.69.77.57] (port=1979 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mr3Um-000670-71; Sat, 27 Nov 2021 14:36:25 -0500 In-Reply-To: <83tufxy7f0.fsf@gnu.org> (message from Eli Zaretskii on Sat, 27 Nov 2021 16:55:47 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:280351 Archived-At: > Date: Sat, 27 Nov 2021 16:55:47 +0200 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > > What would be the exact meaning of "char-spacing 1.0" here? IOW, how > > > would we compute the number of pixels to add to each glyph's width in > > > this case? what is a "normal character" for this purpose? > > > > It's the same as for all these width specs -- it's FRAME_COLUMN_WIDTH. > > That's not the best possibility, because if some part of the affected > text uses a smaller font, you'd see glyphs that are too-widely spaced? I think a better idea is to use the width of the face's ASCII font (or its average width, if that's a variable-pitch face). Then everything will scale as expected with the face's height.