mirror of
https://github.com/typst/typst
synced 2025-08-20 09:49:02 +08:00
WIP [no ci]
This commit is contained in:
parent
da5ed2e6ee
commit
7b629fc45a
@ -3,6 +3,7 @@ use std::sync::Arc;
|
||||
|
||||
use bytemuck::TransparentWrapper;
|
||||
use krilla::surface::{Location, Surface};
|
||||
use krilla::tagging::SpanTag;
|
||||
use krilla::text::GlyphId;
|
||||
use typst_library::diag::{bail, SourceResult};
|
||||
use typst_library::layout::Size;
|
||||
@ -23,7 +24,8 @@ pub(crate) fn handle_text(
|
||||
) -> SourceResult<()> {
|
||||
*gc.languages.entry(t.lang).or_insert(0) += t.glyphs.len();
|
||||
|
||||
let mut handle = tags::start_marked(gc, surface);
|
||||
let mut handle =
|
||||
tags::start_span(gc, surface, SpanTag::empty().with_actual_text(Some(&t.text)));
|
||||
let surface = handle.surface();
|
||||
|
||||
let font = convert_font(gc, t.font.clone())?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user