you are following the example usage from the PR. right?
Chrimaeon
09/22/2024, 9:57 AM
Copy code
val fontFamilyResolver = LocalFontFamilyResolver.current
...
LaunchedEffect(Unit) {
val notoEmojisBytes = loadEmojisFontAsBytes() // loadRes(notoColorEmoji).toByteArray()
val fontFamily = FontFamily(listOf(Font("NotoColorEmoji", notoEmojisBytes)))
fontFamilyResolver.preload(fontFamily)
fontsLoaded.value = true
}
r
Rok Oblak
09/22/2024, 10:15 AM
No, I thought it was supposed to work out of the box in a regular text, without any font preloading or setting.
Because it is unclear to me if this is treated by a bug by JB on web or not (it sure seems like to me).