Measure native XeTeX glyphs and break after mapped dashes
This commit is contained in:
1 parent
c548ca8e9f
commit
facecbf790
9 files changed
+332
-35
No files matched your search
@@ -119,6 +119,8 @@ pub enum Parameter {
|
||||
Pdfappendkern,
|
||||
Pdfadjustspacing,
|
||||
Partokencontext,
|
||||
XeTeXuseglyphmetrics,
|
||||
XeTeXdashbreakstate,
|
||||
}
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, serde::Serialize, serde::Deserialize)]
|
||||
pub enum ParameterValue {
|
||||
@@ -151,6 +153,8 @@ impl Parameter {
|
||||
)
|
||||
}
|
||||
|
||||
pub(super) const XETEX: [Self; 2] = [Self::XeTeXuseglyphmetrics, Self::XeTeXdashbreakstate];
|
||||
|
||||
pub const ALL: &'static [Self] = &[
|
||||
Self::Pdfoutput,
|
||||
Self::Pdfmajorversion,
|
||||
@@ -266,9 +270,15 @@ impl Parameter {
|
||||
Self::Pdfappendkern,
|
||||
Self::Pdfadjustspacing,
|
||||
Self::Partokencontext,
|
||||
Self::XeTeXuseglyphmetrics,
|
||||
Self::XeTeXdashbreakstate,
|
||||
];
|
||||
pub fn name(self) -> String {
|
||||
format!("{self:?}").to_ascii_lowercase()
|
||||
match self {
|
||||
Self::XeTeXuseglyphmetrics => "XeTeXuseglyphmetrics".into(),
|
||||
Self::XeTeXdashbreakstate => "XeTeXdashbreakstate".into(),
|
||||
_ => format!("{self:?}").to_ascii_lowercase(),
|
||||
}
|
||||
}
|
||||
pub fn kind(self) -> Option<RegisterKind> {
|
||||
match self {
|
||||
|
||||
Reference in new issue
Block a user