Questions tagged [flutter-font]
10 questions
54
votes
16 answers
Flutter - Custom Font not displaying
This is an excerpt of my pubspec.yaml file:
flutter:
uses-material-design: true
fonts:
- family: Coiny
fonts:
- asset: fonts/Coiny-Regular.ttf
I am trying to use the font called "Coiny" from the Google Fonts page. I created a…

OhMad
- 6,871
- 20
- 56
- 85
3
votes
2 answers
How do I set letterSpacing for whole app in Flutter?
I am working with Flutter and I know that letterSpacing property is useful to give some spacing between letters.
I want to give it to the whole application, I mean wherever I wrote any text in application. I want to set 1.0 letter spacing to all the…

Pratik Butani
- 60,504
- 58
- 273
- 437
1
vote
0 answers
Flutter - how get default system font?
I using custom font for my Flutter app:
return MaterialApp (
theme: ThemeData(
fontFamily: "MyFont"
)
)
but in one place of application I need to use "system font". this is especially important for iOS (Sf Pro). If I…

FetFrumos
- 5,388
- 8
- 60
- 98
1
vote
1 answer
Expected "fonts" to be a list of maps
I downloaded a font and placed it in assets.
pubspec.yaml
fonts:
- family: Noor Regular
fonts:
- asset:assets/fonts/noorehuda-Regular.ttf
Error:
Error detected in pubspec.yaml:
Expected "fonts" to be a list of maps.

Irfan Y
- 1,242
- 2
- 21
- 68
0
votes
1 answer
How to dynamically change the font size in the text field
I am writing an application on Flutter. I want to dynamically change the font size in the text field (actually TextFormField) when the number of characters in it increases. What I want to achieve is that when a user enters a huge amount, I want to…

Drompai
- 111
- 1
- 7
0
votes
0 answers
Flutter Open Pdf File That Has Helvetica Font Doesn't Show Capital 'i' Character in PDF
Our flutter application has a feature that gets the response from server and this response has encrypted pdf content. We decode the response and it gives us base64 content. When I try to use OpenFile function, it opens the pdf but some Turkish…

Mykyusuf
- 39
- 4
0
votes
1 answer
How to use chinese fonts with chinese characters in Flutter?
I'm trying to show Chinese characters in my Flutter web app with Chinese font. Something like this.
After downloading the font ttf file, I applied it to my Chinese characters, but it doesn't seem to work.
Here is how I apply my styling.
Text(
…

InvalidHop
- 104
- 1
- 10
0
votes
1 answer
Flutter: Use Icon Font From Another Package
I developed separated UI package for my project.
Here is it's simplified structure:
project:
│
...
│
├── lib:
│ │
│ └── classes using AppIcons.ttf:
│
└── packages:
│
└── ui-kit:
│
├── lib:
│ │
│ └──…

Sergey Lobanov
- 91
- 5
0
votes
1 answer
Flutter custom icon generator - stroke width not being applied to custom icons font
When using https://www.fluttericon.com/, how can I make the icons thicker?
I found that they need a stroke-width so I added that to the generated config.json:
"svg": {
"path": "M92.5 294.3C92.8 294.3 93.1 294.3 93.5 294.3 101.7…

BeniaminoBaggins
- 11,202
- 41
- 152
- 287
-1
votes
2 answers
Flutter - different asset path in package's example when building
When creating a custom package that contains font as a .ttf file. I try to download the font file also in the example app that is contained in the package.
The font is downloaded successfully on iOS and macOS apps but not on Linux or Web.
The web…

Niko Lipponen
- 31
- 1
- 3