Draw mathbb letters from msbm10

This commit is contained in:
gloamxun committed 2026-10-24 12:14:54 +08:00
1 parent e229809581
commit cb40cc4634
7 files changed
+122 -1

No files matched your search

+3
View File
@@ -25,6 +25,8 @@ pub enum FontFace {
MathSymbol,
/// Computer Modern math extensions (`cmex10`), addressed by TeX slot.
MathExtension,
/// Computer Modern blackboard bold (`msbm10`).
MathBlackboard,
}
#[derive(Clone, Debug, PartialEq, Eq)]
@@ -697,6 +699,7 @@ impl Page {
math::MathAlphabet::Sans => FontFace::Sans,
math::MathAlphabet::Mono => FontFace::Mono,
math::MathAlphabet::Calligraphic => FontFace::MathSymbol,
math::MathAlphabet::Blackboard => FontFace::MathBlackboard,
};
let mut cursor = x;
for character in text.chars() {