telugu_pdf_fixer 1.0.0 copy "telugu_pdf_fixer: ^1.0.0" to clipboard
telugu_pdf_fixer: ^1.0.0 copied to clipboard

Unicode-first Telugu PDF text shaping for Flutter, powered by pdf_text_shaper and HarfBuzz.

telugu_pdf_fixer #

Unicode-first Telugu text rendering for PDFs generated with Flutter's pdf package.

This package is a thin language-focused facade over pdf_text_shaper. HarfBuzz performs real OpenType shaping while this package adds convenient font loading, script detection and PDF widgets.

Features #

  • HarfBuzz GSUB/GPOS shaping through pdf_text_shaper
  • Unicode-first Telugu text
  • fallback fonts for mixed-script documents
  • multiline wrapping and reusable typography
  • optional invisible Unicode layer for search/copy
  • TeluguText, TeluguParagraph, TeluguHeader
  • TeluguRichText, TeluguBulletList, TeluguTable
  • TeluguFontManager with safe asset caching/retry
  • no bundled fonts

Install #

dependencies:
  telugu_pdf_fixer: ^1.0.0

Add a Unicode OpenType font that supports the Telugu script. For example, a suitable Noto font such as NotoSansTelugu-Regular.ttf.

Basic usage #

final font = await TeluguFontManager.instance.loadAsset(
  'assets/fonts/NotoSansTelugu-Regular.ttf',
);

TeluguParagraph(
  'తెలుగు: నేను తెలుగులో వ్రాస్తున్నాను.',
  font: font,
  fontSize: 14,
)

Typography #

final typography = TeluguTypography(
  regularFont: regular,
  boldFont: bold,
  fallbackFonts: [latinRegular],
  boldFallbackFonts: [latinBold],
);

TeluguHeader(
  'Telugu document',
  style: typography.heading(fontSize: 24),
)

Detection #

'తెలుగు: నేను తెలుగులో వ్రాస్తున్నాను.'.containsTelugu; // true

Font lifecycle #

await TeluguFontManager.instance.dispose();

The package intentionally does not bundle fonts. Verify the license of any font you ship with your application.

Platforms #

Android, iOS, Linux, macOS and Windows. Web is not currently supported by the native shaping backend.

0
likes
150
points
84
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Unicode-first Telugu PDF text shaping for Flutter, powered by pdf_text_shaper and HarfBuzz.

Repository (GitHub)
View/report issues

Topics

#telugu #glyph #pdf #unicode #typography

License

Apache-2.0 (license)

Dependencies

flutter, pdf, pdf_text_shaper

More

Packages that depend on telugu_pdf_fixer