From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54646: 29.0.50; set-fontset-font and font clipping issues Date: Sun, 03 Apr 2022 13:50:59 +0300 Message-ID: <83wng630fg.fsf@gnu.org> References: <875ynuokqt.fsf@gmail.com> <83lewq7g1j.fsf@gnu.org> <87czi27bnu.fsf@gmail.com> <83h77e7as6.fsf@gnu.org> <874k3e79mc.fsf@gmail.com> <83fsmy793g.fsf@gnu.org> <87v8vu5j9k.fsf@gmail.com> <837d8a6wm7.fsf@gnu.org> <87lewqjh41.fsf@gmail.com> <83wnga5ap3.fsf@gnu.org> <87a6d69g46.fsf@gmail.com> <87h77dk3zn.fsf@gmail.com> <87a6d5jyat.fsf@gmail.com> <87wng989ym.fsf@gmail.com> <83ilrt5b1v.fsf@gnu.org> <87h77cetq9.fsf@gmail.com> <831qyg6cyt.fsf@gnu.org> <87czi0eoyx.fsf@gmail.com> <83wng84rf8.fsf@gnu.org> <874k3aede0.fsf@gmail.com> <83y20m32h2.fsf@gnu.org> <87zgl2cvj8.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32163"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, 54646@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 03 12:53:41 2022 Return-path: Envelope-to: geb-bug-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 1naxrZ-0008FQ-Eb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Apr 2022 12:53:41 +0200 Original-Received: from localhost ([::1]:37884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naxrY-0002bc-Cq for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Apr 2022 06:53:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naxpy-0001Dr-BE for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 06:52:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53801) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1naxpy-0000JI-2y for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 06:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1naxpy-0004en-21 for bug-gnu-emacs@gnu.org; Sun, 03 Apr 2022 06:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Apr 2022 10:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54646 X-GNU-PR-Package: emacs Original-Received: via spool by 54646-submit@debbugs.gnu.org id=B54646.164898307117835 (code B ref 54646); Sun, 03 Apr 2022 10:52:02 +0000 Original-Received: (at 54646) by debbugs.gnu.org; 3 Apr 2022 10:51:11 +0000 Original-Received: from localhost ([127.0.0.1]:47696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naxp8-0004dZ-VD for submit@debbugs.gnu.org; Sun, 03 Apr 2022 06:51:11 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1naxp3-0004d2-Rk for 54646@debbugs.gnu.org; Sun, 03 Apr 2022 06:51:09 -0400 Original-Received: from [2001:470:142:3::e] (port=34380 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naxoy-0000HG-HU; Sun, 03 Apr 2022 06:51:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QRFYXJqUYTXPNTUq4+LuuJzPbMckS0eY9sAcblg+VX4=; b=I916Nl1yyj8g fp9IWtVc2T3ijQHHADwYs5KwecC5AfnVI28x1rEC+kIPt6PBHVr1IJUUwfnZ6PKPVMJD2BsGhPh/o ELwx+CMhbDVM6n4Tljm+u4X0Bnxws0GWdz2ebSMOsUX6fmNrCzeWYGQbn7jtvA8g2a9KtgZqFDICG HzLxfhO3LR9JpjbgJZRJi/MJuJU7mc55TJm4bC3DbwfJ0nYrS/fXYzq1lS1uCdEFgvIp9DD/TSOTl lAoaMTsoiSfqisTZtOvbP2g7GBpJ/CM6FH7eBkwGKDsZfC0a/210rBE0uC5TmMMZNnsmwDpvywpQZ 0PbNdkxwoXnDKtSw6MpLCQ==; Original-Received: from [87.69.77.57] (port=4700 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naxoy-0000Ez-0J; Sun, 03 Apr 2022 06:51:00 -0400 In-Reply-To: <87zgl2cvj8.fsf@gmail.com> (message from Visuwesh on Sun, 03 Apr 2022 15:56:35 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:229327 Archived-At: > From: Visuwesh > Cc: rpluim@gmail.com, 54646@debbugs.gnu.org > Date: Sun, 03 Apr 2022 15:56:35 +0530 > > > The %c format is only good for single-byte characters, which these > > ones aren't. Please use %x to print them (in hex). > > > > Will do, thanks. > > > Also, I think printing everything is too much, and doesn't allow to > > focus. Please print only when the character's code is one of those > > involved in the problematic display. > > Unfortunately, the characters that are problematic tend to differ from > each run. Nevertheless, I will hand-pick the problematic characters and > send it. That'd be good. We need a reproducible case to work with. > > if (chars[char_idx] == CHAR1 > > || chars[char_idx] == CHAR2 > > || chars[char_idx] == CHAR3) > > printf (... > > > > where CHAR1, CHAR2, and CHAR3 are the characters involved in the > > problematic display, according to "C-u C-x =". > > > > May I suggest that you show me the code you add to hbfont.c before you > > run it? This would avoid unnecessary iterations for you. > > > > Sure, This is okay, but please don't forget to add that 'if' condition. I think the characters involved in the composition, and in addition one character on each side of those, should be enough. Please show the final code, so that I could then interpret the print-outs correctly. Thanks.