nico font tool
1.0.0
글꼴을 NICO 게임 프레임 워크 형식 글꼴로 변환하는 도구.
파이썬 버전도 있습니다 : Nico-Font-Tool.python.
nimble install nico_font_tool
예를 들어:
nicofont ./assets/fonts/quan/quan.ttf ./examples/assets/fonts/demo quan --fontSize=8
모든 매개 변수 :
nicofont {fontFilePath} {outputsDir} {outputsName}
options:
-fs, --fontSize
Glyph rasterize size when using OpenType font.
-gox, --glyphOffsetX
Glyph offset x.
-goy, --glyphOffsetY
Glyph offset y.
-gaw, --glyphAdjustWidth
Glyph adjust width.
-gah, --glyphAdjustHeight
Glyph adjust height.
-m, --mode
Png sheet color mode, can be 'palette' or 'rgba', default is 'palette'.
참조 : gen_fonts
import nico_font_tool
let (sheetData, alphabet) = createSheet ( " your/font/file/path.ttf " , 8 )
savePalettePng (sheetData, " outputs/palette/dir " , " outputsName " )
saveDatFile (alphabet, " outputs/palette/dir " , " outputsName " )
saveRgbaPng (sheetData, " outputs/rgba/dir " , " outputsName " )
saveDatFile (alphabet, " outputs/rgba/dir " , " outputsName " )MIT 라이센스에 따라.