l3afpad icon indicating copy to clipboard operation
l3afpad copied to clipboard

Bug: Font size becomes smaller by the factor of about 0.7 without any reason

Open dumblob opened this issue 8 years ago • 10 comments

Each l3afpad start as well as each font selection dialog closure cause the current font size being scaled down by approximately the factor of 0.7 . The stopping point is font size of 1.x, which can't become smaller.

I have absolutely no idea where does this come from, but because it's a persistent issue over the last few months surviving huge GTK and other GUI and related libraries significant updates, I'm submitting it as a serious issue.

dumblob avatar Dec 09 '16 19:12 dumblob

I have the same issue, but for me the font is always getting bigger, not smaller. So weird. I have to adjust the font size every time I use l3afpad 😩

bjesus avatar Dec 31 '16 15:12 bjesus

I think it might be a matter of changing the DPI in .Xresources, as that is what triggered it doing that for me.

Kommynct avatar Feb 23 '17 11:02 Kommynct

Thanks @that1communist, indeed Xft.dpi: in .Xresources is the culprit.

The question is why other GTK3 applications do not have this issue? Is there anything about the text edit widget? What do you think @stevenhoneyman?

dumblob avatar Feb 28 '17 11:02 dumblob

Just for the record, I don't have an .Xresources file.

bjesus avatar Feb 28 '17 11:02 bjesus

Do you have something else that might trigger a DPI change?

Kommynct avatar Feb 28 '17 12:02 Kommynct

I have "Scaling Factor" set to 0.8 in GNOME Tweak Tool (under "Fonts"). I'm not sure what dconf keys it sets actually.

bjesus avatar Mar 01 '17 10:03 bjesus

@bjesus what is your output of xrdb -query | grep -i dpi?

dumblob avatar Mar 01 '17 12:03 dumblob

Xft.dpi: 76.7998046875. You're on to something 😄 I wonder where this value is coming from.

bjesus avatar Mar 01 '17 12:03 bjesus

@proudzhu you've already worked with the code. Any idea?

dumblob avatar Mar 01 '17 13:03 dumblob

I have the same problem too. The fonts get smaller each time I open l3afpad. I am using GNOME 3.22 (Wayland session), Arch Linux and have set the DPI to 1.10 in GNOME's Tweak Tool.

Not of any importance to this issue but thank you for this GTK3 port. It is super fast and does not lag like other GTK3 programs. I have noticed that the GTK3 programs that use gobject-introspection (common denominator) are the slow ones (abiword, nautilus, gedit, etc etc).

38github avatar Mar 22 '17 23:03 38github