Answer the question
In order to leave comments, you need to log in
How to customize text rendering in WPF?
Hello. I made a layout for a WPF application in Photoshop, and I ran into a problem when transferring text from the layout. Text looks different on the layout and in the app.
This is how it looks on the layout:
And this is how it looks in the application:
I searched for solutions on the Internet and came across TextModes, but they do not work. The text still looks flattened and stretched across the width. This has a significant effect on the overall picture of the application.
<TextBlock Text="Управление"
Foreground="#979eb1"
FontSize="17"
HorizontalAlignment="Center"
Margin="0 10 0 0"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="ClearType"
TextOptions.TextHintingMode="Auto"
FontFamily="{StaticResource Montserrat-Regular}"
FontWeight="Regular"
/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question