X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FAIS%2FAIS_TextLabel.cxx;h=8344e85da0437d7d207cd86bfef9fa4a7d2b917d;hb=60f7b2253650edf27be6404314c17e6e8a20c21a;hpb=a516227511f3452f9f55b79c961265b0bf210793 diff --git a/src/AIS/AIS_TextLabel.cxx b/src/AIS/AIS_TextLabel.cxx index f387fafe56..8344e85da0 100644 --- a/src/AIS/AIS_TextLabel.cxx +++ b/src/AIS/AIS_TextLabel.cxx @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -308,7 +309,9 @@ void AIS_TextLabel::Compute (const Handle(PrsMgr_PresentationManager3d)& /*thePr { 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()); @@ -316,7 +319,9 @@ void AIS_TextLabel::Compute (const Handle(PrsMgr_PresentationManager3d)& /*thePr } 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)