FOnline Development > Share Your Work
Font Utilities - FOFNT Maker/Text Splitter [PHOTOSHOP]
JovankaB:
One more fix for TextSplit.jsx:
There is a bug in line 32:
--- Code: ---newLayer.antiAliasMethod = AntiAlias.NONE;
--- End code ---
It doesn't work, because antiAliasMethod isn't property of layer object. It should be:
--- Code: ---newLayer.textItem.antiAliasMethod = AntiAlias.NONE;
--- End code ---
Although, I would suggest to copy anti-aliasing and font from the source layer instead of setting them in the script:
--- Code: --- newLayer.textItem.antiAliasMethod = layer.textItem.antiAliasMethod
newLayer.textItem.font = layer.textItem.font;
--- End code ---
I think it especially makes sense for the font property.
phatskat:
Well dang - good eye! I had a feeling I had missed something but for I just couldn't see it. Fixes pushed up again - thanks
Wipe:
--- Quote from: https://github.com/phatsk/FOTools/blob/master/README.md ---I have no idea what "YAdvance" does
--- End quote ---
I'm not very familiar with fonts code, but it looks like extra space used when client needs info about letter/line height (for example when calling GetTextInfo() script function). When building font, client calculates maximum height by scanning each Letter->Height property; later, when drawing, it "manually" adds YAdvance value to that.
If i guessed right (didn't check), you should see the difference in msgbox after changing Default.fofnt->YAdvance to some silly value like 20 or so.
Navigation
[0] Message Index
[*] Previous page
Go to full version