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

Noto fonts missing character #13

Open
KaushickSArgekar opened this issue Apr 29, 2021 · 6 comments
Open

Noto fonts missing character #13

KaushickSArgekar opened this issue Apr 29, 2021 · 6 comments

Comments

@KaushickSArgekar
Copy link

Could not find a set of Noto fonts to display all missing characters. Please add a font asset for the missing characters. See: https://flutter.dev/docs/cookbook/design/fonts

@SergeShkurko
Copy link
Member

@KaushickSArgekar you added font at pubspec? (from readme instruction)
image

also need run flutter clean and restart app

@KaushickSArgekar
Copy link
Author

Yes, @SergeShkurko I have added the font family in pubspec.yamil.

flutter:
fonts:
- family: AppIcons
fonts:
- asset: lib/assets/icons/app_icons.ttf

@KaushickSArgekar
Copy link
Author

I am using the icons in the package and then exporting them in a project.

@SergeShkurko
Copy link
Member

@KaushickSArgekar

Could not find a set of Noto

here the font is named differently

@infinito84
Copy link

Works from restart the flutter run process

@andreyp3054
Copy link

andreyp3054 commented Jun 26, 2024

I solved the bug by setting the correct font family in the pubspec.yaml file.
Steps:

  1. Go to the generated icon font file, in my case the name is my_icons.dart
    image
  2. Copy the iconFontFamily value
  3. Paste the value to the font family config
    image

Better/Organized way: If you are using icon_font.yaml to generate the custom fonts, follow these steps:

  1. Create icon_font.yaml file
icon_font:
  input_svg_dir: "assets/svg/"
  output_font_file: "fonts/my_icons_font.otf"
  
  output_class_file: "lib/my_icons.dart"
  class_name: "MyIcons"
  package: my_font_package     // remove this if you don't know how to set the package in pubspec.yaml
  format: true

  font_name: "My Icons"
  normalize: true
  ignore_shapes: true

  recursive: true
  verbose: false

Note: I removed the package config in my case
2. Run this command in CLI:
dart run icon_font_generator:generator --config-file=icon_font.yaml -r
Copy the iconFontFamily value from the generated dart file.

  1. Add dependencies to pubspec.yaml and use the iconFontFamily value correctly ( 'My Icons' in this case)
    example:
fonts:
    - family: My Icons
      fonts:
        - asset: fonts/my_icons_font.otf

If this does not work, please comment again. Thanks!

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

4 participants