From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Pixel padding with variable pitch font Date: Tue, 08 Jun 2021 10:59:31 +0800 Message-ID: <87sg1tm57w.fsf@localhost> References: <831r9dhk6s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38052"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Anand Tamariya To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 08 04:54:30 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 1lqRss-0009kO-GT for ged-emacs-devel@m.gmane-mx.org; Tue, 08 Jun 2021 04:54:30 +0200 Original-Received: from localhost ([::1]:57600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqRsr-0003xx-IB for ged-emacs-devel@m.gmane-mx.org; Mon, 07 Jun 2021 22:54:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqRs7-0003HC-EV for emacs-devel@gnu.org; Mon, 07 Jun 2021 22:53:43 -0400 Original-Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]:34503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqRs5-0001Fz-8p; Mon, 07 Jun 2021 22:53:43 -0400 Original-Received: by mail-pl1-x631.google.com with SMTP id h1so2176180plt.1; Mon, 07 Jun 2021 19:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:cc:date:message-id :mime-version; bh=z/uilyVXt6VGWrzOEg4muv4C51SXH2YBAahoASeUUWc=; b=Iv+dcRkKHG6WOPQDqFpWpI8XbW9/R8mVvHEPCUc1GpDY9jrBMses2nH6nRgO1BQZLV ByvhtbXBoZOPbcrL8A8S4806yhyo8WPLV5Mz171aQDKkaydITioVXRQnMWUSi8uzsx3i /7DOll61fbxlnHMtYJQFH6oFCL/wQfRFi7CJURl6SQ0z4NBkxppBC9bhN3vVl2YJ4F2m pvtcWvEgMmbyHk8mvbIzlRJfRUXPf7wXNfG1OeAon4yoJaxGF1+0wD5raClpp84CFl65 D9mvFQsgLMcGn975SK8LkpuYcUE+H/vEd9FeBJrabfSVS+G0OgsDU2lzwsfwktbWQ+vL V6OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:cc:date :message-id:mime-version; bh=z/uilyVXt6VGWrzOEg4muv4C51SXH2YBAahoASeUUWc=; b=R59g78Io1zGgkZC5QcYX7UgrUOafpiiIJDPU8fmAH7JucT1sPtgr8O2VK1uKuxNqa2 sAAiCRaVlG3zOpGpeyTNHUfKJaBNNKkQH4kKRKZFoV2m3mSFxtJKVy5gYfRPBtQuoDkn FzF5rFL1ZlZJ4D6Rtd6yZgOAWJFEpnEGdDoQJHJZo0i3QCTKDJDOuiq7v/fbAN6ee3RI Pv+3iFlB+jwqIfSpu1uTK/tH1DUBi0NhDeQsNRGFPwHksWGIal0gnc6xmYjXJjoYUodT DVw2d4IVeJeaD7jZDTF6uSh2VhDhu3ONRvgvTr7HyFWHWJ2/rk+wLKwq6s8+h93QV8D/ rVbg== X-Gm-Message-State: AOAM533F3/7MPRokYbZ9I5orghVfUz9QcasvoB8vGW++I2ixE0VMPud4 51W+ay06v8ednBN7hQ4TiMZcib3x1wxypg== X-Google-Smtp-Source: ABdhPJx3h45JQez5zgOn1L8aJR5z6ivq2lu9B+8W1rNGG1oNxzkO/YA9YLAXz4qJSCBujRvmbuS+PA== X-Received: by 2002:a17:902:f283:b029:10d:e7f3:725 with SMTP id k3-20020a170902f283b029010de7f30725mr20858277plc.45.1623120818130; Mon, 07 Jun 2021 19:53:38 -0700 (PDT) Original-Received: from localhost ([210.3.160.230]) by smtp.gmail.com with ESMTPSA id r135sm9264274pfc.184.2021.06.07.19.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 19:53:37 -0700 (PDT) In-Reply-To: <831r9dhk6s.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::631; envelope-from=yantar92@gmail.com; helo=mail-pl1-x631.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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:270552 Archived-At: Eli Zaretskii writes: > This assumes that, e.g., #x2001 takes the same horizontal space as the > SPC character (or the same as a column)? That's only so in > fixed-pitch fonts; in variable-pitch fonts the SPC could be much more > narrow, and columns are all but meaningless. Caveat emptor! One can still measure the actual character width using window-text-pixel-size and take it into account.