Search packages, repositories and app categories

persian_fonts cover
Package detailsv1.0.6

persian_fonts

A Flutter package for using free persian fonts. It supports Vazir, Samim, Shabnam and Sahel fonts.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
157
Likes
43
Pub points
150

Install package

flutter pub add persian_fonts

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The persian_fonts package provides easy integration of popular free Persian fonts—Vazir, Samim, Shabnam, and Sahel—into Flutter applications. It simplifies the process of loading and using these fonts across multiple platforms, including Android, iOS, Web, macOS, Windows, and Linux. Designed for developers targeting Persian-speaking audiences, it ensures consistent typography without manual font file management. The package is lightweight and compatible with Flutter’s font system.

Use cases

  • Displaying Persian text with native-looking fonts
  • Building apps for Iranian or Persian-speaking users
  • Ensuring consistent typography in multilingual apps
  • Customizing UI with culturally appropriate fonts
  • Simplifying font asset integration in Flutter projects

Key features

  • Supports Vazir, Samim, Shabnam, and Sahel fonts
  • Cross-platform compatibility
  • Easy setup via pub add command
  • No need to manually manage font files
  • Built-in font configuration for Flutter
  • Free and open-source

Suitable for

  • Flutter developers targeting Persian audiences
  • Apps requiring accurate Persian typography
  • Projects needing minimal font setup
  • Open-source projects with budget constraints
  • Developers seeking quick localization for Persian language

Considerations

  • Fonts are limited to four specific families
  • May require additional styling for advanced typographic control
  • Not suitable for non-Persian text-heavy apps
  • Depends on external GitHub repository
  • Font licensing should be reviewed for commercial use

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

persian_fonts_flutter

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';

To use PersianFonts as the default TextStyle:

Text(
  'These are persian fonts.',
  style: PersianFonts.Samim,
),

To use PersianFonts with a customized TextStyle:

Text(
  'These are persian fonts.',
  style: PersianFonts.Samim.copyWith(
    ...
    ),
),

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,
  ),
);

Categories

Source repository

Projects using this package

No data available yet.