搜索插件、代码仓与 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,
  ),
);

所属分类

源码仓库

使用此插件的项目

暂无相关数据。