New font interface

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.

The drawText call might not actually draw all the glyphs, if some of them are beyond the clip region of the graphics object…

i think my font serializator should still work

http://edoapp.googlecode.com/svn/trunk/Tools/Fserialize/

Thx.

It’s working now.