I have a custom font, in which my "fi" is replaced with "r". Do you have any idea how to disable ligatures in my fonts in Flutter?
Asked
Active
Viewed 1,695 times
1
-
Have you added your custom font correctly? – Praneeth Dhanushka Fernando Jun 10 '19 at 09:11
-
I think so. Like this: fonts: - family: Cond fonts: - asset: fonts/Cond-Regular.ttf - asset: fonts/Cond-Bold.ttf - asset: fonts/Cond-Bold-Italic.ttf - asset: fonts/Cond-Italic.ttf - asset: fonts/Cond-Light-Italic.ttf - asset: fonts/Cond-Light.ttf – Mantykora Jun 10 '19 at 09:15
-
Added it to the text style of the Text widget? – Praneeth Dhanushka Fernando Jun 10 '19 at 09:16
-
No, to pubspeck.yaml . font in Material App just fontFamily: 'Cond', – Mantykora Jun 10 '19 at 09:19
-
Could you let me know which custom font you are using? You can try using Google fonts. As Flutter works with custom fonts and you can apply a custom font across an entire app or to individual widgets. I was not able to see any issues while running ‘Pacifico’ family with font size 20. You can check more info on this thread : https://stackoverflow.com/questions/54041520/how-to-handle-font-size-on-different-type-of-resolution?answertab=active#tab-top If you are still having issues, then please help with your pubspec.yaml and Dart file. – Android4Fun Oct 17 '19 at 23:31
1 Answers
0
If you've followed how to add custom font in your entire Flutter app, there shouldn't be any problem.
Flutter works with custom fonts and you can apply a custom font across an entire app or to individual widgets. This recipe creates an app that uses custom fonts with the following steps:
- Import the font files.
- Declare the font in the pubspec.
- Set a font as the default.
- Use a font in a specific widget.
If this is not the case, try to provide a a minimal, complete and verifiable example.

MαπμQμαπkγVπ.0
- 5,887
- 1
- 27
- 65