Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
 

Displayed text is ugly

Displayed text is ugly
Arno Hofmann 2012/01/27 20:46
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
You have to be logged in to download the attached file
Sven Jungnickel 2012/05/09 16:02
Did you find a solution? I'm having the same problem using Graphic3d_Group::Text with the zoomable option set to Standard_True.
Sergey 2013/01/26 13:59
Hello, have you found a solution?
if so - tell me how to beat this problem.
Dulanga Bulathgama 2014/04/24 17:02
Use following
aTextAspect->SetFont("Font_NOF_ASCII_COMPLEX");
 
 
Latest news
  • Open CASCADE Technology 6.8.0 is available for download!
  • New features to enhance the development process
  • Open CASCADE Technology 6.7.1 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map