Skip to content

Commit 42d458a

Browse files
charset: Add Devanagari Unicode range to utf-8 charsets (#141)
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).
1 parent 3ee9507 commit 42d458a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

charset/pdf.utf-8.heavy.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ charset utf8
3737
1E00 1EFF ltor single CourierNew CourierNew:bold CourierNew:italic CourierNew:bold:italic
3838
2000 21FF ltor single DejaVuSansMono DejaVuSansMono:bold DejaVuSansMono:oblique DejaVuSansMono:bold:oblique
3939
2200 23FF ltor single Symbol
40+
0900 097F ltor single NotoSansDevanagari NotoSansDevanagari:bold NotoSansDevanagari:oblique NotoSansDevanagari:bold:oblique
4041
3000 9FFF ltor double @CJKFONTS@
4142
#0400 04FF ltor single FreeMono FreeMono:bold FreeMono:oblique FreeMono:bold:oblique

charset/pdf.utf-8.simple.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ charset utf8
3131
0000 04FF ltor single monospace monospace:bold monospace:oblique monospace:bold:oblique
3232
0500 05FF rtol single monospace
3333
0600 06FF rtol single monospace
34+
0900 097F ltor single NotoSansDevanagari
3435
3000 9FFF ltor double @CJKFONTS@

0 commit comments

Comments
 (0)