Implement XeTeX contextual interword spacing and shipout shaping
This commit is contained in:
1 parent
7e5428ec35
commit
4a77540e46
23 files changed
+491
-42
No files matched your search
@@ -261,7 +261,7 @@ impl Executor {
|
||||
}
|
||||
pub(super) fn ship_box(
|
||||
&mut self,
|
||||
b: NativeBox,
|
||||
mut b: NativeBox,
|
||||
files: &mut impl SourceProvider,
|
||||
) -> Result<(), Error> {
|
||||
self.native_page_mut()?;
|
||||
@@ -314,6 +314,14 @@ impl Executor {
|
||||
pdf,
|
||||
};
|
||||
self.trace_shipout(&b, files)?;
|
||||
if self.state.input_profile() == InputProfile::XeTeX
|
||||
&& self.read_parameter(Parameter::XeTeXinterwordspaceshaping).width() > 1
|
||||
{
|
||||
let limit = self.limits.steps.saturating_sub(self.steps);
|
||||
let work = b.prepare_interword_shipout(limit, self.cancellation.as_ref())
|
||||
.map_err(|error| self.error(error, b.span))?;
|
||||
self.steps += work;
|
||||
}
|
||||
let current = self.current;
|
||||
let (pdf_resource_entries, pdf_page_attributes) = if device.pdf.is_some() {
|
||||
(
|
||||
|
||||
Reference in new issue
Block a user