Since material3.Typography does not give an option...
# compose
s
Since material3.Typography does not give an option to provide a FontFamily for all fields, and the default value of Typography parameters are all internal
TypographyTokens
, is my best bet to override the font to do this?
Copy code
Typography(
  displayLarge = MaterialTheme.typography.displayLarge.copy(fontFamily = SansStandard),
  displayMedium = MaterialTheme.typography.displayMedium.copy(fontFamily = SansStandard),
  displaySmall = MaterialTheme.typography.displaySmall.copy(fontFamily = SansStandard),
  // and so on, for all options
)
Or is there some API I am missing?
s
I was looking into this a while ago, too. It seems this is indeed the best option at the moment.
d
Created a feature request to make this easier if anyone else wants to +1 https://issuetracker.google.com/issues/270111243