From: isk Date: Thu, 25 Jun 2015 09:59:59 +0000 (+0300) Subject: GetFont method at Graphic3d_AspectText3d is added. X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=59b82b152633243a3a5553ebbe0a70519b2f7e91;p=occt-copy.git GetFont method at Graphic3d_AspectText3d is added. --- diff --git a/src/Graphic3d/Graphic3d_AspectText3d.cdl b/src/Graphic3d/Graphic3d_AspectText3d.cdl index 5e54cf1b92..19c6f3ee76 100644 --- a/src/Graphic3d/Graphic3d_AspectText3d.cdl +++ b/src/Graphic3d/Graphic3d_AspectText3d.cdl @@ -103,6 +103,11 @@ is ---AFont may be to take means from User(example "Courier New") ---or Font name defined in Font_NameOfFont(example Font_NOF_ASCII_MONO) ---or use default font("Courier") + + GetFont (me) returns AsciiString from TCollection; + ---Level: Public + ---Purpose: Returns font name. + ---C++: return const& SetSpace ( me : mutable; diff --git a/src/Graphic3d/Graphic3d_AspectText3d.cxx b/src/Graphic3d/Graphic3d_AspectText3d.cxx index db5a40fcf9..1739b8e751 100644 --- a/src/Graphic3d/Graphic3d_AspectText3d.cxx +++ b/src/Graphic3d/Graphic3d_AspectText3d.cxx @@ -128,6 +128,11 @@ void Graphic3d_AspectText3d::SetFont (const Standard_CString AFont) { MyFont = aTemp; } +const TCollection_AsciiString& Graphic3d_AspectText3d::GetFont() const +{ + return MyFont; +} + void Graphic3d_AspectText3d::SetSpace (const Standard_Real ASpace) { MySpace = ASpace;