eendeego / node-openvg-canvas

Canvas implementation on top of node-openvg
179 stars 25 forks source link

International Fonts #13

Open chandra50 opened 10 years ago

chandra50 commented 10 years ago

International fonts (unicode) does not display with node-openvg-canvas. Any help will be appreciated.

T4d3o commented 10 years ago

Hello, I need to represent the symbol € but not how to do it ... this bug has something to do?

eendeego commented 10 years ago

Hi, currently node-openvg-canvas only supports the first 256 unicode characters.

Any help on expanding this in an efficient way would be appreciated.

T4d3o commented 10 years ago

My level is far to help. I managed to load the symbol repeating a part of the function loadFont ... and by passing the value cc = 8364

Thanks for the help :)

pawelduda commented 9 years ago

T4d3o's workaround is correct. I needed support for Polish characters so I simply edited those variables in file: /lib/text/loading.js

var MAX_FONT_PATH = 500; var MAX_PRELOADED_CHARACTER = 500;

Needless to say, this increased font load times significantly and with suggested value "8364" I gave up after waiting 2 minutes for the font file to load.