From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa-Ripoll?= Newsgroups: gmane.emacs.help Subject: Re: Font size innacuracies (Windows) Date: Tue, 01 Mar 2022 16:16:12 +0100 Message-ID: <86fso19003.fsf@csic.es> References: <865yoy9dii.fsf@csic.es> <87h78hhhu3.fsf@vps.thesusis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25247"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (windows-nt) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:AYQgmS+lnfsXNRb7fKi5OgxppHs= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 01 16:17:20 2022 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 1nP4Fc-0006NC-IH for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Mar 2022 16:17:20 +0100 Original-Received: from localhost ([::1]:49790 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nP4Fb-0007IR-LD for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Mar 2022 10:17:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nP4Ek-0006Jg-6U for help-gnu-emacs@gnu.org; Tue, 01 Mar 2022 10:16:27 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:58522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nP4Ei-0004vN-IF for help-gnu-emacs@gnu.org; Tue, 01 Mar 2022 10:16:25 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nP4Eg-0004qE-IU for help-gnu-emacs@gnu.org; Tue, 01 Mar 2022 16:16:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.help:136314 Archived-At: I don't know. In principle the manual states that one can select pixels in the name of the font, e.g. in set-frame-font. I tried it and changing "Consolas:pixelsize=14" to "Consolas:pixelsize=12" does indeed change the size. In any case, what bothers me is that (i) even if Windows screws the conversion, I do not find a suitable point or pixel size that matches other applications (ii) the density of characters is different, both vertically and horizontally, despite being monospaced fonts, (iii) the difference in kerning and spacing is more remarked for variable-pitch fonts. Juanjo Phillip Susi writes: > Juan José García-Ripoll writes: > >> Hi, >> >> I am trying to reproduce a setup I am happy with in Visual Code to >> Emacs. In particular, on VSCode I use Consolas at 14px, which is the >> default setting and has the right density on my monitor. However, when I >> try similar specifications on Emacs, it produces different results. > > Eh? This appears to be a true type font, and those you spepcify the > desired size in points, not pixels, don't you? And windows has always > screwed up the conversion from points because they assume that all > monitors are 96 DPI. > > > -- Juan José García Ripoll http://juanjose.garciaripoll.com http://quinfog.hbar.es