搜尋套件、儲存庫與 APP 分類

persian_fonts 封面
套件詳情v1.0.6

persian_fonts

一個用於使用免費波斯字體的Flutter套件。支援Vazir、Samim、Shabnam和Sahel字體。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
157
喜歡數
43
Pub 分數
150

安裝套件

flutter pub add persian_fonts

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

persian_fonts 套件為 Flutter 應用程式提供對流行免費波斯字型(Vazir、Samim、Shabnam 與 Sahel)的輕鬆整合。它簡化了在 Android、iOS、Web、macOS、Windows 與 Linux 等多個平台載入與使用這些字型的過程。專為針對波斯語使用者的開發者設計,確保一致的排版效果,無需手動管理字型檔案。此套件輕量且與 Flutter 的字型系統相容。

適用情境

  • 顯示具有原生外觀的波斯文字體
  • 為伊朗或波斯語使用者建構應用程式
  • 確保多語言應用程式中的一致性排版
  • 使用符合文化背景的字體自定義UI
  • 簡化 Flutter 專案中的字型資源整合

主要特色

  • 支援 Vazir、Samim、Shabnam 與 Sahel 字型
  • 跨平台相容性
  • 透過 pub add 命令輕鬆設定
  • 無需手動管理字體檔案
  • Flutter 的內建字型設定
  • 免費開源

適合對象

  • 面向波斯語受眾的Flutter開發者
  • 需要精確波斯文排版的應用程式
  • 項目需要最少的字體設定
  • 開源專案預算有限
  • 尋求快速本地化的開發者

使用建議

  • 字型僅限於四種特定系列
  • 可能需要額外的樣式設定以實現進階排版控制
  • 不適合用於文字量大的非波斯文應用
  • 依賴外部 GitHub 倉庫
  • 字型授權應針對商業使用進行審查

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

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

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。