Resolve pdfTeX SFD subfonts against actual TrueType cmaps
This commit is contained in:
1 parent
fd5ab59f42
commit
868814288c
10 files changed
+481
-43
No files matched your search
@@ -34,6 +34,7 @@ pub enum ResourceKind {
|
||||
Config,
|
||||
FontMapping,
|
||||
PdfImage,
|
||||
Sfd,
|
||||
}
|
||||
impl ResourceKind {
|
||||
fn directory(self) -> &'static str {
|
||||
@@ -49,6 +50,7 @@ impl ResourceKind {
|
||||
Self::Map => "fonts/map",
|
||||
Self::Format | Self::Config => "web2c",
|
||||
Self::FontMapping => "fonts/misc",
|
||||
Self::Sfd => "fonts/sfd",
|
||||
}
|
||||
}
|
||||
fn environment(self) -> &'static str {
|
||||
@@ -65,6 +67,7 @@ impl ResourceKind {
|
||||
Self::Format => "TEXFORMATS",
|
||||
Self::Config => "TEXMFCNF",
|
||||
Self::FontMapping => "MISCFONTS",
|
||||
Self::Sfd => "SFDFONTS",
|
||||
}
|
||||
}
|
||||
fn extensions(self) -> &'static [&'static str] {
|
||||
@@ -81,9 +84,10 @@ impl ResourceKind {
|
||||
Self::Format => &["fmt"],
|
||||
Self::Config => &["cnf"],
|
||||
Self::FontMapping => &["tec"],
|
||||
Self::Sfd => &["sfd"],
|
||||
}
|
||||
}
|
||||
const ALL: [Self; 12] = [
|
||||
const ALL: [Self; 13] = [
|
||||
Self::Tex,
|
||||
Self::Tfm,
|
||||
Self::Vf,
|
||||
@@ -96,6 +100,7 @@ impl ResourceKind {
|
||||
Self::Format,
|
||||
Self::Config,
|
||||
Self::FontMapping,
|
||||
Self::Sfd,
|
||||
];
|
||||
}
|
||||
#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
|
||||
|
||||
Reference in new issue
Block a user