Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Fontsを使えるようにする #420

Closed
poppingmoon opened this issue Oct 26, 2023 · 5 comments
Closed

Google Fontsを使えるようにする #420

poppingmoon opened this issue Oct 26, 2023 · 5 comments

Comments

@poppingmoon
Copy link
Contributor

Google Fontsで公開されているフォントを適用できるようにする

pubspec.yamlには既に入っていた

google_fonts: ^4.0.4

@poppingmoon
Copy link
Contributor Author

poppingmoon@96f948f

フォントを切り替えるのはできたけど大量にフォントが表示されてわかりにくい

image

@Npepperlinux
Copy link
Contributor

Npepperlinux commented Nov 14, 2023

全フォントファミリーの数が1576種類あることを考えると、flutter_font_pickerを利用するか、選択するフォントを日本語(草薙、薔薇が表示可能)に対応したもの(48種類)に絞り込む必要があると思います(前者を選んでもYou should only use a limited number of them for performance and data savingとなっていますが…)。

日本語フォント(漢字可)一覧
"Noto Sans Japanese",
"Noto Serif Japanese",
"M PLUS Rounded 1c",
"M PLUS 1p",
"Dela Gothic One",
"Zen Kaku Gothic New",
"Kosugi Maru",
"Shippori Mincho",
"Zen Maru Gothic",
"BIZ UDPGothic",
"Zen Antique",
"Kosugi",
"Kiwi Maru",
"Zen Old Mincho",
"M PLUS 1",
"Shippori Mincho B1",
"Klee One",
"RocknRoll One",
"Zen Kaku Gothic Antique",
"Kaisei Decol",
"Zen Kurenaido",
"M PLUS 2",
"DotGothic16",
"Yusei Magic",
"Kaisei Opti",
"BIZ UDPMincho",
"Reggae One",
"Kaisei Tokumin",
"PottaOne",
"Rampart One",
"Shippori Antique",
"Stick",
"BIZ UDGothic",
"Hani Mincho",
"Hachi Maru Pop",
"IBM Plex Sans JP",
"Mochiy Pop P One",
"Yuji Mai",
"Yuji Syuku",
"Yomogi",
"Zen Antique Soft",
"Kaisei HarunoUmi",
"New Tegomin",
"Shippori Antique B1",
"BIZ UDMincho",
"M PLUS 1 Code",
"Yuji Boku",

ひとつ見落としているかもしれない。

@poppingmoon
Copy link
Contributor Author

poppingmoon@351ad2d

flutter_font_picker を使ってみました

image

どうせたまにしか使わない機能だろうということでREADMEを無視しています

@shiosyakeyakini-info
Copy link
Owner

shiosyakeyakini-info commented Nov 19, 2023

Google Fontsの日本語の枠 にあるフォントを選べる、$[font.毎(monospace, serif, cursive, fantasy)に選べる でやってみよ

@poppingmoon
Copy link
Contributor Author

2154698 で実装されたためcloseします

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants