Assigned
Status Update
Comments
mo...@google.com <mo...@google.com> #2
We could add an API to make the weighted distance customizable, aosp/3271691 has more info.
se...@google.com <se...@google.com> #3
Lets pass this to the Material Icons team. The Material Font is a new variable font that we don't currently have any Compose APIs for.
Description
I was expecting to be able to configure my symbols like in SwuitUI:
```
Image(systemName: "multiply.circle.fill")
.foregroundStyle(.teal, .gray)
.fontWeight(.ultraLight)
.font(.system(size: 42.0))
```
I thought it was possible after reading the [Icon & Material Symbol styles](
### Issue
1. It seems that there isn't a `Material Symbols` dependency that I can include in my app to download the `Material Symbols` font programmatically
2. I downloaded the fonts from the [google / material-design-icons](
```
val materialIconsRoundedFontFamily = FontFamily(Font(
R.font.materialsymbolsrounded, FontWeight.Normal))
Material3Text(
text = "\ue87d", // Favorite icon
fontFamily = materialIconsRoundedFontFamily,
fontSize = 24.sp,
fontWeight = FontWeight.Light
)
```
But the **.ttf** will become stale and obsolete.
### Expected
I expect to add a "dependency" that will allow me to consume the **Material Symbols** as a Font instead of as an _ImageVector_ as shown in the code below.
### Not Expected
I added the `androidx.compose.material:material-icons-extended` dependency because I need several extended icons in my app, but that makes the footprint of my app larger. Also, I am avoiding adding vector resources.