What is the way to add images and font assets to a...
# compose-desktop
m
What is the way to add images and font assets to a compose desktop project and how will they be referenced in code?
s
Add your fonts to the
resource
directory and use them like this:
Copy code
val JosefinSans = fontFamily(
    font(alias = "JosefinSans-Light", path = "JosefinSans-Light.ttf", weight = FontWeight.W300)
)
Here, JosefinSans-Light.ttf is in the resource directory. You can create a sub folder for fonts.
👍 3
m
👍