lazyweb: I haven't created a brand new design syst...
# compose-android
c
lazyweb: I haven't created a brand new design system with custom type in compose since a few years ago. I know back then we used to have to "reset" all of the line height stuff in android/compose in order to match figma. Do we still need to do that or did that get "fixed" cc: @Siyamed because I think I spoke to you about it a few years ago.
g
@Sean McQuillan [G]
h
I'm not sure what you mean by "reset". LineHeightStyle has a lot of controls now. Probably you will find a way to match your Figma configuration.
c
i need to look up the docs, but there was a lineHeight.NONE or something like that
once we did that, then everything in compose started to line up with figma
c
c
yeah
I think Ive gotta do this LocalTextStyle.current.merge( TextStyle( lineHeight = 2.5.em, platformStyle = PlatformTextStyle( includeFontPadding = false ), lineHeightStyle = LineHeightStyle( alignment = LineHeightStyle.Alignment.Center, trim = LineHeightStyle.Trim.None ) ) where I "zero out" the lineHeightStyle
c
yes, based on the article that should be all you need to do
d
what's the default for
lineHeightStyle
?
includeFontPadding
is already false by default in Compose so you probably don't need that part.