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 16:55:47 +0200 Message-ID: <83tufxy7f0.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28997"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 27 15:56:23 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 1mqz7m-0007IW-B8 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 15:56:22 +0100 Original-Received: from localhost ([::1]:53292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mqz7k-0005oO-Gf for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Nov 2021 09:56:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mqz75-00054h-Ul for emacs-devel@gnu.org; Sat, 27 Nov 2021 09:55:39 -0500 Original-Received: from [2001:470:142:3::e] (port=33820 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 1mqz75-000251-M1; Sat, 27 Nov 2021 09:55:39 -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=CrDRfxKuDl7c+D+eNb9RydB1vuTu2MW4z9izC48pxJg=; b=sXql8p/aPMuP eLeZF8OeD+AwSkbRuA3SdOR1nfD/fkj0awBYJG5Ea3r9RcCdQ8SIwGjlhn9D2UJmxDPfOjX1RsqeR XuHpNdgTX4BXMsnQ8CDk174FLL7l5JUZ/NAx4feXU7RPcz37YxGf4PqLRHQvrFDh/YZ9YClgObF9R poiXj2G0aj106BGw4zyLqBxcYDfYgEaxRa1geErWeoltca5koEPju9Xh5gQ6JgZGBHGyuSxWS6M+0 dEbw2uUE46YDt+aXt/wk/cyd1i+DbgVob3CygYxZfcgl+y/gED7SpUuykPP8W8IjtzO1koMura417 3yAEVVCSHLMOimKQ6EB7jg==; Original-Received: from [87.69.77.57] (port=4502 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 1mqz75-0007a8-CQ; Sat, 27 Nov 2021 09:55:39 -0500 In-Reply-To: <87lf19r7uv.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 27 Nov 2021 15:28:08 +0100) 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:280344 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sat, 27 Nov 2021 15:28:08 +0100 > > Eli Zaretskii writes: > > > It is trivial to add some pixels to the width of a glyph we produce > > for a character: it just involves enlarging the it->pixel_width and/or > > the glyph->pixel_width when we produce the glyph for that character. > > Right. This reminds me -- perhaps we'd want to distribute the extra > space both before and after the glyph, to centre it within its allotted > width? I don't think so, because that would move the leftmost character away from the window-edge. > > 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?