Fri, 01/27/2012 - 23:46
Forums:
Hi all,
does anybody know why displayed text is so ugly?
I use the following code:
Handle(Prs3d_Presentation) aPrs = new Prs3d_Presentation(myAISContext->CurrentViewer()->Viewer());
Handle (Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup(aPrs);
Handle(Graphic3d_AspectText3d) aTextAspect = new Graphic3d_AspectText3d();
aTextAspect->SetTextZoomable (Standard_True);
aTextAspect->SetFont(Standard_CString(Graphic3d_NOF_ASCII_MONO));
aTextAspect->SetTextAngle(0.0);
aGroup->SetPrimitivesAspect(aTextAspect);
Graphic3d_Vertex aPoint (10, 10, 1);
aGroup->Text(Standard_CString ("Text 1,3 5039 3,432"), aPoint, 10.0);
aPrs->Display();
myAISContext->UpdateCurrentViewer();
Please see attached file.
Kind regards
Arno
Attachments:
Wed, 05/09/2012 - 18:02
Did you find a solution? I'm having the same problem using Graphic3d_Group::Text with the zoomable option set to Standard_True.
Sat, 01/26/2013 - 16:59
Hello, have you found a solution?
if so - tell me how to beat this problem.
Thu, 04/24/2014 - 19:02
Use following
aTextAspect->SetFont("Font_NOF_ASCII_COMPLEX");