Font size is too small in text view
Recently updated to 0.12.0 (hit Debian testing today), and found that text size in the main text view is too small.
As far as I understand, Almanah takes "document-font-name" property from settings at "org.gnome.desktop.interface" and makes a CSS piece from it. Like that:
css_font = g_strdup_printf (".almanah-mw-entry-view { font: %s; }", font_name);
I use a default value: "Cantarell 11". But it's in Pango font description format, and doesn't really fit CSS format. I believe that is parsed as 11 pixels. And that's why the font is so small.
If I change "document-font-name" to "11pt Cantarell", a more CSS-like string, font size becomes readable. Also the warning:
(almanah:29685): Gtk-WARNING **: 20:25:43.051: Theme parsing error: <data>:1:45: Using Pango syntax for the font: style property is deprecated; please use CSS syntax
disappears.
I don't know if there is a good way to convert Pango descriptions to CSS. At least I haven't found any. Also, I found pango_font_description_to_css()
in GTK 3 sources, which apparently does the translations. But that function is not a part of API, and cannot be called.