Forum How do I...?

issue with Nepali (Kokila) font

rsafin
I try generate pdf from html via console, but one character प्र rendered wrong (img attached)

I use config /usr/lib/prince/style/fonts.css

@font-face {
font-family: serif;
src: url("/usr/share/fonts/truetype/kokila/kokila.ttf")
}
  1. 1a5bd30ff8ab14c46e751701078f692b.pdf1.4 MB
    pdf with wrong char
  2. kokila.ttf178.5 kB
    font file
  3. wrong.png8.3 kB
    wrong character
mikeday
Would you be able to attach the HTML as well?
rsafin
command looks like

/usr/bin/prince --server --insecure --log=\"/var/www/runtime/prince.log" --fileroot=\"/var/www/" --page-size="letter portrait" --pdf-profile="PDF/X-3:2003" --pdf-output-intent=/usr/lib/prince/icc/ISOcoated_v2_eci.icc - -o "/var/www/5520560564042c882fd8e796cb84fd13.pdf"
  1. pdf.html4.3 kB
mikeday
This appears to be caused by a bug in the font's Indic1 substitutions. Newer versions of Prince support Indic2 which avoids this problem, are you able to upgrade?
rsafin
Now I use 12.4 version of prince.
I will update prince and try generate pdf again
thx.