Hi all !
Trying (un sucessfully ) to dump a font to binary file with the new CustomTypeface API.
What i’am doing wrong ?
String string("0123456789=:;()+-_/., abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
Font euro6("Eurostile",6,Font::plain);
g.setFont(euro6);
g.drawSingleLineText(string,0,0);
Typeface* tfeuro6 = euro6.getTypeface();
CustomTypeface ctfeuro6;
ctfeuro6.addGlyphsFromOtherTypeface(*tfeuro6,0,string.length());
File feuro6("~/eurostile6.dump");
FileOutputStream foseuro6(feuro6);
ctfeuro6.writeToStream(foseuro6);
foseuro6.flush();
Thx.
Denis.