Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Almanah Almanah
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 27
    • Issues 27
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • AlmanahAlmanah
  • Issues
  • #4
Closed
Open
Issue created Oct 18, 2019 by Rinat Ibragimov@i-rinat

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking