Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • thank you, but can I change the font only for the "dock" element? I don't want to change other fonts that fbpanel uses. Commented Aug 13, 2023 at 11:36
  • 1
    You'll probably want to change class "*" style "custom-font" to some specific widget class that the dock component uses. However, it may use some generic widget class for all the components, so it won't be possible to do what you want. In any case, you'll need to dive deep into fbpanel's source code or use some gtk inspection tools/debugger to find out :/ Commented Aug 13, 2023 at 12:14
  • 1
    From my initial research, I could not find what widget class you need. I'll let you know if I find it Commented Aug 13, 2023 at 12:18
  • thank you. I am alredy compiling my own fbpanel with some additional patches. So could I hard code the font size in the source code, but only for that dock element ? Commented Aug 13, 2023 at 13:36
  • It would be something like GtkStyle *current_style = gtk_widget_get_style(dock_widget) and then font_desc = pango_font_description_from_string("Sans 10") Though it would be a challenge to find this "dock_widget" or something like that in the code Commented Aug 13, 2023 at 13:42