all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: carlosjosepita@gmail.com, 32210@debbugs.gnu.org
Subject: bug#32210: Support medium weighted fonts
Date: Mon, 18 Nov 2019 11:28:49 +0100	[thread overview]
Message-ID: <87k17xqxzy.fsf@gnus.org> (raw)
In-Reply-To: <835zji5qyn.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Nov 2019 19:54:08 +0200")

Eli Zaretskii <eliz@gnu.org> writes:

>> so Pando has also grown a MEDIUM in addition to NORMAL...  and we don't
>> have PANGO_WEIGHT_NORMAL.
>
> A related question is: can the GTK font selection dialog return
> PANGO_WEIGHT_MEDIUM (when you choose a font with that weight)?

I installed the following debugging

diff --git a/src/gtkutil.c b/src/gtkutil.c
index c4d2ef9d80..b1b3e4c397 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -2300,6 +2300,10 @@ xg_get_font (struct frame *f, const char *default_name)
 	  PangoWeight weight = pango_font_description_get_weight (desc);
 	  PangoStyle  style  = pango_font_description_get_style (desc);
 
+	  CALLN (Fmessage, build_string ("Weight: %s, symbol %s"),
+		 make_int (weight),
+		 XG_WEIGHT_TO_SYMBOL (weight));
+ 
 	  font = CALLN (Ffont_spec,
 			QCfamily, build_string (family),
 			QCsize, make_float (pango_units_to_double (size)),

and tried using the gtk selector (via M-x menu-set-font).  I only have
one font installed that has both normal and medium variations "Nimbus
no9", so I tried that.  And I got:

Weight: 400, symbol normal
Weight: 700, symbol bold

And, yes, the thing that's called Nimbus No9 Medium does look like a
bold in both the gtk selector and in Emacs.  So I don't think I have a
proper font to experiment with...  does anybody know of a font in Debian
Stable that has both varieties?  SauceCodePro was the example in the
bug report, but that does not seem to be available here.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2019-11-18 10:28 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-19 14:06 bug#32210: Support medium weighted fonts Carlos Pita
2019-11-17  8:37 ` Lars Ingebrigtsen
2019-11-17 15:59   ` Eli Zaretskii
2019-11-17 17:06     ` Lars Ingebrigtsen
2019-11-17 17:54       ` Eli Zaretskii
2019-11-18 10:28         ` Lars Ingebrigtsen [this message]
2019-11-18 10:41           ` Lars Ingebrigtsen
2019-11-18 15:48             ` Eli Zaretskii
2019-11-18 17:17               ` Lars Ingebrigtsen
2019-11-18 17:26                 ` Eli Zaretskii
2019-11-19  8:23                   ` Lars Ingebrigtsen
2021-10-20 12:58                     ` Lars Ingebrigtsen
2021-10-20 13:11                       ` Eli Zaretskii
2021-10-20 13:20                         ` Lars Ingebrigtsen
2021-10-20 14:18                           ` Eli Zaretskii
2021-10-20 14:28                             ` Lars Ingebrigtsen
2021-10-20 14:42                               ` Lars Ingebrigtsen
2021-10-20 14:47                                 ` Lars Ingebrigtsen
2021-10-20 16:12                                 ` Eli Zaretskii
2021-10-21  2:33                                   ` Lars Ingebrigtsen
2021-10-21  7:01                                     ` Eli Zaretskii
2021-10-21 12:49                                       ` Lars Ingebrigtsen
2019-11-18 10:55           ` Robert Pluim
2019-11-18 17:32             ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k17xqxzy.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=32210@debbugs.gnu.org \
    --cc=carlosjosepita@gmail.com \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.