-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Text Layout issue, missing last letter #13298
Comments
Are you using any display scaling on your OS? I'm fairly certain these types of issues are tied to 125%+ display scaling on Windows. |
I am using 250% but I have the exact same issue with 100%. You cannot reproduce? |
Is it the FluentTheme? Which Font? Do you use the inter font? Side node: today I guess a font measure fix was merged. Can you probably test your case against nightly? Not sure if it is related to this issue. See: #13268 |
The settings in the capture: inter 13, with no layout rounding. I just don't remember which Inter font, the one from Avalonia or one installed on my system as they can be a little different. |
The font should not matter. This is some measure / arrange issue with unrounded text measurement values. |
Sure it is just for you to reproduce the issue, as on a full page of controls, this is the only one that is missing a char, so not an obvious bug. |
I am experiencing basically the same issue in my apps. |
yeah, a minimal sample to reproduce would be ❤️ . Seems like a hard to catch issue though. I guess it must be some rounding issue somewhere. |
I don‘t know if this helps: I can see this phenomenon sometimes in an autosize column of a Grid. |
@Developer-Alexander yeah then it could be related to grid layout, not text layout 🤔 . Maybe Auto should always round up. |
With this demo app I was able to catch the issue for a Checkbox with Note: The app uses embedded Roboto Mono Light. |
Note that this is again very similar to a reported issue in the previews: It was briefly fixed and then came back. Most recently it was mentioned here: If we have a reliable example that everyone can see now that's great!
If it's the same issue I've been seeing in ToolTip it doesn't appear related to Grid. The ToolTip doesn't seem to have a Grid in the visual tree when displaying text. |
I can confirm that the phenomenon also occurs very frequently with ToolTips. The thing with the autosize columns of a grid was probably not relevant to the problem. |
I can't reproduce the issue with the sample you posted above |
A pity! I can reproduce it with this example at both 100% scaling and 175%. |
@Gillibald and @timunie Here is a repro sample with my Inter font embedded in resources as it does not happen with all versions of the Inter font, size 13 and use layout rounding to false. Please tell me if you can reproduce with this repro (whatever the Windows zoom). Thanks a lot! |
@dbriard I can reproduce using your sample |
Works if I remove the Padding btw. |
With the following configuration, the x of CheckBox is missing.
It must be a precision issue as if I change one of the 3 properties below, the x appear correctly.
For example:
![image](https://private-user-images.githubusercontent.com/3595443/275989569-1235e755-a98d-4391-bcc1-96e65100f87c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MjUwNzIsIm5iZiI6MTczOTkyNDc3MiwicGF0aCI6Ii8zNTk1NDQzLzI3NTk4OTU2OS0xMjM1ZTc1NS1hOThkLTQzOTEtYmNjMS05NmU2NTEwMGY4N2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTlUMDAyNjEyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzljMWI3N2MzMDQ0MzE1YmQyY2NhZjBhNGIzMmQwMGI5MTg2YjFhYTk3NzcxYzMwYmM5OWEwYmM0NzBmMzEyMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.GXhrg2CTPgEEbQzV7_ull-jB8whPKq8BWSl6an7gl4g)
You can test with 11.0.5 but the bug was not new to this version.
The text was updated successfully, but these errors were encountered: