Last updated:
0 purchases
persian fonts
persian_fonts #
A Flutter package for using free persian fonts.
The persian_fonts package for Flutter allows you to easily use any free persian fonts in your app.
Getting Started #
Currently, PersianFonts supports 5 types of fonts: Vazir, Samim, Shabnam, Sahel and B-Yekan. yours isn't hrere? add it!
First, add the persian_fonts package to your pubsec dependencies.
To import PersianFonts:
import 'package:persian_fonts/persian_fonts.dart';
copied to clipboard
To use PersianFonts as the default TextStyle:
Text(
'These are persian fonts.',
style: PersianFonts.Samim,
),
copied to clipboard
To use PersianFonts with a customized TextStyle:
Text(
'These are persian fonts.',
style: PersianFonts.Samim.copyWith(
...
),
),
copied to clipboard
You can also use PersianFonts to make or modify an entire text theme to use one of the supported fonts:
MaterialApp(
theme: ThemeData(
textTheme: PersianFonts.vazirTextTheme,
),
);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.