GNU bug report logs -
#51155
29.0.50; Incorrect weight used in Cantarell VF
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51155 in the body.
You can then email your comments to 51155 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Tue, 12 Oct 2021 11:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Utkarsh Singh <utkarsh190601 <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 12 Oct 2021 11:15:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
On 2021-09-21, Arch Linux updated their Cantarell font package, which
removed classic font with variable fonts. According to Jan Alexander
Steffens (package maintainer):
> Yeah, we only packaged VF because upstream requested to either package
> the classic fonts *or* the variable font. The VF is more powerful as
> it not just contains all the classic weights but can also interpolate
> between them.
But with these changes Emacs in now unable to distinguish between light
and regular weights. To reproduce the bug you would have to:
1. Install latest version of font from upstream:
<https://gitlab.gnome.org/GNOME/cantarell-fonts>
2. Evaluate in "emacs -Q" session:
(progn
(set-face-attribute 'variable-pitch nil :family "Cantarell" :weight 'regular)
(face-font 'variable-pitch))
Also see bug report on Arch Linux bug tracker:
<https://bugs.archlinux.org/task/72212>
--
Utkarsh Singh
https://utkarshsingh.xyz/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Wed, 13 Oct 2021 11:40:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 51155 <at> debbugs.gnu.org (full text, mbox):
> From: Utkarsh Singh <utkarsh190601 <at> gmail.com>
> Date: Tue, 12 Oct 2021 16:45:41 +0530
>
> On 2021-09-21, Arch Linux updated their Cantarell font package, which
> removed classic font with variable fonts. According to Jan Alexander
> Steffens (package maintainer):
>
> > Yeah, we only packaged VF because upstream requested to either package
> > the classic fonts *or* the variable font. The VF is more powerful as
> > it not just contains all the classic weights but can also interpolate
> > between them.
>
> But with these changes Emacs in now unable to distinguish between light
> and regular weights. To reproduce the bug you would have to:
>
> 1. Install latest version of font from upstream:
> <https://gitlab.gnome.org/GNOME/cantarell-fonts>
>
> 2. Evaluate in "emacs -Q" session:
> (progn
> (set-face-attribute 'variable-pitch nil :family "Cantarell" :weight 'regular)
> (face-font 'variable-pitch))
>
> Also see bug report on Arch Linux bug tracker:
> <https://bugs.archlinux.org/task/72212>
What are the numerical values of weight in these fonts?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Wed, 13 Oct 2021 14:36:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 51155 <at> debbugs.gnu.org (full text, mbox):
On 2021-10-13, 14:39 +0300, Eli Zaretskii <eliz <at> gnu.org> wrote:
> What are the numerical values of weight in these fonts?
Can you please tell me how I can get this info?
--
Utkarsh Singh
https://utkarshsingh.xyz/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Wed, 13 Oct 2021 15:35:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 51155 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 2021-10-13, 20:06 +0530, Utkarsh Singh <utkarsh190601 <at> gmail.com> wrote:
> On 2021-10-13, 14:39 +0300, Eli Zaretskii <eliz <at> gnu.org> wrote:
>
>> What are the numerical values of weight in these fonts?
>
> Can you please tell me how I can get this info?
Weight table:
| Face | Weight |
|------------+--------|
| Extra bold | 205 |
| Bold | 200 |
| Regular | 80 |
| Light | 50 |
Also see fc-query output attached with this email.
--
Utkarsh Singh
https://utkarshsingh.xyz/
[cantarell-query.txt (text/plain, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Wed, 13 Oct 2021 16:13:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 51155 <at> debbugs.gnu.org (full text, mbox):
> From: Utkarsh Singh <utkarsh190601 <at> gmail.com>
> Cc: 51155 <at> debbugs.gnu.org
> Date: Wed, 13 Oct 2021 21:05:05 +0530
>
> >> What are the numerical values of weight in these fonts?
> >
> > Can you please tell me how I can get this info?
>
> Weight table:
>
> | Face | Weight |
> |------------+--------|
> | Extra bold | 205 |
> | Bold | 200 |
> | Regular | 80 |
> | Light | 50 |
I think that's the problem: Emacs thinks that Regular should have the
weight of 100, see font.c.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Wed, 13 Oct 2021 20:30:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 51155 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Weight table:
>>
>> | Face | Weight |
>> |------------+--------|
>> | Extra bold | 205 |
>> | Bold | 200 |
>> | Regular | 80 |
>> | Light | 50 |
>
> I think that's the problem: Emacs thinks that Regular should have the
> weight of 100, see font.c.
So this is basically bug#32210 again, I think?
When we last discussed this (a couple years ago), I said I'd try to look
into this complex issue, so perhaps now's the time. I'll start poking
at this morass tomorrow, I think.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Forcibly Merged 28351 32210 51155.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 13 Oct 2021 20:30:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Thu, 14 Oct 2021 02:43:01 GMT)
Full text and
rfc822 format available.
Message #25 received at 51155 <at> debbugs.gnu.org (full text, mbox):
On 2021-10-13, 22:29 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> Weight table:
>>>
>>> | Face | Weight |
>>> |------------+--------|
>>> | Extra bold | 205 |
>>> | Bold | 200 |
>>> | Regular | 80 |
>>> | Light | 50 |
>>
>> I think that's the problem: Emacs thinks that Regular should have the
>> weight of 100, see font.c.
>
> So this is basically bug#32210 again, I think?
>
> When we last discussed this (a couple years ago), I said I'd try to look
> into this complex issue, so perhaps now's the time. I'll start poking
> at this morass tomorrow, I think.
For testing, I changed Regular to weight of 80 but Emacs is still
loading the Light variant.
--
Utkarsh Singh
https://utkarshsingh.xyz/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Thu, 14 Oct 2021 06:27:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 51155 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: Utkarsh Singh <utkarsh190601 <at> gmail.com>, 51155 <at> debbugs.gnu.org
> Date: Wed, 13 Oct 2021 22:29:00 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Weight table:
> >>
> >> | Face | Weight |
> >> |------------+--------|
> >> | Extra bold | 205 |
> >> | Bold | 200 |
> >> | Regular | 80 |
> >> | Light | 50 |
> >
> > I think that's the problem: Emacs thinks that Regular should have the
> > weight of 100, see font.c.
>
> So this is basically bug#32210 again, I think?
No, not necessarily: that one was about "regular" vs "medium", not vs
"light".
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Thu, 14 Oct 2021 07:39:01 GMT)
Full text and
rfc822 format available.
Message #31 received at 51155 <at> debbugs.gnu.org (full text, mbox):
> From: Utkarsh Singh <utkarsh190601 <at> gmail.com>
> Cc: 51155 <at> debbugs.gnu.org
> Date: Thu, 14 Oct 2021 08:13:33 +0530
>
> On 2021-10-13, 22:29 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
> > Eli Zaretskii <eliz <at> gnu.org> writes:
> >
> >>> Weight table:
> >>>
> >>> | Face | Weight |
> >>> |------------+--------|
> >>> | Extra bold | 205 |
> >>> | Bold | 200 |
> >>> | Regular | 80 |
> >>> | Light | 50 |
> >>
> >> I think that's the problem: Emacs thinks that Regular should have the
> >> weight of 100, see font.c.
> >
> > So this is basically bug#32210 again, I think?
> >
> > When we last discussed this (a couple years ago), I said I'd try to look
> > into this complex issue, so perhaps now's the time. I'll start poking
> > at this morass tomorrow, I think.
>
> For testing, I changed Regular to weight of 80 but Emacs is still
> loading the Light variant.
That's not necessarily enough, as there's more code involved here.
I think only stepping with a debugger through the relevant code will
tell us what happens and why.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Wed, 02 Feb 2022 08:30:01 GMT)
Full text and
rfc822 format available.
Message #34 received at 51155 <at> debbugs.gnu.org (full text, mbox):
Hello maintainers,
On 2021-10-14, 08:13 +0530, Utkarsh Singh <utkarsh190601 <at> gmail.com> wrote:
> On 2021-10-13, 22:29 +0200, Lars Ingebrigtsen <larsi <at> gnus.org> wrote:
>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>>>> Weight table:
>>>>
>>>> | Face | Weight |
>>>> |------------+--------|
>>>> | Extra bold | 205 |
>>>> | Bold | 200 |
>>>> | Regular | 80 |
>>>> | Light | 50 |
>>>
>>> I think that's the problem: Emacs thinks that Regular should have the
>>> weight of 100, see font.c.
>>
>> So this is basically bug#32210 again, I think?
>>
>> When we last discussed this (a couple years ago), I said I'd try to look
>> into this complex issue, so perhaps now's the time. I'll start poking
>> at this morass tomorrow, I think.
>
> For testing, I changed Regular to weight of 80 but Emacs is still
> loading the Light variant.
Please close this bug report, Cantarell VF is working fine now.
--
Utkarsh Singh
https://utkarshsingh.xyz/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#51155
; Package
emacs
.
(Wed, 02 Feb 2022 17:54:02 GMT)
Full text and
rfc822 format available.
Message #37 received at 51155 <at> debbugs.gnu.org (full text, mbox):
Utkarsh Singh <utkarsh190601 <at> gmail.com> writes:
> Please close this bug report, Cantarell VF is working fine now.
OK; closing this report, then.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
bug closed, send any further explanations to
51155 <at> debbugs.gnu.org and Utkarsh Singh <utkarsh190601 <at> gmail.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 02 Feb 2022 17:54:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 03 Mar 2022 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 55 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.