//=======================================================================
AIS_TextLabel::AIS_TextLabel()
: myText ("?"),
- myFont ("Courier"),
- myFontAspect (Font_FA_Regular),
myHasOrientation3D (Standard_False),
myHasFlipping (Standard_False)
{
//=======================================================================
void AIS_TextLabel::SetFont (Standard_CString theFont)
{
- myFont = theFont;
- myDrawer->TextAspect()->SetFont (myFont.ToCString());
+ myDrawer->TextAspect()->SetFont (theFont);
}
//=======================================================================
return myOrientation3D.Location();
}
+//=======================================================================
+//function : FontName
+//purpose :
+//=======================================================================
+const TCollection_AsciiString& AIS_TextLabel::FontName() const
+{
+ return myDrawer->TextAspect()->Aspect()->Font();
+}
+
+//=======================================================================
+//function : FontAspect
+//purpose :
+//=======================================================================
+Font_FontAspect AIS_TextLabel::FontAspect() const
+{
+ return myDrawer->TextAspect()->Aspect()->GetTextFontAspect();
+}
+
//=======================================================================
//function : Orientation3D
//purpose :