sudipshil9862 / fonts-compare

fonts rendering and comparing
GNU General Public License v2.0
5 stars 2 forks source link

current font is not highlighting when we open the font chooser for the first time #30

Closed sudipshil9862 closed 1 year ago

sudipshil9862 commented 1 year ago

In this video, we can see when we click on the font button for the first time (open the font chooser), current font is not highlighting. But if we click on font button for second time and onwards, current font is highlighting properly. Is it a upstream bug or a bug of my code ?

sudipshil9862 commented 1 year ago

issue 30.webm

sudipshil9862 commented 1 year ago

well, unfortunately no, no way to change the preview text through GtkFontDialog.

sudipshil9862 commented 1 year ago

in fedora 38, current font is not highlighted !!!

juhp commented 1 year ago

If we set the font explicitly first, does it help? Or do we already do that?

sudipshil9862 commented 1 year ago

in fedora38 and fedora rawhide (above gtk4.8.3), HIghlighting font feature is not available. But somehow in fedora37 (below gtk4.8.3), you'll find that font is highlighted when you open the button for the second time. I think we should not worry so much for fedora37.

Matthias Clasen said: this feature wasn't intentionally removed. we need scrolling apis in GtkListView for this, and they have been slow to land And he has no idea it would have been working before for beloq gtk4.8.3

I asked: Is there any way I can reproduce this feature in rawhide (maybe only for my project) He said: There are ways to work around the listview issue, but making scrolling work in the font dialog from the outside is unlikely to succeed

CLosing this issue for now. I will be happy to implement this feature again for rawhide if possible, and we can reopen this issue @juhp