Open RyanLiDev opened 2 weeks ago
When the text is opaque, there is a white border.
FontFamily: Noto Sans OriginalText: Hello, Welcome Translation: नमस्ते, स्वागत छ
<StackPanel Spacing="8" Background="LightBlue"> <TextBlock FontFamily="/Assets/Fonts/NotoSans-Bold.ttf#Noto" FontSize="95" FontWeight="Bold" Foreground="White" Opacity="0.6" Text="नमस्ते, स्वागत छ" /> <TextBlock FontFamily="/Assets/Fonts/NotoSans-Bold.ttf#Noto" FontSize="95" FontWeight="Bold" Foreground="White" Opacity="1" Text="नमस्ते, स्वागत छ" /> <TextBlock FontFamily="/Assets/Fonts/NotoSans-Bold.ttf#Noto" FontSize="95" FontWeight="Bold" Foreground="Red" Opacity="0.6" Text="नमस्ते, स्वागत छ" /> <TextBlock FontFamily="/Assets/Fonts/NotoSans-Bold.ttf#Noto" FontSize="95" Foreground="White" FontWeight="Bold" Opacity="0.6" Text="Hello, welcome" /> </StackPanel>
It should display normally. sample from figma.com
11.2.0
Windows, Linux
The test found that it seemed to be caused by stroke, but TextBlock did not provide the relevant interface. Display exception:
Normal display:
Describe the bug
When the text is opaque, there is a white border.
To Reproduce
FontFamily: Noto Sans OriginalText: Hello, Welcome Translation: नमस्ते, स्वागत छ
Expected behavior
It should display normally. sample from figma.com
Avalonia version
11.2.0
OS
Windows, Linux
Additional context
The test found that it seemed to be caused by stroke, but TextBlock did not provide the relevant interface. Display exception:
Normal display: