Add wxFontInfo::HasFaceName() and use it
No real changes, just simplify the code a little by adding this helper.
This commit is contained in:
@@ -208,6 +208,9 @@ public:
|
||||
float GetFractionalPointSize() const { return m_pointSize; }
|
||||
int GetPointSize() const { return ToIntPointSize(m_pointSize); }
|
||||
wxSize GetPixelSize() const { return m_pixelSize; }
|
||||
|
||||
// If face name is not empty, it has priority, otherwise use family.
|
||||
bool HasFaceName() const { return !m_faceName.empty(); }
|
||||
wxFontFamily GetFamily() const { return m_family; }
|
||||
const wxString& GetFaceName() const { return m_faceName; }
|
||||
|
||||
|
Reference in New Issue
Block a user