is there any code samples with dynamic typography ...
# compose
m
is there any code samples with dynamic typography (i know some jetSamples have dynamic colors) - but i was interested in dynamic typography
a
What do you men by dynamic exactly? Animating font weights?
m
no. custom brand typography. Not material one
a
Copy code
MaterialTheme(
  typography = Typography(...),
) {
  ... your composable content here... 
}
Should be as simple as that really
m
nvm. you are missing the point
s
Like custom fonts?
Look up FontFamily
Or you mean like dynamic text sizing? Like for accessibility purposes?
m
no
Jetcaster uses dynamic theming, with its custom color implementation
i want the same, for typography. I’m looking for code samples
Jetsnack i mean
s
can't you just swap typography instance like jetsnack does for colors?
a
Could you describe a usecase? e.g. "I click button X, font on button changes from roboto to times new roman"? Maybe this will help us understand your requirements better