drawText, OCC6.3, Fedora11

Hi All!
Don't view text into Fedora11 OCC6.3. Source is:

Handle(Prs3d_Presentation) aPresentation= new Prs3d_Presentation(myContext->CurrentViewer()->Viewer(), Standard_True);
Handle(Prs3d_TextAspect) aTextAspect= new Prs3d_TextAspect();
aTextAspect->SetFont(Graphic3d_NOF_ASCII_COMPLEX);

aTextAspect->SetFont(Graphic3d_NOF_ASCII_ITALIC_TRIPLEX);
aTextAspect->SetHeight(0.05);
aTextAspect->SetColor(Quantity_NOC_RED);
aTextAspect->SetSpace(20);
TCollection_ExtendedString aTCoText("0,0,0");
gp_Pnt aPnt(10.0,10.0,0.0);

Prs3d_Text::Draw(aPresentation,aTextAspect,aTCoText, aPnt);
aPresentation->ReCompute();
aPresentation->Display();

Also don't view axis legend for trihedron!

Handle(AIS_Trihedron) aTrihedron;
Handle(Geom_Axis2Placement) aTrihedronAxis=new Geom_Axis2Placement(gp::XOY());
aTrihedron=new AIS_Trihedron(aTrihedronAxis);
myContext->Display(aTrihedron);

But this code normal work into Fedora7, OCC6.3!
Why? Where is bug?
Thanks!
Vladimir

Denis Teissandier's picture

A suggestion to display a triedron with legend :

Handle_V3d_View myView= ...;

myView->TriedronDisplay(Aspect_TOTP_LEFT_LOWER, Quantity_NOC_WHITE, 0.05, V3d_ZBUFFER);

For displaying text,
I use similar code and it is working fine ... in windows ...

Have you try this way :
Handle(Prs3d_Presentation) aPresentation= new Prs3d_Presentation(myContext->CurrentViewer()->Viewer());

Regards,

Denis

Vladimir's picture

Thanks!
It is my local platform problem. But I don't know why. May be any colleges meeted?
Vladimir