Commit 6c28834
committed
🐛 Work around pdf-core expecting padded tags
The `scriptTag` and `langSysTag` properties in the shape options are
expected by `pdf-core` to be 4-character tags. Tags that are shorter
than 4 characters won't be recognized correctly.
This commit adds padding to these tags to ensure they are 4 characters
long, which is a workaround for the current behavior of `pdf-core`.
An example for setting the `language` property to select alternative
glyphs is added to the `examples/text.ts`.1 parent f5d1a8f commit 6c28834
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
0 commit comments