Hello. Still struggling with the text positioning in the UltraFormattedLinkLabel control.
The baseline of the font changes as the font size changes. For example, If I set the Value property of the control to this:
<p style="text-align:Center;"><span style="font-family:Calibri;"><span style="font-size:6pt;">x</span><span style="font-size:7pt;">x</span><span style="font-size:8pt;">x</span><span style="font-size:9pt;">x</span><span style="font-size:10pt;">xx<span style="font-size:11pt;">x<span style="font-size:12pt;">x<span style="font-size:14pt;">x<span style="font-size:16pt;">x<span style="font-size:18pt;">x<span style="font-size:20pt;">xX<span style="font-size:22pt;">X<span style="font-size:24pt;">X<span style="font-size:26pt;">X<span style="font-size:28pt;">X<span style="font-size:36pt;">X<span style="font-size:48pt;">X<span style="font-size:72pt;">X</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></p>
The baseline of the text moves down from left to right as the font size increases. Is there any way to get the baseline to stay consistent, kind of like what happens in Microsoft Word?
Thanks,
Sean.
It's not an area I'm particularly expert in but I have found this quote from another thread:
"GDI text rendering tends to be slower than GDIPlus. But it's also much more reliable in terms of measuring text..."
Andy.
Wow, wish I would have tried that myself. Some fonts are right on now! Much, much better. Are there any drawbacks that you know of in not using GDIPlus?
Hi,
This is not really a fix but a bit of a workaround. I noticed if you change the TextRenderingMode to GDI instead of GDIPlus (the default) it looks a lot better, but still not perfect.
Cheers,