如果有使用多种字体怎么办呢?
来源:6-14 如何自定义字体?
chv
2019-08-10
fonts:
- family: Rubik-Light
fonts:
- asset: fonts/Rubik-Light.ttf
写回答
1回答
-
fonts节点下直接添加就行例如:
flutter:
fonts:
- family: Raleway
fonts:
- asset: assets/fonts/Raleway-Regular.ttf
- asset: assets/fonts/Raleway-Medium.ttf
weight: 500
- asset: assets/fonts/Raleway-SemiBold.ttf
weight: 600
- family: AbrilFatface
fonts:
- asset: assets/fonts/abrilfatface/AbrilFatface-Regular.ttf122022-09-14
相似问题