Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Extended character sets and multiple ways of loading fonts

$
0
0

@metapuff wrote:

I have a very basic question about loading fonts. I would like to load in some text with chinese characters. One way to do this is with

ofTrueTypeFontSettings settings("/path/to/font",72);
settings.addRanges(ofAlphabet::Chinese);
font.load(settings);

This lets me render chinese text. However, I also need to load the contours for the font, via makeContours. I can do this with

font.load("/path/to/font",72,false,true,true);

where the last “true” specifies that the font contours will be made. However, when I do the latter, I am unable to render chinese characters! How should I load the font so as to both get the extended character set and make the font contours?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929