CFontProperties



Class for storing font properties.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CFontProperties :public virtual IFontProperties
{
public:
    String getFontName() override;
    int getHeight() override;
    FONT_WEIGHT getWeight() override;
    float getDistance() override;
    Color getColor() override;
    PointF getShadowShift() override;
    int getShadowRadius() override;
    Color getShadowColor() override;
    bool isItalic() override;
    bool isUnderline() override;
    bool isStrikeOut() override;
    bool isEqual(IFontProperties *font) override;
    // Since 3.0.0
    bool isMonospace() override;

    bool Copy(IFontProperties *src) override;

    CFontProperties(); // Create with default properties
    CFontProperties(IFontProperties *other); // Create and copy properties from specified font properties
    virtual ~CFontProperties() = default;
};
Namespace: nitisa
Include: Nitisa/Core/Font.h