2014-02-12 82 views

回答

0

我最近想減少我的行間距(應用程序範圍內,而不是一個標籤),並寫了我的工作在這裏:http://devdiary.arcticempire.ca/2014/05/02/dev-diary-31-cocos2d-x-ttf-line-spacing/

總之...讓蘋果字體工具套件,然後

ftxdumperfuser -t hhea -A d font.ttf # export font header to XML 
[Edit XML - set lineGap to 0 and adjust ascender and descender as you like. 
Test with all characters you'll want to print] 
ftxdumperfuser -t hhea -A f font.ttf # import XML to font header 

如果你使用的是Android,你應該改變「頂」到「上升」和「底」到「在Cocos2dxBitmap.java的所有情況下都是「下降」。