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

Can not change legend fonts in print composer #15224

Closed
qgib opened this issue May 31, 2012 · 5 comments
Closed

Can not change legend fonts in print composer #15224

qgib opened this issue May 31, 2012 · 5 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented May 31, 2012

Author Name: rcline - (rcline -)
Original Redmine Issue: 5692
Affected QGIS version: master


After adding a vector legend in print composer, I am not able to change the font for Title, Group, Layer, or Item. Any specified font size is changed to 14 and it does not change the font type from the default. In print composer, I am able to change fonts for labels, scale bars and attribute tables. Legend fonts can be changed in 1.7.4, therefore this is a regression.

Besides the current master, this occurs in an early March 1.9 build from KyngChaos. It does not occur in January build 1.9.90-Alpha 8ccaef7 from KyngChaos.

@qgib
Copy link
Contributor Author

qgib commented May 31, 2012

Author Name: Nathan Woodrow (@NathanW2)


Can't reproduce here on Linux Mint 10 or Windows.

Can someone else try this on OS X and see if something is up.

@qgib
Copy link
Contributor Author

qgib commented Jun 1, 2012

Author Name: Kenton Ngo (Kenton Ngo)


I have also seen this problem on OS X using the KyngChaos build.

@qgib
Copy link
Contributor Author

qgib commented Jun 1, 2012

Author Name: Jürgen Fischer (@jef-n)


Does https://gist.github.com/2854257 help?

@qgib
Copy link
Contributor Author

qgib commented Jun 1, 2012

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "112557134e457834b0dbdfa0ceb0e0bf5e21e680".


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Oct 3, 2012

Author Name: Larry Shaffer (Larry Shaffer)


Turned out the culprit was the Qt non-Mac-native font selection dialog.

When a font in a Qt stylesheet is applied at the QGIS app level, any non-native Qt font selection dialog (on Mac at least, maybe other platforms) that uses the app, or one of its children, as a parent will refuse to select any font but the one defined in the stylesheet.

The composer legend item, while showing correct fonts on composer opening, could not have its fonts adjusted; or worse, the legend was unexpectedly changed when a new font was selected, but substituted with the app font by the dialog.

Corrected across the app (for Mac) in commit d8c7c15

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 24, 2019
@qgib qgib added this to the Version 1.8.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant