For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

2D Text

Anonymous's picture

I am new to Opencascade and want to know a way to draw 2D TEXT in Opencascade.I have tried following, but the program either crashes or displays nothing.



c)Handle(Graphic2d_Text) text;
text = new Graphic2d_Text(aGrObj, "kaka", 10.0, 10.0, 0.0,Aspect_TOT_SOLID,1.0);
Graphic2d_Text textObj(aGrObj,aText,10.0,10.0,0.0,Aspect_TOT_SOLID,1.0);

Awaiting prompt reply.

m-aronsson's picture

Hi !

If I remeber correct, you need to set an environment variable that point to the font directory, I belive there is an entry in the FAQ about the environment variables to set, that could be the problem.


Francois Lauzon's picture

Hi Amod,
There is a sample that do just that, you should look at it.

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.