From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Incorrect font weight selected Date: Sun, 19 Dec 2021 14:32:32 +0100 Message-ID: <87h7b4ra8f.fsf@gnus.org> References: <87pmpv708h.fsf@wavexx.thregr.org> <83r1abcb93.fsf@gnu.org> <87y24jqahr.fsf@wavexx.thregr.org> <83ilvnc6z4.fsf@gnu.org> <875yrmyk8q.fsf@wavexx.thregr.org> <83ee6actjj.fsf@gnu.org> <87o85ef8rg.fsf@wavexx.thregr.org> <83ilvmb0n3.fsf@gnu.org> <87k0g2f77n.fsf@wavexx.thregr.org> <83fsqqaxig.fsf@gnu.org> <87fsqog7ep.fsf@wavexx.thregr.org> <83lf0g92z0.fsf@gnu.org> <87v8zkk9nc.fsf@wavexx.thregr.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="18956"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Yuri D'Elia Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 19 14:34:45 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 1mywKr-0004jY-QO for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 14:34:45 +0100 Original-Received: from localhost ([::1]:42836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mywKq-0004Gc-Je for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Dec 2021 08:34:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mywIr-0002vf-AV for emacs-devel@gnu.org; Sun, 19 Dec 2021 08:32:41 -0500 Original-Received: from [2a01:4f9:2b:f0f::2] (port=59858 helo=quimby.gnus.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mywIp-0005S5-4K; Sun, 19 Dec 2021 08:32:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Adf7bgOLT6EA8jZUBEZEPTfOn2owhmgtrPd9gY++6+U=; b=YLbulGiRJo0tb11MPUBN0o9Za2 3WUxFsiYmgAquGj4eeTNcmiajCUsrePKlly2u3FkV4FLyZly0xMyORMc66NRyTWbWKulb4GtA5vCu ecpATN2ztRftO8QltWKu8qNL56L3K0DMwb8OOviSHn9e7McauF4elgqqvnFsChKUHriE=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mywIj-000425-Fz; Sun, 19 Dec 2021 14:32:36 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEU+S3MmMW4fMGZA Xohzi5iur7D///8Y+2PYAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UMEw0dHZmzpncAAAGySURBVDjL lZRNjuQgDIVNkdlD0gdo0Bwg1a7e1yhm31LB/a8yzxBCUprNOFIS/Nk880vG/9McmeBjjLM24gkE ahkzGWfI43F7F9S/5KjZBYT2fxapIERFEWLhDWi76s8nEIM+SKkCnQQtd47Rz67JmgEQj3EEjVdH J3RTdwyWV2IGcj1DQYyOqwmTMeEMLJxJ1kdZ2c4HQE/Mj5QLccrMdy3HtYxFE5402VRevOps7sCy SHlugndhProKAR1BouSUJW18R0oT/9RIhKtfXlWkgUVdMM3LwusBPhBY7TtLLhtEKvDzJKUB+Zly ka2JI++7dKAZIvu0x5hKyTvICb83XQSAGQBlwTLKAviqsxtqRgP7twGsHsLSG4A4KLwHyD3DYCq7 FyJlgBi03IvdKsA4Hld/9h1MQ1y7GmCp7txLfoUd+GWPT+31c2zRzwn1Z9ml8p+x23/BzbffDWxm gKnkjXkfIp3Ox6Kzm5q4mPOJSpVUBeyFdjgr+JC6F3RhrD8D7F3sLU5FnvcL8C4SWSuykb8CT5b4 sckReACcKCvMozmuDLLrONBn8H6X/DfoV8i7/QUUV6fom29HFgAAACV0RVh0ZGF0ZTpjcmVhdGUA MjAyMS0xMi0xOVQxMzoyOToyOSswMDowMAO7pwUAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMTIt MTlUMTM6Mjk6MjkrMDA6MDBy5h+5AAAAAElFTkSuQmCC X-Now-Playing: John Martyn's _One World (1)_: "Dealer" In-Reply-To: <87v8zkk9nc.fsf@wavexx.thregr.org> (Yuri D'Elia's message of "Sun, 19 Dec 2021 14:17:14 +0100") X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f9:2b:f0f::2 (failed) Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 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, RCVD_IN_DNSWL_MED=-2.3, RDNS_NONE=0.793, 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.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:282432 Archived-At: Yuri D'Elia writes: > Not found a satisfactory solution yet. I was trying to understand how > and what currently works before attempting to go deeper with gdb. It > looks like that even if I do things "properly", I'm running into subtle > font selection issues. There was a long thread touching upon these issues in the bug tracker somewhere. Basically, Gtk tells us the font weights in PANGO_WEIGHT_*, and we map these to symbols according to spec, see xg_weight_to_symbol. And then we map these to a 0-255 scale in weight_table, and it's these weights that are really in the fonts. And PANGO and the fonts don't always agree about these things. If I remember correctly; it's been several months since I looked at this last, and I've already managed to suppress most of it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no