Home > Back-end >  I Can't use font of two words in flutter
I Can't use font of two words in flutter

Time:07-27

Can I ask how to add a font to flutter consisting of two words, do I put _ or put a space or write the two words next to each other?

I mean like 'Arima' it's a font from one word so when I add it to pubspec.yaml I will write -family: Arima so if I have a font like 'Cormorant SC' what should I write in pubspec.yaml -family: Cormorant_Sc or -family: CormorantSc or what ?

CodePudding user response:

Try to write

CormorantSC

in your pubspec.yaml file

CodePudding user response:

Both will work.. if you notice the example in pubspec file you will also see a font name with space

  #   - family: Trajan Pro 
   #     fonts: 
   #       - asset: fonts/TrajanPro.ttf 
   #       - asset: fonts/TrajanPro_Bold.ttf 
   #         weight: 700
  • Related