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

[Bug]: Font used in ComboBox text area needs to be better drawn #353

Closed
Smurf-IV opened this issue Sep 15, 2021 · 4 comments
Closed

[Bug]: Font used in ComboBox text area needs to be better drawn #353

Smurf-IV opened this issue Sep 15, 2021 · 4 comments
Labels
area:ribbon All issues to do with the ribbon. bug Something isn't working need more info Needs more information to better understand the issue.

Comments

@Smurf-IV
Copy link
Member

In the following picture, Both the text and the content fonts are set to "Segeo 12"
But the Text font is poorly rendered:
image

This applies to the other drop types as well (numeric / domain)

@Smurf-IV Smurf-IV added the bug Something isn't working label Sep 15, 2021
@Smurf-IV Smurf-IV self-assigned this Sep 17, 2021
@Smurf-IV Smurf-IV added the under investigation This bug/issue is currently under investigation. label Sep 17, 2021
@Smurf-IV
Copy link
Member Author

Something is weird here.. I cannot get the examples to show the above artefact..
I wonder if improvement have been done since 2108.1 ?

Time to go back to the source and see what they have been doing ;-)

@Smurf-IV Smurf-IV added the area:ribbon All issues to do with the ribbon. label Sep 20, 2021
@Smurf-IV
Copy link
Member Author

Smurf-IV commented Sep 20, 2021

The above image is from a ComboBox embedded in a Ribbon, and there is no way of controlling the way the font is drawn (i.e. AntiAliassing etc.)

            miscCmbTheme.ComboBox.StateCommon.ComboBox.Content.Font =
                new Font(@"Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 0);
            miscCmbTheme.ComboBox.StateCommon.Item.Content.ShortText.Font =
                miscCmbTheme.ComboBox.StateCommon.ComboBox.Content.Font;
            // Hook into changes in the global palette
            ThemeManager.PropagateThemeSelector(miscCmbTheme.ComboBox);
            miscCmbTheme.Text = ThemeManager.ReturnPaletteModeManagerAsString(KryptonManager.GlobalPaletteMode);

@Smurf-IV
Copy link
Member Author

Hmm..
Unable to repo using the dev code base and the Ribbon Controls demo..
I wonder if it has been fixed with the latest nightly

@Smurf-IV Smurf-IV removed their assignment Apr 18, 2022
@Smurf-IV Smurf-IV removed the under investigation This bug/issue is currently under investigation. label Jun 26, 2022
@Smurf-IV Smurf-IV self-assigned this Aug 27, 2023
@Smurf-IV Smurf-IV added the under investigation This bug/issue is currently under investigation. label Aug 27, 2023
@Smurf-IV
Copy link
Member Author

Smurf-IV commented Aug 28, 2023

Still not able to repo

But I suspect this might have an impact:
#1109 (comment)

Because some of the code for drawing the ComboBox Items is using a TextRender

@Smurf-IV Smurf-IV added need more info Needs more information to better understand the issue. and removed under investigation This bug/issue is currently under investigation. labels Aug 28, 2023
@Smurf-IV Smurf-IV removed their assignment Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ribbon All issues to do with the ribbon. bug Something isn't working need more info Needs more information to better understand the issue.
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant