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

Unicode text rendering is cut mid way #17795

Open
adirh3 opened this issue Dec 17, 2024 · 1 comment
Open

Unicode text rendering is cut mid way #17795

adirh3 opened this issue Dec 17, 2024 · 1 comment

Comments

@adirh3
Copy link
Contributor

adirh3 commented Dec 17, 2024

Describe the bug

Since recent changes (something from 26.11 to now), icon characters (Tested with Segoe MDL2 Assets) do not render properly.
image
image

To Reproduce

Easy way to reproduce with Control Catalog is to replace in ComboBox.xaml -

  <PathIcon x:Name="DropDownGlyph"
                      Grid.Column="1"
                      UseLayoutRounding="False"
                      IsHitTestVisible="False"
                      Height="12"
                      Width="12"
                      Margin="0,0,10,0"
                      HorizontalAlignment="Right"
                      VerticalAlignment="Center"
                      Foreground="{DynamicResource ComboBoxDropDownGlyphForeground}"
                      Data="M1939 486L2029 576L1024 1581L19 576L109 486L1024 1401L1939 486Z"/>

with

  <TextBlock x:Name="DropDownGlyph"
                      Grid.Column="1"
                      UseLayoutRounding="False"
                      IsHitTestVisible="False"
                      Height="12"
                      Width="12"
                      Margin="0,0,10,0"
                      HorizontalAlignment="Right"
                      VerticalAlignment="Center"
                      FontFamily="Segoe MDL2 Assets"
                      Foreground="{DynamicResource ComboBoxDropDownGlyphForeground}"
                      Text="&#xE70D;"/>

Expected behavior

Unicode icons to display properly.

Avalonia version

master

OS

Windows

Additional context

No response

@Gillibald
Copy link
Contributor

I can't see any issue here. You are explicitly limiting the width of TextBlock to 12 and the glyph is wider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants