Home > database >  Flutter How to use Times New Roman Font style in Text
Flutter How to use Times New Roman Font style in Text

Time:11-01

I'm need to implement Times New Roman Font in my flutter project. I tried google_font packege but in that i didn't find any font.

Can anyone please help on this.

Thanks in Advance.

CodePudding user response:

1.Download your custom fonts

2.Add it in your projects

enter image description here

3.Declare in your pubspec.yaml

flutter:
  uses-material-design: true
  fonts:
    - family: Times
      fonts:
        - asset: assets/fonts/times/times.ttf

4.Call it your MaterialApp()

     MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(fontFamily: 'Times'),
      home: const LandingPage(),
    );

CodePudding user response:

hi you can use Font from others source download add it in your project. enter image description here

  • Related