Hi, I'm seeing an odd bug with the rendering of Noto Sans Devanagari where the characters in the word "ड्युडेनम" are being displayed incorrectly.
The attached screenshot shows how Prince is rendering the text incorrectly - however when using the default Lohit Devanagari font the word is displayed correctly by Prince.
Noto Sans Devanagari also renders the word fine in the browser, so this seems like something specific to the way Prince is handling the script.
I'm using system font discovery for the fonts, so my question is: Is there any way I can ensure that Noto Sans Devanagari is handled correctly by Prince using CSS font-features or something similar (i.e. by manually defining the fonts)?
My current workflow looks like this:
The docker base image uses Debian 12, and I am running Prince 15.4.1.
Thanks,
James
The attached screenshot shows how Prince is rendering the text incorrectly - however when using the default Lohit Devanagari font the word is displayed correctly by Prince.
Noto Sans Devanagari also renders the word fine in the browser, so this seems like something specific to the way Prince is handling the script.
I'm using system font discovery for the fonts, so my question is: Is there any way I can ensure that Noto Sans Devanagari is handled correctly by Prince using CSS font-features or something similar (i.e. by manually defining the fonts)?
My current workflow looks like this:
- Prince is installed on a docker image (using
as the base image) with the following fonts installed:python:3.13
- fonts-lato
- fonts-noto
- fonts-noto-cjk
- fonts-noto-extra
- fonts-noto-cjk-extra
- fonts-noto-ui-core
- fonts-noto-ui-extra
- fonts-khmeros
- fonts-lklug-sinhala
- fonts-tlwg-garuda-otf
- fonts-lohit-orya
- fonts-lohit-mlym
- fonts-lohit-knda
- fonts-lohit-telu
- fonts-lohit-taml
- fonts-lohit-gujr
- fonts-lohit-guru
- fonts-lohit-beng-bengali
- fonts-lohit-deva
- fonts-baekmuk
- fonts-ipafont-mincho
- fonts-arphic-uming
- fonts-opensymbol
- fonts-liberation2
- ttf-mscorefonts-installer
- Prince CLI is then called via Python
to render HTML in a file to a PDFos.popen
- CSS stylesheets and a layout JS script are passed as
and--style=
args--script=
The docker base image uses Debian 12, and I am running Prince 15.4.1.
Thanks,
James