-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
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
Metadata
Metadata
Assignees
Labels
engineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.

