mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-26 19:26:46 -06:00
krilla wraps a mark cluster that maps to several glyphs, and a glyph drawn with other text than its font already maps it to, in an ActualText span. Inside a line's ActualText span that nested the spans, and poppler drops the text before a nested span. Inside a line span each glyph now gets the text its font maps it to (the exporter keeps a copy of krilla's mappings), a cluster's text goes to its first glyph, and a run splits into separate draw calls where two glyphs in a row would share an empty range. A run drawn through tagged_run inside a line span takes the span as its tag. Test: mark_clusters_in_right_to_left_lines_open_no_span_of_their_own (5 nested spans before).