GNOME Bugzilla – Bug 697026
font size is too small by default and don't match system font size
Last modified: 2013-04-02 15:18:40 UTC
I'm using Devhelp built from git master on Ubuntu 13.04. I have WebKitGTK 1.11.92. When I start Devhelp, text is tiny and hard to read. I have Preferences->Fonts->Use system fonts set to true, but text appears much smaller than in other GNOME applications. I need to use the Larger Text menu item to make it big enough to read comfortably. I'll attach a screenshot.
Created attachment 240296 [details] screenshot
hmm, WebKit2 uses font sizes in pixels instead of points. I added functions to convert font sizes from pixels to points when ported devhelp to WebKit2, but it seems that code was lost during the GSettings migration. I'll look at it.
Created attachment 240367 [details] [review] Patch
Review of attachment 240367 [details] [review]: Looks good to me... but wasn't the issue found in Webkit 1.11.92 (i.e. not Webkit2)? ::: src/dh-util.c @@ +262,3 @@ +dh_util_convert_font_size_to_pixels (GtkWidget *widget, + gdouble font_size) +{ I would remove the 'dh_util' prefix in the static method.
(In reply to comment #4) > Review of attachment 240367 [details] [review]: > > Looks good to me... but wasn't the issue found in Webkit 1.11.92 (i.e. not > Webkit2)? WebKit2 is built by default in 1.11.92, and used by default in devhelp since 3.7.x IIRC. > ::: src/dh-util.c > @@ +262,3 @@ > +dh_util_convert_font_size_to_pixels (GtkWidget *widget, > + gdouble font_size) > +{ > > I would remove the 'dh_util' prefix in the static method. Ok.
(In reply to comment #5) > (In reply to comment #4) > > Review of attachment 240367 [details] [review] [details]: > > > > Looks good to me... but wasn't the issue found in Webkit 1.11.92 (i.e. not > > Webkit2)? > > WebKit2 is built by default in 1.11.92, and used by default in devhelp since > 3.7.x IIRC. > Ah, ok. > > ::: src/dh-util.c > > @@ +262,3 @@ > > +dh_util_convert_font_size_to_pixels (GtkWidget *widget, > > + gdouble font_size) > > +{ > > > > I would remove the 'dh_util' prefix in the static method. > > Ok. Just merge it when you have it.
Comment on attachment 240367 [details] [review] Patch Pushed.