PlatformParagraphStyle
-
Cmn
class PlatformParagraphStyle
Provides platform specific ParagraphStyle configuration options for styling and compatibility.
Summary
Public companion properties |
||
|---|---|---|
PlatformParagraphStyle |
Cmn
android
|
Public constructors |
|
|---|---|
|
Default platform paragraph style |
android
|
PlatformParagraphStyle(emojiSupportMatch: EmojiSupportMatch)Represents platform specific text flags. |
android
|
PlatformParagraphStyle(includeFontPadding: Boolean)Represents platform specific text flags |
android
|
PlatformParagraphStyle(Represents platform specific text flags |
android
|
Public functions |
||
|---|---|---|
open operator Boolean |
android
|
|
open Int |
hashCode() |
android
|
PlatformParagraphStyle |
merge(other: PlatformParagraphStyle?) |
Cmn
android
|
open String |
toString() |
android
|
Public properties |
||
|---|---|---|
EmojiSupportMatch |
When to replace emoji with support emoji using androidx.emoji2. |
android
|
Boolean |
Include extra space beyond font ascent and descent. |
android
|
Public companion properties
Public constructors
PlatformParagraphStyle
PlatformParagraphStyle(
emojiSupportMatch: EmojiSupportMatch = EmojiSupportMatch.Default
)
Represents platform specific text flags.
| Parameters | |
|---|---|
emojiSupportMatch: EmojiSupportMatch = EmojiSupportMatch.Default |
control emoji support matches on Android |
PlatformParagraphStyle
PlatformParagraphStyle(
includeFontPadding: Boolean = DefaultIncludeFontPadding
)
Represents platform specific text flags
| Parameters | |
|---|---|
includeFontPadding: Boolean = DefaultIncludeFontPadding |
Set whether to include extra space beyond font ascent and descent. |
PlatformParagraphStyle
PlatformParagraphStyle(
emojiSupportMatch: EmojiSupportMatch = EmojiSupportMatch.Default,
includeFontPadding: Boolean = DefaultIncludeFontPadding
)
Represents platform specific text flags
| Parameters | |
|---|---|
emojiSupportMatch: EmojiSupportMatch = EmojiSupportMatch.Default |
control emoji support matches on Android |
includeFontPadding: Boolean = DefaultIncludeFontPadding |
Set whether to include extra space beyond font ascent and descent. |
Public functions
Public properties
emojiSupportMatch
val emojiSupportMatch: EmojiSupportMatch
When to replace emoji with support emoji using androidx.emoji2.
This is only available on Android.
includeFontPadding
val includeFontPadding: Boolean
Include extra space beyond font ascent and descent.
Enables turning on and off for Android includeFontPadding.
includeFontPadding was added to Android in order to prevent clipping issues on tall scripts. However that issue has been fixed since Android 28. Jetpack Compose backports the fix for Android versions prior to Android 28. Therefore the original reason why includeFontPadding was needed in invalid on Compose.
This configuration was added for migration of the apps in case some code or design was relying includeFontPadding=true behavior.