diff options
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/symbol.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/starmath/source/symbol.cxx b/starmath/source/symbol.cxx index 3baf79702faf..7bff8d995d5c 100644 --- a/starmath/source/symbol.cxx +++ b/starmath/source/symbol.cxx @@ -21,6 +21,7 @@ #include <utility.hxx> #include <cfgitem.hxx> #include <smmod.hxx> +#include <format.hxx> #include <sal/log.hxx> #include <osl/diagnose.h> @@ -80,6 +81,13 @@ bool SmSym::IsEqualInUI( const SmSym& rSymbol ) const m_cChar == rSymbol.m_cChar; } +const vcl::Font& SmSym::GetFace() const +{ + if (m_aFace.GetFamilyName().isEmpty()) + return SM_MOD()->GetConfig()->GetStandardFormat().GetFont(FNT_MATH); + return m_aFace; +} + /**************************************************************************/ |