Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
Baseline of text in UltraFormattedLinkLabel
posted

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.

Parents
  • 990
    Verified Answer
    posted

    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,

    Andy.

Reply Children