From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#67810: 29.1; fonts use synthetic bold on Linux / pgtk Date: Fri, 12 Jan 2024 09:46:21 +0800 Message-ID: <87ttnj2uj6.fsf@yahoo.com> References: <0719018bb386e840efaa655b7c0b765ece9cd9ff.camel@timruffing.de> <83le9ys2d3.fsf@gnu.org> <3ebaf489f6dad748258c7fb01d3200b674ebb1f1.camel@timruffing.de> <83h6kmrzkz.fsf@gnu.org> <7ea3f7db448191f2b9886604084abe84d0caaf61.camel@timruffing.de> <83y1dxqm46.fsf@gnu.org> <83le9xqewb.fsf@gnu.org> <87h6klja8c.fsf@yahoo.com> <723b91276f83652bc6867f95630e1057c05ffb26.camel@timruffing.de> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6624"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 67810@debbugs.gnu.org, Stefan Kangas To: Tim Ruffing Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 12 02:47:33 2024 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 1rO6dw-0001VF-HR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Jan 2024 02:47:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rO6da-0001wd-AD; Thu, 11 Jan 2024 20:47:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rO6dV-0001vt-17 for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 20:47:07 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rO6dU-0005iK-PC for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 20:47:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rO6dS-0008W4-2B for bug-gnu-emacs@gnu.org; Thu, 11 Jan 2024 20:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jan 2024 01:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67810 X-GNU-PR-Package: emacs Original-Received: via spool by 67810-submit@debbugs.gnu.org id=B67810.170502400131992 (code B ref 67810); Fri, 12 Jan 2024 01:47:02 +0000 Original-Received: (at 67810) by debbugs.gnu.org; 12 Jan 2024 01:46:41 +0000 Original-Received: from localhost ([127.0.0.1]:34426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rO6d6-0008Ja-SJ for submit@debbugs.gnu.org; Thu, 11 Jan 2024 20:46:41 -0500 Original-Received: from sonic306-22.consmr.mail.ne1.yahoo.com ([66.163.189.84]:43437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rO6d4-0008Ei-G7 for 67810@debbugs.gnu.org; Thu, 11 Jan 2024 20:46:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705023995; bh=SyFgZvIB9rzOrndrL6caVNqla1YIAN3BuEmgDz0cMec=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Ey6BR0zHwW4OhdyHCfxjat/+0Htc6vNUGcjFIjkhrgb7HdpnOHfCuwIENONk423yPr8+3Vv3zm+XeTc5SnT0FfJLazRTn9oSmDAXf9Ni28WMETQh5BI8dY8HDmLhZ3bSKebGt8CCYvQ3niyFQYnKkcBzl1NQugTaYTsVhlzDk+2yB3ra/Vob7PqRpvVw3yu1fhGAvE8+58lbkzaftptiOdmVAVBUh4e+TtlVgFi61puq5UOMufHGQgayLjOc12luh/vbhqki29sVqAbyF384G3qUhaNFLjI9WEw0W3aR1F73+t128NdLz9rIzm0nQOgMXxTA0pDOAJxS2hhJJLdbAg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705023995; bh=JxNXzcfHvwBNYS+ibqLIRYn0weEZNcRY5jFTokvfBLY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=lWDibWuQCNIUfCC52pNbjNC1eXIStcctQm/b9FsBE8oUnwA4Fe8+9zPZ/xnSu6L+Gaxxiu/p3fPfSZEydU1K9JfTbmdMD/mgtHrKX7zUi20tMyNniwp780hH6EbUgJrjirNQcPxQyky7knhkcX5rwq/g1N9NzGb7faId9vf7KI0IQMtjTWR0aK0LjMRRP2SaItUxxkJ7wlYEhjEjySsej9HM5Sd8EH1+Ce8F858MiGkok+B6Jt/QMz9BZiAnMuXLYcowgYX22XxUlJIqJ7bdzrAABs3ik1dKfLSALaBvT2UeCjJkxFleTeuwVGcCu4eYFNobkH6z4pqXFV3lksI6wA== X-YMail-OSG: J0GrmUEVM1kVCafm6vrYzzaKrmknqM0uazRYHa4Kc3vyOLz4TltTI.c8Aax_cMd HRzNHALYYEEKqe76aE3s16r7Oj54r8P8MXRAKnxLIIW.sYVxg24paELJkjRG4l7mMWDTJvwNMjVE cU2jzSjCF3KtNCcYVlPjVOcRqZTtCBzf7LPoiMLzzjWgTT9k5ttnmfO2fjzqApoUBJR961TF1ZjT 6SMD.APfTgc.hpOEl29mgJQJyPxsLkLUKMlNgSkylvHQ2ZP6n1I9vZ5VUhqCG3Mb2JHPGzbIYv3p ewCO2Gnh9ZI4EGoEq3TBkrim5fhCHF7DhyhqY3o31EnnxsLk0o2mkjNBbfqvWOJ6KzL_Yn9UmeNM 4nsuY3KzCt0jcjmZJ8hc_BGWQWD6Zd9BKBM2aQp8MGT3hVMPvafZ1LZ49Oy8g7OgrqZRqU_Yyl1T Xq4KCzokyi4.CoZakQp.IqioSo8VkLKH5kHQWcD7ypvjWRZl1ELssy5Yx91CZxtZWPh3j574p124 nZRb3_6VQ6dajhAqI0IFCz3sAjpboHU_jb0rTy.xvMw4ZHoymPdNwBHf96IccdHolntFZBqBJ2zY dcjVMrw28kiH9iTQZU_aykLMn71qOmpOSwCalU2F_tSLqvbuf0kbrw56pkkg9zIgGSsbe2eA8gRz YlyJxoNucyLDvnsVDnswbBx2sQUiA7fDYggaY.hFd7k2t1OMk_ZuA26UrHZ1.P8j0RYe9Ze1phHE IZlLtTMVgQ82FGk395IT1_6VbgFSD2a.WC_FhUYS89hzj1Bs8Wh4HtT_xexrGvb2SS7D44YbGaCb k0wF9yAYzhAQVB1g_ZlCh85yNrWUcwiVvNEgduaRq5 X-Sonic-MF: X-Sonic-ID: cb42e04a-ec5b-4ac1-b337-bbd3fc227189 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 12 Jan 2024 01:46:35 +0000 Original-Received: by hermes--production-sg3-677476f564-vn824 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 28b728a72a6fa125404291c399468cab; Fri, 12 Jan 2024 01:46:31 +0000 (UTC) In-Reply-To: (Tim Ruffing's message of "Thu, 11 Jan 2024 16:50:34 +0100") X-Mailer: WebService/1.1.22010 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:277975 Archived-At: Tim Ruffing writes: > Yeah, that's a very clean approach, of course, but it's restricted to > graphical displays. And consideration went into the current design > described in > https://www.gnu.org/software/emacs/manual/html_node/elisp/Icons.html > which says "Icons should also have a textual fallback." and which has > an example with "textual" symbols. I suggest not using SVG icons for monochrome symbolic icons of the kind doom-modeline often displays. Libraries rendering SVG are relatively memory-intensive and slow, while outline fonts are optimized for memory consumption and scaler speed. Incidentally, I've been toying with the idea of using the code in sfnt.c to create vector symbols definable from Lisp and available on all systems, to serve as fringe bitmaps and the like. > @Po Lu: > Independent of icons, I still think that overstriking is a bit > unexpected. (I mean, even Eli didn't know about it.) I see that a font > regex is too much, but do you think a simple boolean option would be a > good idea? Or do you think the current behavior should simply be > documented more prominently? I think this is a mechanism users should not understand in this much technical detail, because font backends might synthesize their bold or oblique variants by other means when one is requested from a font that doesn't provide them. Rather, users should understand that Emacs will seek to display bold text when they specify it should, and that text which isn't meant to be bold text should not receive text properties labeling it as such.