Forum Bugs

raster bug with font-variant:small-caps

justin.barkhuff
When using the raster options to generate a PNG, things get really weird if my CSS contains "font-variant:small-caps". However, a PDF generated from the same input looks correct. See the attachments to compare.

Prince Version: Prince 20160617

Source input: https://stg02.rltools.com/page/prince?campaignKey=5925ce5b263f08ea09e60bd770cd2330&page=0&res=low

Command to generate PNG: prince --css-dpi=72 --insecure --javascript --raster-format=png --raster-pages=first --raster-dpi=72 --raster-output="test.png" "https://stg02.rltools.com/page/prince?campaignKey=5925ce5b263f08ea09e60bd770cd2330&page=0&res=low"

Command to generate PDF: prince --css-dpi=72 --insecure --javascript "https://stg02.rltools.com/page/prince?campaignKey=5925ce5b263f08ea09e60bd770cd2330&page=0&res=low" -o "test.pdf"

Any idea what is going on?
  1. test.pdf62.5 kB
    The generated PDF looks good
  2. test.png14.1 kB
    What the heck is going on here
justin.barkhuff
And in case it isn't obvious, the specific issue with the PNG is that some of the small-caps letters are flipped upside down. What could cause that?
wangp
This bug was fixed in the 20161018 release. It is not present in the Prince 11 releases.
justin.barkhuff
Thanks. I'll try Prince 11.