Skip to content

charset: Add Devanagari Unicode range to utf-8 charsets#141

Merged
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
shreyanshtiwari4:feature/devanagari-font-selection
Apr 1, 2026
Merged

charset: Add Devanagari Unicode range to utf-8 charsets#141
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
shreyanshtiwari4:feature/devanagari-font-selection

Conversation

@shreyanshtiwari4
Copy link
Copy Markdown
Contributor

This PR adds the Devanagari Unicode range (U+0900-097F) to the pdf.utf-8 charset configurations in texttopdf. This enables the filter to correctly map Devanagari text to appropriate fonts (like NotoSansDevanagari).

Currently, libcupsfilters does not support Devanagari out of the box, preventing the generation of PDFs containing Hindi text.

Note: For this mapping to resolve successfully with proportional fonts like Noto Sans Devanagari, the strict FC_MONO constraint in Fontconfig candidate filtering must be removed. I have submitted that C code fix in a separate companion PR.

Adds charset configuration for Devanagari (U+0900-097F) in texttopdf.

This enables correct font selection for Devanagari text by mapping the Unicode range to appropriate fonts such as NotoSansDevanagari.

With this change, texttopdf can correctly process and render Devanagari text when suitable fonts are available on the system.

Note: This relies on proper font selection behavior (see related fix removing monospace-only constraint restriction).
@tillkamppeter tillkamppeter merged commit 42d458a into OpenPrinting:master Apr 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants