PR
Calendar
Keyword Search
Category
Comments
「#20 Flutter入門講座 font編」
Fontを変える方法
・https://fonts.google.com/ から探す
セリフ:文字の曲がり角などの飾り付け
サンセリフ(セリフ無し)
monospace(モノスペース):文字の横幅が同じ
monoじゃない(プロポーショナル)
手書き風(handwriting)
・並び変えボタンでMost popular にする
・Language をJapanese にする
・文字を選んでDownload family を押す
・Download したファイルを開いたらAssets > google_fonts フォルダを作成してxxx.ttf ファイルなどすべてを入れる
pubspec.yaml に
| LicenseRegistry.addLicense(() async* { |
|---|
| final license = await rootBundle.loadString( |
| 'google_fonts/OFL.txt', |
| ); |
| yield LicenseEntryWithLineBreaks( |
| ['google_fonts'], |
| license, |
| ); |
| }); |

flutterでアプリの作成…?(Flutter入門講… 2024.03.22
flutterでアプリの作成…?(Flutter入門講… 2024.03.21
flutterでアプリの作成…?(Flutter入門講… 2024.03.20