Use the rounded PDF graphics origin when starting text

This commit is contained in:
gloamxun committed 2026-11-29 10:15:19 +08:00
1 parent 893b46baae
commit ecb0f60960
5 files changed
+120 -12

No files matched your search

+1 -4
View File
@@ -812,9 +812,6 @@ fn page_content(
if let Some(dedicated) = list.pdf_space_plan.as_ref().and_then(|plan| plan.dedicated.as_ref())
&& *operation == crate::pdf_device::text_spaces::SpaceOperation::Explicit
{
if tex_text.is_none() {
content.move_origin(page_origin, list.units, digits);
}
native_text::NativeText::explicit_space(
&mut tex_text, &mut content, *x, *y, height, digits, dedicated,
);
@@ -898,7 +895,7 @@ fn page_content(
} = item
{
assert!(paint.is_some(), "native glyph program must be resolved");
if tex_text.is_none() {
if xdv && tex_text.is_none() {
content.move_origin(page_origin, list.units, digits);
}
let _ = native_text::NativeText::glyph(