all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sean Whitton <spwhitton@spwhitton.name>
To: Eli Zaretskii <eliz@gnu.org>, Yuri D'Elia <wavexx@thregr.org>
Cc: emacs-devel@gnu.org
Subject: Re: Incorrect font weight selected
Date: Sun, 19 Dec 2021 14:03:27 -0700	[thread overview]
Message-ID: <874k74wbmo.fsf@melete.silentflame.com> (raw)
In-Reply-To: <83k0g092pg.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1758 bytes --]

Hello,

On Sun 19 Dec 2021 at 02:52PM +02, Eli Zaretskii wrote:

>> From: Yuri D'Elia <wavexx@thregr.org>
>> Cc: Sean Whitton <spwhitton@spwhitton.name>, emacs-devel@gnu.org
>> Date: Sun, 19 Dec 2021 12:29:10 +0100
>> 
>> On Sun, Dec 19 2021, Eli Zaretskii wrote:
>> >>     (set-frame-font (font-spec :name "Inconsolata-13" :weight 'medium))
>> >>
>> >> then what I get is the regular weight, not the medium weight.  It is as
>> >> though the :weight parameter is being completely ignored.
>> >
>> > Does that font have the 'medium' weight?

I think so, though see fc-list output below.

I customized the 'default' face to medium Inconsolata, and commented out
my code which directly calls set-frame-font, and then I get something
which looks the same as it used to (I compared some screenshots).

> Emacs 29 distinguishes between 'medium' and 'regular'/'normal' weight,
> and I don't think I see 'medium' in the above output (or maybe I
> misunderstand it).
>
> Can you show the numerical value of the weight for each one of the
> above font varieties?  (Sorry, I don't know how to ask fc to report
> that.)

Here is what I get:

% fc-list Inconsolata family weight | grep -i medium

Inconsolata,Inconsolata ExpandedMedium:weight=100
Inconsolata,Inconsolata UltraExpandedMedium:weight=100
Inconsolata,Inconsolata CondensedMedium:weight=100
Inconsolata,Inconsolata UltraCondensedMedium:weight=100
Inconsolata,Inconsolata SemiCondensedMedium:weight=100
Inconsolata,Inconsolata ExtraExpandedMedium:weight=100
Inconsolata,Inconsolata Medium:weight=100
Inconsolata,Inconsolata ExtraCondensedMedium:weight=100
Inconsolata,Inconsolata SemiExpandedMedium:weight=100

I'm attaching the un-grepped output so you can see the other numerical
weights.

-- 
Sean Whitton

[-- Attachment #2: fc-list-Inconsolata --]
[-- Type: application/octet-stream, Size: 3116 bytes --]

Inconsolata,Inconsolata UltraExpandedExtraLight:weight=45.5
Inconsolata,Inconsolata CondensedLight:weight=50
Inconsolata,Inconsolata ExtraExpandedExtraLight:weight=45.5
Inconsolata,Inconsolata CondensedExtraLight:weight=45.5
Inconsolata,Inconsolata UltraExpandedBlack:weight=210
Inconsolata,Inconsolata Black:weight=210
Inconsolata,Inconsolata ExtraCondensedBlack:weight=210
Inconsolata,Inconsolata ExpandedMedium:weight=100
Inconsolata,Inconsolata ExpandedExtraLight:weight=45.5
Inconsolata,Inconsolata ExtraBold:weight=205
Inconsolata,Inconsolata UltraExpandedMedium:weight=100
Inconsolata,Inconsolata ExtraExpandedSemiBold:weight=180
Inconsolata,Inconsolata UltraCondensedBlack:weight=210
Inconsolata,Inconsolata UltraExpandedSemiBold:weight=180
Inconsolata,Inconsolata UltraCondensedSemiBold:weight=180
Inconsolata,Inconsolata ExtraExpandedBlack:weight=210
Inconsolata,Inconsolata UltraCondensedExtraLight:weight=45.5
Inconsolata,Inconsolata CondensedMedium:weight=100
Inconsolata,Inconsolata ExtraLight:weight=45.5
Inconsolata,Inconsolata SemiCondensedBlack:weight=210
Inconsolata,Inconsolata ExtraCondensedExtraBold:weight=205
Inconsolata,Inconsolata CondensedSemiBold:weight=180
Inconsolata,Inconsolata ExtraCondensedSemiBold:weight=180
Inconsolata,Inconsolata SemiExpandedBlack:weight=210
Inconsolata,Inconsolata SemiCondensedExtraBold:weight=205
Inconsolata,Inconsolata UltraExpandedLight:weight=50
Inconsolata,Inconsolata UltraCondensedMedium:weight=100
Inconsolata,Inconsolata SemiCondensedMedium:weight=100
Inconsolata,Inconsolata ExpandedSemiBold:weight=180
Inconsolata,Inconsolata SemiCondensedSemiBold:weight=180
Inconsolata,Inconsolata ExtraCondensedLight:weight=50
Inconsolata,Inconsolata ExtraCondensedExtraLight:weight=45.5
Inconsolata,Inconsolata ExpandedExtraBold:weight=205
Inconsolata,Inconsolata UltraCondensedLight:weight=50
Inconsolata,Inconsolata ExpandedLight:weight=50
Inconsolata,Inconsolata CondensedBlack:weight=210
Inconsolata,Inconsolata ExtraExpandedLight:weight=50
Inconsolata,Inconsolata CondensedExtraBold:weight=205
Inconsolata,Inconsolata ExtraExpandedMedium:weight=100
Inconsolata,Inconsolata UltraCondensedExtraBold:weight=205
Inconsolata,Inconsolata SemiExpandedExtraLight:weight=45.5
Inconsolata,Inconsolata ExtraExpandedExtraBold:weight=205
Inconsolata,Inconsolata SemiExpandedLight:weight=50
Inconsolata,Inconsolata SemiCondensedLight:weight=50
Inconsolata,Inconsolata Light:weight=50
Inconsolata:weight=50
Inconsolata:weight=40
Inconsolata:weight=100
Inconsolata:weight=80
Inconsolata:weight=180
Inconsolata,Inconsolata Medium:weight=100
Inconsolata,Inconsolata SemiBold:weight=180
Inconsolata,Inconsolata SemiCondensedExtraLight:weight=45.5
Inconsolata:weight=210
Inconsolata:weight=205
Inconsolata:weight=200
Inconsolata,Inconsolata UltraExpandedExtraBold:weight=205
Inconsolata,Inconsolata SemiExpandedExtraBold:weight=205
Inconsolata,Inconsolata ExtraCondensedMedium:weight=100
Inconsolata,Inconsolata SemiExpandedSemiBold:weight=180
Inconsolata:weight=[40 210]
Inconsolata,Inconsolata SemiExpandedMedium:weight=100
Inconsolata,Inconsolata ExpandedBlack:weight=210

  parent reply	other threads:[~2021-12-19 21:03 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17 14:51 Incorrect font weight selected Yuri D'Elia
2021-12-17 18:55 ` Eli Zaretskii
2021-12-17 19:47   ` Yuri D'Elia
2021-12-17 20:27     ` Eli Zaretskii
2021-12-17 21:25       ` Yuri D'Elia
2021-12-18  6:32         ` Eli Zaretskii
2021-12-18 10:43           ` Yuri D'Elia
2021-12-18 11:41             ` Eli Zaretskii
2021-12-18 12:00               ` Yuri D'Elia
2021-12-18 12:49                 ` Eli Zaretskii
2021-12-19 11:14                   ` Yuri D'Elia
2021-12-19 12:46                     ` Eli Zaretskii
2021-12-19 13:17                       ` Yuri D'Elia
2021-12-19 13:32                         ` Lars Ingebrigtsen
2021-12-19 23:24         ` Yuri D'Elia
2021-12-20 10:34           ` Lars Ingebrigtsen
2021-12-20 19:43             ` Stefan Monnier
2021-12-20 19:52               ` Eli Zaretskii
2021-12-20 20:14                 ` Stefan Monnier
2021-12-20 20:19                   ` Eli Zaretskii
2021-12-21  4:22                     ` Dmitry Gutov
2021-12-21 12:18                       ` Eli Zaretskii
2021-12-21 12:27                         ` Yuri D'Elia
2021-12-21 14:19                           ` Eli Zaretskii
2022-01-05 16:19                             ` Yuri D'Elia
2022-01-05 17:05                               ` Eli Zaretskii
2022-01-05 17:11                                 ` Yuri D'Elia
2022-01-05 18:04                                   ` Eli Zaretskii
2022-01-05 18:08                                     ` Yuri D'Elia
2022-01-05 19:07                                       ` Eli Zaretskii
2022-01-05 23:16                                         ` Yuri D'Elia
2022-01-06  7:09                                           ` Eli Zaretskii
2022-01-06  9:46                                             ` Yuri D'Elia
2022-01-06 12:22                                               ` Eli Zaretskii
2022-01-05 21:57                                       ` Dmitry Gutov
2022-01-05 23:15                                         ` Yuri D'Elia
2022-01-05 23:15                                         ` Yuri D'Elia
2022-01-06  5:15                                       ` Sean Whitton
2022-01-06  0:41                               ` Po Lu
2022-01-06  0:54                                 ` Po Lu
2022-01-06  9:49                                 ` Yuri D'Elia
2022-01-06 12:21                                   ` Eli Zaretskii
2021-12-21 13:52                       ` John ff
2021-12-20 20:05               ` Stefan Monnier
2021-12-20 15:16           ` Eli Zaretskii
2021-12-18 23:26 ` Sean Whitton
2021-12-19  6:44   ` Eli Zaretskii
2021-12-19 11:29     ` Yuri D'Elia
2021-12-19 12:52       ` Eli Zaretskii
2021-12-19 12:57         ` Yuri D'Elia
2021-12-19 13:32           ` Eli Zaretskii
2021-12-19 21:03         ` Sean Whitton [this message]
2021-12-19 22:04           ` Yuri D'Elia
2021-12-19 22:39             ` Sean Whitton
2021-12-20 21:59           ` Sean Whitton

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=874k74wbmo.fsf@melete.silentflame.com \
    --to=spwhitton@spwhitton.name \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=wavexx@thregr.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.