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 18:03:54 +0300 Message-ID: <87imj8thyd.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> <8736ac4gc3.fsf@osv.gnss.ru> <83d09g8hec.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="7842"; 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 16:05:05 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 1jCls0-0001tK-TT for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 13 Mar 2020 16:05:04 +0100 Original-Received: from localhost ([::1]:60660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jClrz-0002vB-SI for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 13 Mar 2020 11:05:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55490) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jClrM-0002r7-UH for help-gnu-emacs@gnu.org; Fri, 13 Mar 2020 11:04:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jClrL-0001vd-Mz for help-gnu-emacs@gnu.org; Fri, 13 Mar 2020 11:04:24 -0400 Original-Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:37828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jClrL-0001uR-Eo; Fri, 13 Mar 2020 11:04:23 -0400 Original-Received: by mail-lf1-x132.google.com with SMTP id j11so8165066lfg.4; Fri, 13 Mar 2020 08:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-transfer-encoding; bh=cXTf8dYE0pQXw3TKejpR/Gy9CtCKx0MNTEiODgPp7Rg=; b=IwD7M6wyWgmY6Vf6Qogf928VncIGkjFMuD2WGxFtbdpICF3tpXufvISznl4pWxmn78 chbJOI2ikvmRCgWAUG2elxYQ1BarIPqqTwkDC1zBfV5vqmlZ/MGqkq4vKrBTnjaC0hPj 94n49DShnFQCVkWPqQ6tfj40an/qUAEnjJioUxwvY4Ku9UdEP6fPtQqPCxeitw+S1wtI zOa/3tN3w9XVh1xdaVX5ldOfpd7LRTRGx/JUijsa1sBcI6svv/wh2t7RAxiux9PjJKlP g+RJIbe/k99lrJrQlVxV2NsQDCQZBJQ/etYywjTAXhoi8q0PIH1+zUFxN7flSqfD32Iq H4Dw== 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:in-reply-to:references :user-agent:date:message-id:mime-version:content-transfer-encoding; bh=cXTf8dYE0pQXw3TKejpR/Gy9CtCKx0MNTEiODgPp7Rg=; b=SyBlL2ma6lMiMaOV5dv0cNpABNTWXcffSqaWX5fZKwZxtBQFLgA6PSw3Nfj/SUJtdM odLMoh6kky1/OV8Dbv6XkJjru1G/YFzWWlO9KKf1LIJ212rS32rG8koe8wp8BgWNta96 6FRLNSoSth36rsAzglVP2yKhuRSMRCf1IolUg9PBGK8x5NvQuxM4/7pwldxW5wZBpWby SRMsktwnwPB4ZSO0k8RcJ1sdysCMieXq0Wz7730DdnRdjjIF9RMmYn2X7nfx58LP21x7 Hw8IouqgzBTXE/wq/yYgyRCsQ6XD9jp1U/1hfw4tpke5qkaQwhh9CuI7YKKSw2Z/5Yno DH+w== X-Gm-Message-State: ANhLgQ1KOzmIxSRGoeLpTm3Wdn/PBWvAnI6rUzkfNulVW5BAsDtRCOzK iWKiVdL96Ir8cdDU+81o4C9lO30h X-Google-Smtp-Source: ADFU+vvB7pbXJaDdf4Ztfzj6PGYJQMZTNHO/dHBGgDTRj2KI4o3LAk6G+UogmVlibIGfs4OtPwlRDA== X-Received: by 2002:ac2:4c85:: with SMTP id d5mr8712311lfl.94.1584111861652; Fri, 13 Mar 2020 08:04:21 -0700 (PDT) Original-Received: from osv.localdomain ([89.175.180.246]) by smtp.gmail.com with ESMTPSA id c22sm9838759lfm.25.2020.03.13.08.04.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 08:04:12 -0700 (PDT) In-Reply-To: <83d09g8hec.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Mar 2020 16:21:31 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::132 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:122580 Archived-At: Eli Zaretskii writes: >> From: Sergey Organov >> Cc: help-gnu-emacs@gnu.org >> Date: Fri, 13 Mar 2020 14:58:04 +0300 >> >> > 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) > > So the windows-1251 charset is displayed by (a non-TrueType) font > "Terminus", for some reason. It's a bitmap font, so maybe just > uninstalling it will fix your problem. Or did it come with your > system's installation OOTB? I've installed terminus fonts and I do use them outside of Emacs, so uninstalling would be a pain, especially as I already have a satisfying work-around with tweaked fontset. What I actually want to understand is why this font has been even considered for use in the first place. Was it some library external to Emacs that choose particular font? Doesn't seem to be the case, as fontset tweaking "fixes" it, and it's entirely Emacs internal entity? Thanks, -- Sergey