Execute TECkit font mappings in native XeLaTeX jobs

This commit is contained in:
gloamxun committed 2026-11-21 12:39:29 +08:00
1 parent 752af43f32
commit c548ca8e9f
12 files changed
+1098 -17

No files matched your search

+6 -1
View File
@@ -30,6 +30,7 @@ pub enum ResourceKind {
Map,
Format,
Config,
FontMapping,
}
impl ResourceKind {
fn directory(self) -> &'static str {
@@ -44,6 +45,7 @@ impl ResourceKind {
Self::Encoding => "fonts/enc",
Self::Map => "fonts/map",
Self::Format | Self::Config => "web2c",
Self::FontMapping => "fonts/misc",
}
}
fn environment(self) -> &'static str {
@@ -59,6 +61,7 @@ impl ResourceKind {
Self::Map => "TEXFONTMAPS",
Self::Format => "TEXFORMATS",
Self::Config => "TEXMFCNF",
Self::FontMapping => "MISCFONTS",
}
}
fn extensions(self) -> &'static [&'static str] {
@@ -74,9 +77,10 @@ impl ResourceKind {
Self::Map => &["map"],
Self::Format => &["fmt"],
Self::Config => &["cnf"],
Self::FontMapping => &["tec"],
}
}
const ALL: [Self; 11] = [
const ALL: [Self; 12] = [
Self::Tex,
Self::Tfm,
Self::Vf,
@@ -88,6 +92,7 @@ impl ResourceKind {
Self::Map,
Self::Format,
Self::Config,
Self::FontMapping,
];
}
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]