Honor pdfTeX character program tags and qualify PLOS ONE
This commit is contained in:
1 parent
84ad682939
commit
a1585339b9
21 files changed
+308
-28
No files matched your search
@@ -483,6 +483,18 @@ impl TfmMetrics {
|
||||
}
|
||||
})
|
||||
}
|
||||
pub(crate) fn glyph_tag_code(&self, slot: u8) -> i32 {
|
||||
match self.char_info(char::from(slot)) {
|
||||
Some(info) if info.width_index != 0 => match info.tag {
|
||||
1 => 1,
|
||||
2 => 2,
|
||||
3 => 4,
|
||||
_ => 0,
|
||||
},
|
||||
_ => -1,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn lig_kern_program(&self) -> &[LigKernInstruction] {
|
||||
&self.lig_kern
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user