Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dumblob opened this issue Dec 9, 2016 · 10 comments

Comments

@dumblob
Copy link

dumblob commented Dec 9, 2016

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.

@bjesus
Copy link

bjesus commented Dec 31, 2016

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 😩

@Kommynct
Copy link

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

@dumblob
Copy link
Author

dumblob commented Feb 28, 2017

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?

@bjesus
Copy link

bjesus commented Feb 28, 2017

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

@Kommynct
Copy link

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

@bjesus
Copy link

bjesus commented Mar 1, 2017

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

@dumblob
Copy link
Author

dumblob commented Mar 1, 2017

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

@bjesus
Copy link

bjesus commented Mar 1, 2017

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

@dumblob
Copy link
Author

dumblob commented Mar 1, 2017

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

@38github
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants