-
-
Notifications
You must be signed in to change notification settings - Fork 558
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
Comments
i have noticed this to - also. i'm not able to assign other color to the underline. |
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. |
@MarcinZiabek in my case - i didnt specify decorationcolor of my underline, when i did that the line below was correctly displayed (color) /thanks |
Tahoma, Arial & TimesNewRoman were the fonts I used, and for all these 3 I have the issue |
What runtime and operating system are you using? |
i'm using Windows 11. Also as mentioned, if i go back to 2023.12.6, the underline is working fine. |
Hi, is there any update on this? |
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 Could you please test the new version? Thank you for the collaboration! |
@MarcinZiabek 我的需求,可能比上面这些要稍复杂一些。希望可通过Underline(true)方法增加参数,或者使用另外的方法,可控制下画线与字符行的距离。至少,下划线与字符行的距离可再增大,可起到“修饰”作用,使整体状态可更美观,而不仅仅是“下划线”。 |
@199621616 Thank you for your suggestion. Each font declares the appropriate underline position and thickness, which are chosen by its author for visual clarity and consistency. The library currently relies on these default values and does not offer a way to modify them. While providing this option could be an interesting feature, it is not on the current roadmap at this time. |
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.
If I go back to 2023.12.6, the Underline is working correctly with correct thickness
Could you please help in fixing this
The text was updated successfully, but these errors were encountered: