Render legacy XeLaTeX composite Type 1 fonts
This commit is contained in:
1 parent
ff52a9f66b
commit
e7ab132520
11 files changed
+497
-116
No files matched your search
@@ -15,18 +15,18 @@ pub(crate) struct CompositeFont {
|
||||
pub(crate) registry: String,
|
||||
pub(crate) ordering: String,
|
||||
pub(crate) supplement: u32,
|
||||
slots: Vec<CompositeSlot>,
|
||||
pub(super) slots: Vec<CompositeSlot>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub(crate) vertical: Option<[i32; 2]>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
|
||||
struct CompositeSlot {
|
||||
cid: u16,
|
||||
advance: u32,
|
||||
unicode: Option<String>,
|
||||
pub(super) struct CompositeSlot {
|
||||
pub(super) cid: u16,
|
||||
pub(super) advance: u32,
|
||||
pub(super) unicode: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
vertical: Option<[i32; 3]>,
|
||||
pub(super) vertical: Option<[i32; 3]>,
|
||||
}
|
||||
|
||||
impl CompositeFont {
|
||||
|
||||
Reference in new issue
Block a user