-
Notifications
You must be signed in to change notification settings - Fork 39
Support for letterSpacing possible? #39
Comments
I should have a bit of extra time tomorrow, so I'll try to take a look. |
Thanks for looking into it! |
Is this for a bitmap font? If not, it's not possible since text objects are backed by a canvas, which doesn't support character spacing. (See pixijs/pixijs#1748.) The bahvior of character spacing at the edges between styles is also a bit interesting. For example, suppose |
Matthew, It's for outline fonts, not bitmap. Yeah, I was thinking probably not. No worries, you can close it. Figured I'd check with the experts though. :) |
I'll leave this open, since I might also be able to make it work for non-bitmaps by simply drawing one character at a time - which would probably be a performance hit and might cause some fonts to do strange things, but would only kick in if Of course, we'd still need to decide on |
Never mind about bitmap fonts - I didn't realize that there was a separate class for those in Pixi. We'd need to add any support for bitmap fonts before we could think of adding this feature for them, and I currently don't see any need to unless there's a particular interest in bitmap fonts. Anyway, I'll see if drawing one character at a time works for non-bitmaps. |
PR filed: #40. |
OMG wow, that was fast! Thank you so much! |
@bluepichu What's the value of |
Yes. |
Hey guys,
I was wondering if there's the possibility of supporting the letterSpacing property of the multistyle-text object? I imagine it may be fairly complicated since the width needs to be calculated by each individual tag and this may affect word wrap and its size.
Anyways, figured I'd put that out there.
Thanks again for taking care of the updating with the setTagStyle method, that really is useful!
Arron
The text was updated successfully, but these errors were encountered: