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

Settings: include styleName in font; fix #2567 #2568

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

ctrlaltca
Copy link
Contributor

KviStringConversion: is used to convert a font from/to a string for settings storage.
This PR adds "styleName" to the font properties saved in the settings file.
This property is needed by QFontDialog to show the correct font style (eg. italic, bold, etc) for certain fonts.
One example of this font is MS' Verdana, that includes localized version for the style names.

@ctrlaltca ctrlaltca mentioned this pull request Nov 22, 2023
@DarthGandalf
Copy link
Member

This does help... as long as user doesn't change the system locale. Because the localized string "Курсив"/"Italic" is saved in settings. When I flip between different LC_ALL, I see the same behavior as without this fix.

I guess that's still better than what we have now :(

@ctrlaltca
Copy link
Contributor Author

Correct, as long as the font uses localized style names there's no way we can support switching locales.

@DarthGandalf DarthGandalf merged commit 00074d1 into kvirc:master Nov 23, 2023
2 checks passed
@ctrlaltca ctrlaltca deleted the fix_2567 branch November 30, 2023 15:11
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

Successfully merging this pull request may close these issues.

2 participants