Open smfukaya opened 2 months ago
@smfukaya I don't the background of underline sickness, but I see "50" is hardcoded in FS code:
Also, I see that FS can read this number from the font definition (*.ttf files).
Hi @asolntsev ,
Thank you for your quick reply. The problem is that, at runtime, the default thickness value is being overridden by Liberation Sans 150 value for thickness.
FontForge: Liberation Sans 2.00.5
FontForge: Liberation Sans 2.1.5
Best Regards, Sergio
Hi,
Flying Saucer 9.7.2 is producing a very thick underline text decoration from an HTML with a "underline" element (
<u></u>
) using Liberation Sans (it has a underline thickness of 150 — tested with 2.00.5 and 2.1.5 that I built myself).I compared it to Open HTML to PDF 1.0.10 and found out that it hard codes the underline thickness to 50 in order to produce a more pleasant decoration.
Could you please confirm if the Flying Saucer behavior is expected and if so could you advise me on any workaround.
Best regards, Sergio