Embed math symbols as Computer Modern Type1 outlines
This commit is contained in:
1 parent
a07d93510f
commit
6446de6b6b
7 files changed
+89
-8
No files matched your search
@@ -21,6 +21,8 @@ pub enum FontFace {
|
||||
Sans,
|
||||
/// Computer Modern math italic (`cmmi10`).
|
||||
MathItalic,
|
||||
/// Computer Modern math symbols (`cmsy10`), addressed by TeX slot.
|
||||
MathSymbol,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
@@ -657,6 +659,8 @@ impl Page {
|
||||
if !character.is_whitespace() {
|
||||
let face = if character.is_ascii_alphabetic() || is_math_letter(*character) {
|
||||
FontFace::MathItalic
|
||||
} else if crate::cmr10::math_symbol_slot(*character).is_some() {
|
||||
FontFace::MathSymbol
|
||||
} else {
|
||||
FontFace::Roman
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user