This commit is contained in:
jkriege2 2022-08-13 19:47:35 +02:00
parent f83a3468b1
commit cfac5138b3

View File

@ -75,11 +75,11 @@ class JKQTMATHTEXT_LIB_EXPORT JKQTMathTextTextNode: public JKQTMathTextTextBaseN
protected: protected:
/** \brief defines how a character shold be drawn, used by splitTextForLayout */ /** \brief defines how a character shold be drawn, used by splitTextForLayout */
enum FontMode { enum FontMode {
FMasDefined, FMasDefined, /*!< \brief use current font */
FMasDefinedForceUpright, FMasDefinedForceUpright, /*!< \brief use current font, but force it upright (e.g. for digits in math mode) */
FMasDefinedOutline, FMasDefinedOutline, /*!< \brief use current font and draw as outline, e.g. used for simulating blackboard fonts */
FMroman, FMroman, /*!< \brief use JKQTMathText::getFontRoman() */
FMfallbackSymbol FMfallbackSymbol, /*!< \brief use JKQTMathText::getFallbackFontSymbols() */
}; };
/** \copydoc JKQTMathTextNode::getSizeInternal() */ /** \copydoc JKQTMathTextNode::getSizeInternal() */
virtual void getSizeInternal(QPainter& painter, JKQTMathTextEnvironment currentEv, double& width, double& baselineHeight, double& overallHeight, double& strikeoutPos, const JKQTMathTextNodeSize* prevNodeSize=nullptr) override; virtual void getSizeInternal(QPainter& painter, JKQTMathTextEnvironment currentEv, double& width, double& baselineHeight, double& overallHeight, double& strikeoutPos, const JKQTMathTextNodeSize* prevNodeSize=nullptr) override;