CreateTypography
0.2.0indexedLibrary facilitates creation of Typography from font names or FontFamily for Android and Compose Multiplatform, enhancing customization and consistency in design projects.
0
Stars
1
Used by
dependents
—
Health
/ 100
Library facilitates creation of Typography from font names or FontFamily for Android and Compose Multiplatform, enhancing customization and consistency in design projects.
A library for Android and Compose Multiplatform, provide functions that create Typography from font name or FontFamily.
app/build.gradle.kts
dependencies {
...
+ implementation("dev.yuyuyuyuyu:createtypography:0.1.0")
}
composeApp/build.gradle.kts
kotlin {
...
sourceSets {
...
commonMain.dependencies {
...
+ implementation("dev.yuyuyuyuyu:createtypography:0.1.0")
}
}
}
app/src/main/java/dev/yuyuyuyuyu/createtypography/example/android/ui/theme/Type.kt
val Typography = createTypographyFrom(fontName = "Yomogi")
composeApp/src/commonMain/kotlin/dev/yuyuyuyuyu/createtypography/example/multiplatform/App.kt
@Composable
fun App() {
MaterialTheme(
typography = createTypographyFrom(fontFamily = FontFamily(Font(Res.font.Yomogi_Regular))),
) {
Scaffold { innerPadding ->
Box(
modifier = Modifier.padding(innerPadding),
) {
Text(
text = "Hello, ${getPlatform().name}!",
)
}
}
}
}
Apache License 2.0
Copyright 2025 yu
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:
Unless applicable law agreed to writing, software
distributed under the License distributed an BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied.
See the License the specific language governing permissions
limitations under the License.
Surfaced from shared tags and platforms — no rankings paid for.