-
Notifications
You must be signed in to change notification settings - Fork 692
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
TextBox: Wrong font stretch when setting font family #808
Comments
Any updates on this? |
Ping ping... @chrisglein |
I think this is something we can only fix with WinUI 3.0 since settting the font stretch on the content presenting ScrollViewer has no effect, and changing the content presenting ScrollViewer to a ContentPresenter and setting thats FontStretch does not work either. |
Confirmed. Neither TextBox.FontStretch or RichEditBox.FontStretch are not setting this with RichEdit. This is a bug, and to fix it we'd need to do it in WinUI 3.0. For RichEditBox as a workaround the app can set it in code through the document API on CharacterFormat using the ITextCharacterFormat API. |
Still broken in WinUI 3.0 Preview 2, @chrisglein @chingucoding @jevansaks |
Still broken after releasing WindowsAppSdk. Confirmed with TextBox/TextBlock + Roboto font. |
Almost 3 years later and this is still ignored 😔 |
@jevansaks @chrisglein Any updates on this issue? |
I'd really appreciate if this get fixed soon.😢 |
@jevansaks @chrisglein Any updates on this issue? |
Bumping this; I also don't understand why you would need WinUI 3 to fix it. It's an internal platform issue... |
Describe the bug
When you set a font family via
FontFamily
in aTextBox
it may use the wrong font stretch by default, in case the font family contains multiple stretches.This is the case for Arial, Bahnschrift and others.
There is no way to select a different font stretch in a
TextBox
as theFontStretch
property seems to be completely ignored.The same problem also exists for the
RichEditBox
.Steps to reproduce the bug
Expected behavior
It is expected that the rendered text from the
TextBlock
looks the same as from theTextBox
. Instead Arial Narrow is used and theFontStretch
property is completely ignored.Screenshots
Version Info
OS: Win10 Pro x64 (17763)
SDK: Reproduced this with 17763, 17134, 16299 and 15063.
The text was updated successfully, but these errors were encountered: