dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.98k stars 1.72k forks source link

Maui Label line spacing between 1st and 2nd lines is not the same as line spacing between subsequent lines #24171

Open vsfeedback opened 1 month ago

vsfeedback commented 1 month ago

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice] As you can see in attached screenshot the line spacing between 1st and 2nd line is not the same as the line spacing between subsequent lines.

It bothers my designer eye.

Maui Label Linespacing.png


Original Comments

Feedback Bot on 7/30/2024, 11:46 PM:

(private comment, text removed)


Original Solutions

(no solutions)

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ninachen03 commented 1 month ago

I try to repro this issue, but it works fine on my side, I think there should be more here. So could you provide a sample project for us to investigate it further? Looking forward to your reply! image

KurtOplev commented 4 weeks ago

Hello

I have tested further and found, that the issue is caused by the font.

There is no problem when using the default font Open Sans Regular I use a Mundial Light font. I have tried all the Mundial fonts and all of them have the problem.

It seems, that the problem occurs when using a LineHeight different from 1.0.

Please see repro here: https://github.com/KurtOplev/LineSpacing I have tested on emulator Pixel 7 Pro (Android 14.0 - API 34) And I have tested on Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.12.0 Preview 1.0

I don't know whether this is a Maui problem or a Tipotype problem.

So if you think it is a Tipotype problem please let me know.

Best regards, Kurt Pedersen

ninachen03 commented 4 weeks ago

@KurtOplev Unfortunately, I can't open your Repo. A 404 error occurred, it said "This is not web page you are looking for" Could you provide it again?

KurtOplev commented 3 weeks ago

Hello

OK, I am new to GitHub.

I have changed the directory to Public instead of Private.

Is this the way I should share GitHub with you?

I could not find a way to create a share link.

https://github.com/KurtOplev/LineSpacing KurtOplev/LineSpacing: Sample Line Spacing (github.com)

Best regards, Kurt Pedersen

Fra: ninachen03 @.> Sendt: 16. august 2024 04:28 Til: dotnet/maui @.> Cc: KurtOplev @.>; Mention @.> Emne: Re: [dotnet/maui] Maui Label line spacing between 1st and 2nd lines is not the same as line spacing between subsequent lines (Issue #24171)

@KurtOplev https://github.com/KurtOplev Unfortunately, I can't open your Repo. A 404 error occurred, it said "This is not web page you are looking for" Could you provide it again?

— Reply to this email directly, view it on GitHub https://github.com/dotnet/maui/issues/24171#issuecomment-2292618635 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQ26LKMHZLKQEXATXVTYULZRVPSHAVCNFSM6AAAAABMNA2XKWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJSGYYTQNRTGU . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ANQ26LMTMHRXCNBVM34QS4DZRVPSHA5CNFSM6AAAAABMNA2XKWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUIU2KYW.gif Message ID: @. @.> >

ninachen03 commented 3 weeks ago

I can repro this issue at android platform on the latest 17.12.0 Preview 1.0(8.0.80 & 8.0.3) &17.11.0 (7.0.101)

image