-----Original Message-----
From: Jim Sager
Sent: 11/16/2009 8:54:01 PM
To: [email protected]
Subject: [CsMain] What is the bare minimum to write a line of text?
Here is my code.

In initialization:

csRef<iFont> font;
iFontServer *fs;
fs=g2d->GetFontServer();
font=fs->LoadFont(CSFONT_LARGE,10);


Then where I am drawing 2d images:

csString text("test");
g2d->Write(font,0,700,255,-1,text,CS_WRITE_BASELINE); //This line crashes the 
program

I have a really cool project I'm writing.  It is basically a teleconferancing 
program to allow people to play old school pencil and paper RPGS with a live 
Game Master.  I can probably finish it in just a few months, but text is 
something I've never done before in CrystalSpace, so its hanging me up.



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: 
mailto:[email protected]?subject=unsubscribe

Reply via email to