Closed
Description
I'm trying to apply a custom font to my app but I ran into a bug (I'm not sure I can call it a bug though π ). So this is the issue, adding these two code snippets (separately) results into two different renderings.
fonts:
- family: Rubik
fonts:
- asset: assets/fonts/Rubik-Black.ttf
- asset: assets/fonts/Rubik-Medium.ttf
- asset: assets/fonts/Rubik-Regular.ttf
Renders this:
fonts:
- family: Rubik
fonts:
- asset: assets/fonts/Rubik-Regular.ttf
- asset: assets/fonts/Rubik-Medium.ttf
- asset: assets/fonts/Rubik-Black.ttf
Renders this:
It seems that the order of the assets matters or that the fonts
mapping only considers the first asset. Anyway this is a strange behavior.
Flutter Version
Flutter β’ channel master β’ https://github.com/flutter/flutter.git
Framework β’ revision b41645c (3 days ago) β’ 2016-10-28 14:37:17
Engine β’ revision 1bc79de
Tools β’ Dart 1.21.0-dev.2.0