Kaynağa Gözat

app: fix desktop for parley update

darkfi 1 yıl önce
ebeveyn
işleme
fdb878b3df
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      bin/app/src/text2/editor/parley.rs

+ 1 - 1
bin/app/src/text2/editor/parley.rs

@@ -75,7 +75,7 @@ impl Editor {
 
         self.editor.set_scale(window_scale);
         let mut styles = parley::StyleSet::new(font_size);
-        styles.insert(parley::StyleProperty::LineHeight(lineheight));
+        styles.insert(parley::StyleProperty::LineHeight(parley::LineHeight::FontSizeRelative(lineheight)));
         styles.insert(parley::StyleProperty::FontStack(parley::FontStack::List(FONT_STACK.into())));
         styles.insert(parley::StyleProperty::Brush(text_color));
         *self.editor.edit_styles() = styles;