bangla_pdf library
A Flutter package to fix broken font issues in PDFs for Bangla text.
This package provides widgets like Text, Table, BulletList, etc., that automatically handle mixed Bangla and English text rendering in PDFs.
Since 1.1.0 Bangla is shaped with the font's own OpenType GSUB/GPOS tables, so conjuncts, reph, phalas and pre-base vowel signs render correctly and the text copies out of the PDF as the original Unicode. The legacy Bijoy ANSI pipeline is still available through BanglaShapingMode.legacy.
Classes
- AutoText
- Text that splits Bangla from non-Bangla and fonts each part separately.
- BanglaFontManager
- Singleton Font Manager for Bangla Fonts.
- BanglaPdf
- Package-wide configuration.
- BanglaUnicodeMapper
- What It Does?:
- BulletList
- A bulleted list, with Bangla shaped correctly.
- FixingUtils
- Header
- A heading, with Bangla shaped correctly.
- Paragraph
- A paragraph, with Bangla shaped correctly.
- RichText
- Rich text with per-span styling, with Bangla shaped correctly.
- RichTextItem
- A text span descriptor that nothing in this package has ever consumed.
- ShapedCluster
- One indivisible unit of shaped text: the glyphs of a single syllable and the exact source substring they came from.
- ShapedRun
- A shaped run: glyphs in visual order plus the text they came from.
- Table
- A table, with Bangla shaped correctly in every cell.
- Text
- Text with Bangla shaped correctly.
- TextSpan
- One span inside a RichText.
Enums
- BanglaShapingMode
- How Bangla text is turned into glyphs.
Extensions
- BanglaShapeForPdf on String
-
Shapes this string for PDF output with
font. - BanglaTextExtension on String