From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.help Subject: Re: How to enforce unicode font for all charsets? Date: Fri, 13 Mar 2020 14:58:04 +0300 Message-ID: <8736ac4gc3.fsf@osv.gnss.ru> References: <874kuwphsz.fsf@osv.gnss.ru> <83wo7s9sgt.fsf@gnu.org> <87a74niii8.fsf@osv.gnss.ru> <83blp2aldx.fsf@gnu.org> <87wo7qqd2m.fsf@osv.gnss.ru> <83eetxsj6k.fsf@gnu.org> <87sgicbvis.fsf@osv.gnss.ru> <83r1xw8vyu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="69489"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 13 12:58:40 2020 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 1jCixc-000HyR-Kl for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 13 Mar 2020 12:58:40 +0100 Original-Received: from localhost ([::1]:57510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCixb-0003yR-JL for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 13 Mar 2020 07:58:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52419) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCix7-0003qm-Oa for help-gnu-emacs@gnu.org; Fri, 13 Mar 2020 07:58:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCix6-000770-FX for help-gnu-emacs@gnu.org; Fri, 13 Mar 2020 07:58:09 -0400 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:38852) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCix6-0006wW-4f; Fri, 13 Mar 2020 07:58:08 -0400 Original-Received: by mail-lj1-x234.google.com with SMTP id w1so10215306ljh.5; Fri, 13 Mar 2020 04:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=MmLH9TQRBnImEl38cReVW5v/EXFg5OOjqFKUQ6YUnPE=; b=ON/9BvOU3dOaI3NZ1iTKFYBHFv67VhoS7t8H0LVrEPSKq7UIy/x+2k0ISZlRUqS5ci AEYE1KVvLm96H7i4oewrsjoLxay5eMIl/pNgiIb0dQf7HuaA7LrFm4vhwE6Hcy5YXjxS oVBU8vSroaruscfcjMLb3w/0d11ivj7n9nRI+iAUTp7EbnFlJUAbtTCm+sADX6sSe4m5 p6Hd2014karZCf02CDGr8panJAGwsyKxR0TvgnrkMUWlzeBKzVmqfGJJ8Xt6l6Tz8Ukk merCDokiYXyuwX5INuoyDX1W8mF/VQulaCpEOmCUZS1wogS2GxsSn0kuvMJBMHUyUyz7 Njpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=MmLH9TQRBnImEl38cReVW5v/EXFg5OOjqFKUQ6YUnPE=; b=rg4k/TKDJlwW3Ug8sBvI/8j8tR9Ci3CzFw835jhA2h4fEQVLLwqcF0036EwxE9f5x1 7E2ZcK5jBBFcU3myMWNpuYrdEljDzlmuogY1pMsL3BhFsKtnkxLcWgBgHJ40Lp8ru9dS yRi2jFMli+vuzbEwEaL0awhpd0BcbaYkKfLav9NiIMVMEqZCjhY5y3NXwAYZN7BsdTQn vw9w/JVXutNvWEYrZlt39Yl1t4rp1ctF8XLVqSDsO+2Gtkz8MnDRbgUuq93YDKjo9ril Vu39S5xWiA3ijBX1xvddkQlvl8LyReuAeiLcj/e5uVBMnCSbPJgAxg8UXWsEX0XgIthP HEVw== X-Gm-Message-State: ANhLgQ1nlFk7rvY2NF1gddZIfkc718nKQUMYE2/+A0xtpekklE2pAF+x FYo9uJoJ1DyylgSuJCeGEcwvsVOs X-Google-Smtp-Source: ADFU+vs+YhvcL9DgCjPLQhzrrAIgEV4eA5DOWwe6FoU4w5j0W5I2mr++AeosntvfBm73V0Ys/RT1sw== X-Received: by 2002:a2e:b8c3:: with SMTP id s3mr8271098ljp.84.1584100685974; Fri, 13 Mar 2020 04:58:05 -0700 (PDT) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id v10sm29997376lfb.61.2020.03.13.04.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 04:58:05 -0700 (PDT) In-Reply-To: <83r1xw8vyu.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Mar 2020 11:06:49 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:122575 Archived-At: Eli Zaretskii writes: >> From: Sergey Organov >> Cc: help-gnu-emacs@gnu.org >> Date: Fri, 13 Mar 2020 09:48:11 +0300 >> >> (let ((buf (get-buffer-create "test encodings"))) >> (with-current-buffer buf >> (erase-buffer) >> (insert "Encoding windows-1251: " >> (propertize "привет\n" 'charset 'windows-1251)) >> (insert "Encoding unicode: " >> (propertize "привет\n" 'charset 'unicode))) >> (switch-to-buffer-other-window buf)) >> >> What I see in "emacs -Q" is attached as Emacs window snapshot. Please >> notice how two strings look very different where encodings differ. What >> I see in my "regular" Emacs is almost the same, just in larger font >> size. >> >> The question is why Emacs doesn't use the default font for windows-1251 >> encoding when the font definitely has all the needed glyphs? > > Thanks for the recipe. Please go to each "привет" in the test buffer > and type "C-u C-x =", then show what the *Help* buffer displays for > each of the two. Here are the results: --- >8 --- position: 24 of 60 (38%), column: 23 character: п (displayed as п) (codepoint 1087, #o2077, #x43f) preferred charset: windows-1251 (WINDOWS-1251 (Cyrillic)) code point in charset: 0xEF script: cyrillic syntax: w which means: word category: .:Base, L:Left-to-right (strong), Y:2-byte Cyrillic, c:Chinese, h:Korean, j:Japanese, y:Cyrillic to input: type "C-x 8 RET 43f" or "C-x 8 RET CYRILLIC SMALL LETTER PE" buffer code: #xD0 #xBF file code: #xD0 #xBF (encoded by coding system utf-8-unix) display: by this font (glyph code) x:-xos4-terminus-medium-r-normal--16-160-72-72-c-80-microsoft-cp1251 (#xEF) Character code properties: customize what to show name: CYRILLIC SMALL LETTER PE general-category: Ll (Letter, Lowercase) decomposition: (1087) ('п') There are text properties here: charset windows-1251 --- >8 --- position: 54 of 60 (88%), column: 23 character: п (displayed as п) (codepoint 1087, #o2077, #x43f) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0x043F script: cyrillic syntax: w which means: word category: .:Base, L:Left-to-right (strong), Y:2-byte Cyrillic, c:Chinese, h:Korean, j:Japanese, y:Cyrillic to input: type "C-x 8 RET 43f" or "C-x 8 RET CYRILLIC SMALL LETTER PE" buffer code: #xD0 #xBF file code: #xD0 #xBF (encoded by coding system utf-8-unix) display: by this font (glyph code) xft:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1 (#x37E) Character code properties: customize what to show name: CYRILLIC SMALL LETTER PE general-category: Ll (Letter, Lowercase) decomposition: (1087) ('п') There are text properties here: charset unicode --- >8 --- > FWIW, I cannot reproduce this on my system: I see the same font being > used in both cases. But maybe this is system-dependent in some ways, > or maybe the fonts you have installed affect this. So I think you > should report all this (including the information I requested above) > as part of a bug report, using "M-x report-emacs-bug", and let's take > it from there. Please confirm I need to report a bug based on the above information. -- Sergey