react-native-skia icon indicating copy to clipboard operation
react-native-skia copied to clipboard

LineHeight property on Paragraph

Open kokosky93 opened this issue 1 year ago • 3 comments

Description

Hi,

would it be possible to add lineHeight property to the Paragraph? :)

kokosky93 avatar Aug 01 '24 22:08 kokosky93

This is indeed an issue. Skia doesn't have lineHeight. Skia seems to have a working for it that we will try to expose

wcandillon avatar Aug 05 '24 06:08 wcandillon

Hi William, thank you for your response. I know you have ton of work.. but Is there any chance it can be added in the near future?

kokosky93 avatar Aug 18 '24 09:08 kokosky93

It would be nice if Paragraph accepted lineHeight prop and also respected the props it says it should (like color). You can adjust the line height of the Paragraphs in the builder with .pushStyle({ heightMultiplier: lineHeightMultiplier }) if you need to.

bfricka avatar Oct 24 '24 16:10 bfricka

I encountered a problem with different line heights in different fonts, if there is a lineheight, can this problem be solved?

ReedYu avatar Jul 07 '25 09:07 ReedYu