Flutter: [Fatal Error] Can't use custom Fonts

Issue I didn’t get any error in normal flutter run, but the apk crashes with the following error: E/flutter (18669): [ERROR:flutter/third_party/txt/src/minikin/FontFamily.cpp(184)] Could not get cmap table size! E/flutter (18669): F/flutter (18669): [FATAL:flutter/third_party/txt/src/minikin/FontCollection.cpp(95)] nTypefaces == 0 I have tried all the

Continue reading

Flutter custom font only rendering two weights despite font metadata having the exact weight numbers

Issue My import in pubspec.yaml is standard enough. I do know that pubspec ignores the weight. fonts: – family: Museo_Slab fonts: – asset: assets/fonts/Museo_Slab/Museo_Slab_100.otf weight: 100 – asset: assets/fonts/Museo_Slab/Museo_Slab_300.otf weight: 300 – asset: assets/fonts/Museo_Slab/Museo_Slab_500.otf weight: 500 – asset: assets/fonts/Museo_Slab/Museo_Slab_700.otf weight:

Continue reading