summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorCharlie Moog <moogcharlie@gmail.com>2023-04-06 08:40:11 -0500
committerGitHub <noreply@github.com>2023-04-06 15:40:11 +0200
commit623db8c0c4cd798d3dacaa5269f9e850fc180934 (patch)
tree0144d9431498cf7e086b42206d48fe52eebcbc6f /cli
parentca71081d05e1d2fabf65f4d4576ef0ac095221f9 (diff)
embed New Computer Modern into binary (#340)
Diffstat (limited to 'cli')
-rw-r--r--cli/Cargo.toml1
-rw-r--r--cli/src/main.rs4
2 files changed, 5 insertions, 0 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml
index d5178b54..656dd0d9 100644
--- a/cli/Cargo.toml
+++ b/cli/Cargo.toml
@@ -36,5 +36,6 @@ default = ["embed-fonts"]
# - text (Linux Libertine),
# - math (New Computer Modern Math), and
# - code (Deja Vu Sans Mono)
+# and additionally New Computer Modern for text
# into the binary.
embed-fonts = []
diff --git a/cli/src/main.rs b/cli/src/main.rs
index 98c7aa6a..d0dcc2bd 100644
--- a/cli/src/main.rs
+++ b/cli/src/main.rs
@@ -699,6 +699,10 @@ impl FontSearcher {
add(include_bytes!("../../assets/fonts/LinLibertine_RI.ttf"));
add(include_bytes!("../../assets/fonts/NewCMMath-Book.otf"));
add(include_bytes!("../../assets/fonts/NewCMMath-Regular.otf"));
+ add(include_bytes!("../../assets/fonts/NewCM10-Regular.otf"));
+ add(include_bytes!("../../assets/fonts/NewCM10-Bold.otf"));
+ add(include_bytes!("../../assets/fonts/NewCM10-Italic.otf"));
+ add(include_bytes!("../../assets/fonts/NewCM10-BoldItalic.otf"));
add(include_bytes!("../../assets/fonts/DejaVuSansMono.ttf"));
add(include_bytes!("../../assets/fonts/DejaVuSansMono-Bold.ttf"));
add(include_bytes!("../../assets/fonts/DejaVuSansMono-Oblique.ttf"));