You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The prerendered font use krkrfont export .ttf or .otf to kirikiri only .tft format font file. Then use Layer.font.mapPrerenderedFont("FILENAME") to use.
Use addFont.dll plugin to load .ttf.otf format font. Detail and usage see svn readme page.
The example to use addFont plugin in tjs. (KAG system)
// In Initialize.tjs Plugins.link place, put addFont.dll to plugins/ folderPlugins.link("addFont.dll");// put font file under data/System.addFont("SourceHanSansCN-Normal.otf",true);varlayer=newLayer(kag,kag.fore.base);with(layer){.loadImages("test.png");.setPos(0,0);.setSizeToImageSize();.font.face="思源黑体 CN Normal";.font.height="24";.drawText(0,0,"中文显示测试",0x000000);.visible=true;}