Page 1 of 1

XOffset aligment

Posted: Mon Jul 13, 2009 13:37
by masch
Hi,

I created a StaticText. Within it, I put some text obtained from a custom font. When i cutting the letters from the sources, i put the XOffset = -10. When the StaticText renderizes the font, the first font of all it's showing clipped -in other cases it's showing not centered- (due to XOffset). How can i work around this problem?

Thanks

Re: XOffset aligment

Posted: Tue Jul 14, 2009 08:28
by CrazyEddie
Well the obvious solution is to not set the images XOffset values to -10, but I'm guessing there must be some reason why you need the XOffset of the images to be set to -10?

CE.

Re: XOffset aligment

Posted: Tue Jul 14, 2009 12:16
by masch
Hi,

Yes I need the fonts are overlapped to achieve the effect I want to give. These fons have a glow, and I do not want to be space between them.

thx

Re: XOffset aligment

Posted: Tue Jul 14, 2009 18:26
by CrazyEddie
You might want to investigate the attribute 'HorzAdvance' which is used in the Font <Mapping> element to specify the amount to move the 'pen' before drawing the next glyph.

If you are already using the HorzAdvance, and are trying to combine it with the XOffset in the Imageset, the only thing I can suggest is to prefix a couple of spaces to the string before you set it to the StaticText (yeah, that's a bit of a hack).

CE.