Skip to content

Commit f68fd63

Browse files
committed
feat: HackGenフォントファミリーを追加し、pubspec.yamlを更新
1 parent 80e2146 commit f68fd63

10 files changed

+30
-1
lines changed

assets/fonts/HackGen-Bold.ttf

10.7 MB
Binary file not shown.

assets/fonts/HackGen-Regular.ttf

10.2 MB
Binary file not shown.

assets/fonts/HackGen35-Bold.ttf

10.7 MB
Binary file not shown.

assets/fonts/HackGen35-Regular.ttf

10.2 MB
Binary file not shown.
10.7 MB
Binary file not shown.
10.2 MB
Binary file not shown.
10.7 MB
Binary file not shown.
10.2 MB
Binary file not shown.

lib/providers/theme_provider.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ const List<String> defaultCodeFontFamilies = [
1818

1919
// Add your asset-based font family names here (must match pubspec.yaml fonts.family)
2020
const List<String> assetCodeFontFamilies = [
21-
// e.g. 'MyCodeFont', 'SFMono'
21+
'HackGen',
22+
'HackGen35',
23+
'HackGenConsole',
24+
'HackGen35Console',
2225
];
2326

2427
class ThemeProvider extends ChangeNotifier {

pubspec.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,32 @@ flutter:
7474
- assets/icon/twitter_logo.svg
7575
- assets/icon/youtube_logo.svg
7676
- assets/icon/github_logo.svg
77+
fonts:
78+
- family: HackGen
79+
fonts:
80+
- asset: assets/fonts/HackGen-Regular.ttf
81+
weight: 400
82+
- asset: assets/fonts/HackGen-Bold.ttf
83+
weight: 700
84+
- family: HackGen35
85+
fonts:
86+
- asset: assets/fonts/HackGen35-Regular.ttf
87+
weight: 400
88+
- asset: assets/fonts/HackGen35-Bold.ttf
89+
weight: 700
90+
- family: HackGenConsole
91+
fonts:
92+
- asset: assets/fonts/HackGenConsole-Regular.ttf
93+
weight: 400
94+
- asset: assets/fonts/HackGenConsole-Bold.ttf
95+
weight: 700
96+
- family: HackGen35Console
97+
fonts:
98+
- asset: assets/fonts/HackGen35Console-Regular.ttf
99+
weight: 400
100+
- asset: assets/fonts/HackGen35Console-Bold.ttf
101+
weight: 700
102+
77103

78104
flutter_launcher_icons:
79105
android: true

0 commit comments

Comments
 (0)