node-openvg-canvas icon indicating copy to clipboard operation
node-openvg-canvas copied to clipboard

International Fonts

Open chandra50 opened this issue 10 years ago • 4 comments

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

chandra50 avatar Feb 05 '14 02:02 chandra50

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

T4d3o avatar Jun 23 '14 17:06 T4d3o

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

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

eendeego avatar Jun 23 '14 22:06 eendeego

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 :)

T4d3o avatar Jun 24 '14 15:06 T4d3o

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.

pawelduda avatar Jan 08 '15 16:01 pawelduda