We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72290f0 commit 8a40cfdCopy full SHA for 8a40cfd
1 file changed
diffenator3-lib/src/render/renderer.rs
@@ -94,6 +94,13 @@ impl<'a> Renderer<'a> {
94
95
let output = if let Some(plan) = &self.plan {
96
// If we have a shaping plan, we can use it to shape the string
97
+ if let Some(script) = plan.script() {
98
+ buffer.set_script(script);
99
+ }
100
+ buffer.set_direction(plan.direction());
101
+ if let Some(lang) = plan.language() {
102
+ buffer.set_language(lang.clone());
103
104
shaper.shape_with_plan(plan, buffer, &[])
105
} else {
106
// Otherwise, we guess segment properties
0 commit comments