Skip to content

1.0.0-rc06

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 20 Jul 01:37
· 5 commits to main since this release
d2efac8

Font Support (new)

You can now set a font as part of a Style!

By default the only values supported are "default", "monospace", "serif", and "sans-serif".

You can register a custom fault using the DefaultFontResolver class for your platform.

Ex.

DefaultFontResolver.register(
    "jetbrains mono" to ResourcesCompat.getFont(context, R.font.jetbrains_mono)!!
)

You can then use font like so

val mySyntakts = syntakts {
    rule("`(.+?)`") { result, _ ->
        append(result.groupValues[1]) {
            font = "jetbrains mono"
        }
    }
}

Dependencies

  • AGP: 8.1.4 -> 8.5.1
  • AndroidX Core: 1.12.0 -> 1,13.1
  • Compose Material3: 1.1.2 -> 1.2.1
  • Compose Multiplatform: 1.5.10 -> 1.6.11
  • Kotlin: 1.9.10 -> 2.0.0
  • Kotlin Coroutines Core: 1.7.3 -> 1.8.0

Full Changelog: 1.0.0-rc05...1.0.0-rc06