Forum How do I...?

font (or maybe span) problem

adnanY
Hi guys,

as you can see in the attached pic the rendered pdf differs from the html. what you see is a span with text inside a div. the div is a flex-container, but thats not the problem, i think.

thx in advance...
  1. htmlpdfspanfont.jpg6.1 kB
mikeday
Can you attach a small sample of HTML/CSS that demonstrates the problem?
adnanY
sure:
  1. divspan.jpg331.3 kB
adnanY
when i create a font-face in css which type is princexml choosing if there is eot,woff,ttf and svg?


update:
no, wrong way. just tested it with font-family:sans-serif -> same result.

Edited by adnanY

mikeday
Prince does not support eot or SVG fonts, so it will be one of the others.
adnanY
ok. also sans-serif looks the same, so its not dependig on font-format. right?

maybe line-height? will try.

Edited by adnanY

adnanY
yes, that solved this problem. i equalize the line-height with the font-size.

thx...

Edited by adnanY