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

Underline is coming over the text #888

Open
KingJS416 opened this issue May 10, 2024 · 8 comments
Open

Underline is coming over the text #888

KingJS416 opened this issue May 10, 2024 · 8 comments

Comments

@KingJS416
Copy link

In the latest version 2024.3.3 & 2024.3.4, when using the Underline getting the line bottom close to the text and it seems like the underline is bolded.

new

If I go back to 2023.12.6, the Underline is working correctly with correct thickness

oldversion

Could you please help in fixing this

@screwyourshelf
Copy link

i have noticed this to - also. i'm not able to assign other color to the underline.

@MarcinZiabek
Copy link
Member

Would you please share what font you are using? Specific fonts do not contain information regarding underline decoration position and thickness. Legacy QuestPDF attempted to use a reasonable default configuration. The new text-rendering algorithm, based on Skia SkParagraph (the same one used in Flutter), is more strict in following various standards. I am happy to investigate though what could be done.

@screwyourshelf
Copy link

screwyourshelf commented May 11, 2024

@MarcinZiabek in my case - i didnt specify decorationcolor of my underline, when i did that the line below was correctly displayed (color) /thanks

@KingJS416
Copy link
Author

Tahoma, Arial & TimesNewRoman were the fonts I used, and for all these 3 I have the issue

@MarcinZiabek
Copy link
Member

What runtime and operating system are you using?

@KingJS416
Copy link
Author

i'm using Windows 11.

Also as mentioned, if i go back to 2023.12.6, the underline is working fine.

@KingJS416
Copy link
Author

Hi, is there any update on this?

@MarcinZiabek
Copy link
Member

Okay, it was much simpler than I thought. All I needed was a fresh look at the problem. It turns out that the library used double underline thickness by default. Starting from the 2024.3.9 release, everything should be as expected.

Could you please test the new version? Thank you for the collaboration!

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

No branches or pull requests

3 participants