#include <Font_Rect.hxx>
#include <Graphic3d_AspectText3d.hxx>
#include <Graphic3d_RenderingParams.hxx>
+#include <Graphic3d_Text.hxx>
#include <Prs3d_Text.hxx>
#include <Prs3d_TextAspect.hxx>
{
aHasOwnAnchor = Standard_False; // always not using own anchor if flipping
}
- Prs3d_Text::Draw (thePrs->CurrentGroup(), anAsp, myText, anOrientation, aHasOwnAnchor);
+ Handle(Graphic3d_Text) aText =
+ Prs3d_Text::Draw (thePrs->CurrentGroup(), anAsp, myText, anOrientation, aHasOwnAnchor);
+ aText->SetTextFormatter (myFormatter);
if (myHasFlipping && isInit)
{
thePrs->CurrentGroup()->SetFlippingOptions (Standard_False, gp_Ax2());
}
else
{
- Prs3d_Text::Draw (thePrs->CurrentGroup(), anAsp, myText, aPosition);
+ Handle(Graphic3d_Text) aText =
+ Prs3d_Text::Draw (thePrs->CurrentGroup(), anAsp, myText, aPosition);
+ aText->SetTextFormatter (myFormatter);
}
if (isInit)