all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21640: 25.0.50; Fontset-font is never scaled
@ 2015-10-07 10:52 Artur Malabarba
  2015-10-07 15:45 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Artur Malabarba @ 2015-10-07 10:52 UTC (permalink / raw)
  To: 21640

I have the following snippet in my init file.

(set-face-attribute 'default nil :height 100
                    :font "SourceCodePro Medium")
(set-fontset-font "fontset-default" nil
                  (font-spec :size 40 :name "Symbola"))

On my Ubuntu system, this means any characters no supported by the
main font (SourceCodePro) will displayed in the Symbola font and
considerably scaled up in size (good).

On my Arch GNU/Linux system, the same happens, except the Symbola
characters are not scaled up in size. By inspecting them with C-u C-x
= I can verify that the Symbola font is indeed being used:

   xft:-unknown-Symbola-normal-normal-semicondensed-*-13-*-*-*-*-0-iso10646-1
(#x1BE3)

Both are compiled from master.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#21640: 25.0.50; Fontset-font is never scaled
  2015-10-07 10:52 bug#21640: 25.0.50; Fontset-font is never scaled Artur Malabarba
@ 2015-10-07 15:45 ` Eli Zaretskii
  2015-10-07 19:14   ` Artur Malabarba
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2015-10-07 15:45 UTC (permalink / raw)
  To: Artur Malabarba; +Cc: 21640

> Date: Wed, 7 Oct 2015 11:52:04 +0100
> From: Artur Malabarba <arturmalabarba@gmail.com>
> 
> I have the following snippet in my init file.
> 
> (set-face-attribute 'default nil :height 100
>                     :font "SourceCodePro Medium")
> (set-fontset-font "fontset-default" nil
>                   (font-spec :size 40 :name "Symbola"))
> 
> On my Ubuntu system, this means any characters no supported by the
> main font (SourceCodePro) will displayed in the Symbola font and
> considerably scaled up in size (good).
> 
> On my Arch GNU/Linux system, the same happens, except the Symbola
> characters are not scaled up in size. By inspecting them with C-u C-x
> = I can verify that the Symbola font is indeed being used:
> 
>    xft:-unknown-Symbola-normal-normal-semicondensed-*-13-*-*-*-*-0-iso10646-1
> (#x1BE3)
> 
> Both are compiled from master.

Is the configuration the same, including the font back-ends?

In general, I think you are getting undefined behavior: you specify a
fixed size of 40 pixels, but expect it to be a kind of "relative"
size?  Is that documented somewhere?

(I never used explicit size parameters in fontsets, so maybe I'm
missing something.)





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#21640: 25.0.50; Fontset-font is never scaled
  2015-10-07 15:45 ` Eli Zaretskii
@ 2015-10-07 19:14   ` Artur Malabarba
  2015-10-07 19:20     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Artur Malabarba @ 2015-10-07 19:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 21640

> Is the configuration the same, including the font back-ends?

The init files are the same (and I see this problem from emacs -Q
too), but there are many differences in system configuration outside
Emacs (most of which I probably don't know).

I haven't configured font-backends. If I query for it in
frame-parameters I get `(font-backend xft x)'.
Swapping their order or removing the `x' makes no difference. Removing
the `xft' segfaults Emacs.

> In general, I think you are getting undefined behavior: you specify a
> fixed size of 40 pixels, but expect it to be a kind of "relative"
> size?  Is that documented somewhere?

No, I expect to be bigger than my regular font, which is much less
than 40 pixels. I can change it to any other number with no effect.
I tried using a float too, which should represent a size in points
according to the docstring, but there's still no difference.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#21640: 25.0.50; Fontset-font is never scaled
  2015-10-07 19:14   ` Artur Malabarba
@ 2015-10-07 19:20     ` Eli Zaretskii
  2015-10-08  9:25       ` Artur Malabarba
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2015-10-07 19:20 UTC (permalink / raw)
  To: Artur Malabarba; +Cc: 21640

> Date: Wed, 7 Oct 2015 20:14:43 +0100
> From: Artur Malabarba <arturmalabarba@gmail.com>
> Cc: 21640@debbugs.gnu.org
> 
> > Is the configuration the same, including the font back-ends?
> 
> The init files are the same (and I see this problem from emacs -Q
> too), but there are many differences in system configuration outside
> Emacs (most of which I probably don't know).
> 
> I haven't configured font-backends. If I query for it in
> frame-parameters I get `(font-backend xft x)'.
> Swapping their order or removing the `x' makes no difference. Removing
> the `xft' segfaults Emacs.
> 
> > In general, I think you are getting undefined behavior: you specify a
> > fixed size of 40 pixels, but expect it to be a kind of "relative"
> > size?  Is that documented somewhere?
> 
> No, I expect to be bigger than my regular font, which is much less
> than 40 pixels. I can change it to any other number with no effect.
> I tried using a float too, which should represent a size in points
> according to the docstring, but there's still no difference.

Could it be that the version of Symbola is different between the two
systems, and one of them cannot be scaled like you want?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#21640: 25.0.50; Fontset-font is never scaled
  2015-10-07 19:20     ` Eli Zaretskii
@ 2015-10-08  9:25       ` Artur Malabarba
  2019-11-17  6:43         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Artur Malabarba @ 2015-10-08  9:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 21640

2015-10-07 20:20 GMT+01:00 Eli Zaretskii <eliz@gnu.org>:
> Could it be that the version of Symbola is different between the two
> systems, and one of them cannot be scaled like you want?

It's possible, I don't know how to look up font versions. The version
of the package that I installed for this font is 8.0.0 on Arch, but I
can't even find out where the font comes from on Ubuntu (probably
pre-installed).

Anyway, the matter is more complicated then I initially thought. Even
on Ubuntu it doesn't work on every Symbola character.
For instance, I can get it to work with the "MATHEMATICAL
DOUBLE-STRUCK DIGIT ____" family. If I inspect the char I get this
description:
    xft:-unknown-Symbola-normal-normal-semicondensed-*-50-*-*-*-*-0-iso10646-1
(#x14CD)

But it doesn't seem to work with anything from the "SMILING FACE WITH
___" family.
    xft:-unknown-Symbola-normal-normal-semicondensed-*-16-*-*-*-*-0-iso10646-1
(#x18FA)

Note how one is correctly using the size 50 (which I had previously
set via `(font-spec :size 50 :name "Symbola")'), and the other is
using size 16.
Does anyone know where is the code responsible for figuring out this
number when the char is inserted? (so I can investigate)

Anyway, I'm pretty sure most characters worked on a previous Arch
installation I had. I'll test it on a previous Emacs version to figure
out if the regression is in Emacs or in my system.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#21640: 25.0.50; Fontset-font is never scaled
  2015-10-08  9:25       ` Artur Malabarba
@ 2019-11-17  6:43         ` Lars Ingebrigtsen
  2020-04-17 10:31           ` Stefan Kangas
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2019-11-17  6:43 UTC (permalink / raw)
  To: Artur Malabarba; +Cc: 21640

Artur Malabarba <arturmalabarba@gmail.com> writes:

> Anyway, the matter is more complicated then I initially thought. Even
> on Ubuntu it doesn't work on every Symbola character.
> For instance, I can get it to work with the "MATHEMATICAL
> DOUBLE-STRUCK DIGIT ____" family. If I inspect the char I get this
> description:
>     xft:-unknown-Symbola-normal-normal-semicondensed-*-50-*-*-*-*-0-iso10646-1
> (#x14CD)
>
> But it doesn't seem to work with anything from the "SMILING FACE WITH
> ___" family.
>     xft:-unknown-Symbola-normal-normal-semicondensed-*-16-*-*-*-*-0-iso10646-1
> (#x18FA)

I tried reproducing this (starting from -Q), but I'm not sure whether
I'm doing it right.  First I evaled:

(set-fontset-font "fontset-default" nil
                  (font-spec :size 80 :name "Unifont Upper"))


Then inserted SMILING FACE WITH SMILING EYES AND THREE HEARTS (which
uses that font), and I got:

    ftcrhb:-PfEd-Unifont Upper-normal-normal-normal-*-80-*-*-*-d-0-iso10646-1 (#x2886)

Character code properties: customize what to show
  name: SMILING FACE WITH SMILING EYES AND THREE HEARTS

So it seems to work for me.  Has this bug gone away in the meanwhile, or
are you still seeing it?

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





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#21640: 25.0.50; Fontset-font is never scaled
  2019-11-17  6:43         ` Lars Ingebrigtsen
@ 2020-04-17 10:31           ` Stefan Kangas
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Kangas @ 2020-04-17 10:31 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Artur Malabarba, 21640-done

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Artur Malabarba <arturmalabarba@gmail.com> writes:
>
>> Anyway, the matter is more complicated then I initially thought. Even
>> on Ubuntu it doesn't work on every Symbola character.
>> For instance, I can get it to work with the "MATHEMATICAL
>> DOUBLE-STRUCK DIGIT ____" family. If I inspect the char I get this
>> description:
>>     xft:-unknown-Symbola-normal-normal-semicondensed-*-50-*-*-*-*-0-iso10646-1
>> (#x14CD)
>>
>> But it doesn't seem to work with anything from the "SMILING FACE WITH
>> ___" family.
>>     xft:-unknown-Symbola-normal-normal-semicondensed-*-16-*-*-*-*-0-iso10646-1
>> (#x18FA)
>
> I tried reproducing this (starting from -Q), but I'm not sure whether
> I'm doing it right.  First I evaled:
>
> (set-fontset-font "fontset-default" nil
>                   (font-spec :size 80 :name "Unifont Upper"))
>
>
> Then inserted SMILING FACE WITH SMILING EYES AND THREE HEARTS (which
> uses that font), and I got:
>
>     ftcrhb:-PfEd-Unifont Upper-normal-normal-normal-*-80-*-*-*-d-0-iso10646-1 (#x2886)
>
> Character code properties: customize what to show
>   name: SMILING FACE WITH SMILING EYES AND THREE HEARTS
>
> So it seems to work for me.  Has this bug gone away in the meanwhile, or
> are you still seeing it?

More information was requested, but none was given within 21 weeks, so
I'm closing this bug.  If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-17 10:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 10:52 bug#21640: 25.0.50; Fontset-font is never scaled Artur Malabarba
2015-10-07 15:45 ` Eli Zaretskii
2015-10-07 19:14   ` Artur Malabarba
2015-10-07 19:20     ` Eli Zaretskii
2015-10-08  9:25       ` Artur Malabarba
2019-11-17  6:43         ` Lars Ingebrigtsen
2020-04-17 10:31           ` Stefan Kangas

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.