diff --git a/doc/dox/jkqtmathtext_fonthandling.dox b/doc/dox/jkqtmathtext_fonthandling.dox index c2bf027979..3b8a96819e 100644 --- a/doc/dox/jkqtmathtext_fonthandling.dox +++ b/doc/dox/jkqtmathtext_fonthandling.dox @@ -71,6 +71,8 @@ - using "DejaVu Sans" JKQTMathText::setFontRomanAndMath("DejaVu Sans"): \image html jkqtmathtext/jkqtmathtext_DejaVuSans.png - using "DejaVu Serif" JKQTMathText::setFontRomanAndMath("DejaVu Serif"): \image html jkqtmathtext/jkqtmathtext_DejaVuSerif.png - using "XITS" JKQTMathText::useXITS(false): \image html jkqtmathtext/jkqtmathtext_xits_all.png + - using "Noto Sans" JKQTMathText::setFontRomanAndMath("Noto Sans", "Noto Sans Math"): \image html jkqtmathtext/jkqtmathtext_notosans.png + - using "Noto Serif" JKQTMathText::setFontRomanAndMath("Noto Serif", "Noto Serif"): \image html jkqtmathtext/jkqtmathtext_notoserif.png . Math-mode is activated by enclosing your equation in \c $...$ or \c \\[...\\] . diff --git a/doc/images/jkqtmathtext/jkqtmathtext_notosans.png b/doc/images/jkqtmathtext/jkqtmathtext_notosans.png new file mode 100644 index 0000000000..8b7cc33d01 Binary files /dev/null and b/doc/images/jkqtmathtext/jkqtmathtext_notosans.png differ diff --git a/doc/images/jkqtmathtext/jkqtmathtext_notoserif.png b/doc/images/jkqtmathtext/jkqtmathtext_notoserif.png new file mode 100644 index 0000000000..ac29d0323f Binary files /dev/null and b/doc/images/jkqtmathtext/jkqtmathtext_notoserif.png differ diff --git a/doc/jkqtmathtext_docimages_specialfonts.jkmt b/doc/jkqtmathtext_docimages_specialfonts.jkmt index 74c624b732..9101f1c3f7 100644 --- a/doc/jkqtmathtext_docimages_specialfonts.jkmt +++ b/doc/jkqtmathtext_docimages_specialfonts.jkmt @@ -47,6 +47,14 @@ jkqtmathtext_computermodern.png --fontmathroman=CMU Serif --fontroman=SMU Serif --sizeincrease=10 Schrödinger's equation: $\left[-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2}+V\right]\Psi(x)=\mathrm{i}\hbar\frac{\partial}{\partial t}\Psi(x),\ \ x\in\mathbb{R}, \Psi(x)\in\mathbb{C}$ --- +jkqtmathtext_notosans.png +--fontmathroman=Noto Sans Math --fontroman=Noto Sans --sizeincrease=10 +Schrödinger's equation: $\left[-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2}+V\right]\Psi(x)=\mathrm{i}\hbar\frac{\partial}{\partial t}\Psi(x),\ \ x\in\mathbb{R}, \Psi(x)\in\mathbb{C}$ +--- +jkqtmathtext_notoserif.png +--fontmathroman=Noto Serif --fontroman=Noto Serif --sizeincrease=10 +Schrödinger's equation: $\left[-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2}+V\right]\Psi(x)=\mathrm{i}\hbar\frac{\partial}{\partial t}\Psi(x),\ \ x\in\mathbb{R}, \Psi(x)\in\mathbb{C}$ +--- jkqtmathtext_asana.png --fontmathroman=Asana Math --sizeincrease=10 Schrödinger's equation: $\left[-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2}+V\right]\Psi(x)=\mathrm{i}\hbar\frac{\partial}{\partial t}\Psi(x),\ \ x\in\mathbb{R}, \Psi(x)\in\mathbb{C}$ diff --git a/lib/jkqtmathtext/jkqtmathtext.cpp b/lib/jkqtmathtext/jkqtmathtext.cpp index 7fb3339ce4..7393bc52f5 100644 --- a/lib/jkqtmathtext/jkqtmathtext.cpp +++ b/lib/jkqtmathtext/jkqtmathtext.cpp @@ -317,7 +317,6 @@ bool JKQTMathText::useSTIX(bool mathModeOnly, bool useAsFallbackSymbol) { bool JKQTMathText::useXITS(bool mathModeOnly, bool useAsFallbackSymbol) { - const JKQTMathTextFontSpecifier xits=JKQTMathTextFontSpecifier::getXITSFamilies(); bool res=false;