Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by projectskillz

I would like to use japanese fonts but the font tool is not properly encoding the fonts.
Anybody know of any workarounds? Any plans to fix this?

1 decade ago by Arantor

There aren't really any direct workarounds, because of how the font system works (it's designed primarily for ASCII characters), and I don't see it being fixed any time soon either :(

I don't know how Japanese works that well, but the nearest thing you could do would be to map Japanese glyphs to ASCII-set characters and handle it that way (but that would mean doing it manually)

Or even creating the images you need with complete words/phrases in your favourite image tool.

1 decade ago by dominic

You could also try to use the canvas APIs own text drawing functions, instead of using bitmap fonts:
ig.system.context.fillStyle = '#f0f';
ig.system.context.fillText( 'test', x, y ); 

1 decade ago by projectskillz

@Arantor Thanks for the suggestion I might use that in some cases where I need a really customized text option.

@dominic Thanks I tried using the canvas APIs and it worked fine. Will use this as a solution for now.

If I had access to the font tool I would like to try to fix this someday because, I probably wont be the last person to ask about this but alas...
Page 1 of 1
« first « previous next › last »