Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bold font settings not applying to Mate Panel. #503

Open
ghost opened this issue Dec 4, 2016 · 7 comments
Open

Bold font settings not applying to Mate Panel. #503

ghost opened this issue Dec 4, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 4, 2016

When bold font is chosen in Apperance > Fonts through Mate 1.16 Control Center, the bold font will not apply to the Mate Panel.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39743960-bold-font-settings-not-applying-to-mate-panel?utm_campaign=plugin&utm_content=tracker%2F314880&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F314880&utm_medium=issues&utm_source=github).
@lukefromdc
Copy link
Member

What theme are you using? A theme can specify a font-weight (normal, bold etc) for this (or any other) text, and in my own UbuntuStudio_Legacy theme I do exactly that to force a bold font on panel text. If your theme is setting the font-weight for mate-panel, that overrides system default fonts, which is what you are setting in the control center.

@madjxatw
Copy link

There seems to be nothing with the theme being used. I switched among several themes but still failed to change the font style on panels. Not only bold style cannot be applied but also other like italic.
Another issue is the font of panel applet label doesn't look like as expected as the font hinting configuration sets. For hintslight, the text on panel looks too thin compared to those on desktop, caja, ...
mate-panel-font

@lukefromdc
Copy link
Member

First of all, the font used in the panel is the "application font" and font sizes in the panel will change when that is changed. Changing the font-weight is indeed not applied, I tested the Menta theme which unlike my own only forces "normal" font-weight in panel menuitems, and does not specify a font-weight for the panel. Thus the panel responds to application font size but not application font weight.

A bold font can be directly specified in the theme, my own theme does exactly that. If no theme you have installed changes the panel font, that's because none of them are specifying it. My theme does in rather the way Cinnamon does, and uses thiscode to set the main panel font.

.mate-panel-menu-bar  label, .gnome-panel-menu-bar  label{
	font-weight: bold;
}

.mate-panel-menu-bar menu label, .gnome-panel-menu-bar menu label{
	font-weight: normal;
}

The second stanza keeps the bold font off the panel menus, which otherwise would inherit it from the panel.

This overrides any font set by the system. I also use different size fonts in the menu, and specify them as % so that they can change size with the system font. The % specification is the only one I've found that works with both GTK 3.20 and GTK 3.22 with no changes.

@madjxatw
Copy link

I don't really need bold font. I actually set regular weight to both Application Font and Desktop Font, But their rendering look different, the font on the panel is thin and light. Any simple way to fix this?
By the way I remember that previous version (should be 1.14) is able to change the panel font weight by just setting in Appearance -> Fonts -> Application Fonts.

@lukefromdc
Copy link
Member

I don't know enough about font handling in general to address antialiasing etc, but GTK 3 is supposed to support setting different font-weights by number. I have not played with that, but you could try it by editing the theme files. MATE 1.14 built by default with GTK2 while 1.18 and later are GTK3-only, lots of differences were necessary to get GTK3 to work.

@infuerano
Copy link

This particular issue not letting me update into latest update. For me, the regular font in the status bar looks ugly. But I would ask if I can't even change the font from appearance setting then why it is there?

@raveit65
Copy link
Member

Does the issue still exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants