Forum How do I...?

svg inline font encoding not working in pdf

Chella
Hi Mike,

We are trying to generate PDF with svg equation. In that svg, equation font is embedded wiht base 64. This is not reflecting in PDF. How to solve this? I have attached svg and screen shot for your reference.

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

  1. EQ-OUTPUT.pdf35.6 kB
    OUTPUT
  2. EQ.pdf41.1 kB
    Requied
  3. si6.svg11.7 kB
    InlineFontEncoding
  4. svg-def-style.png346.2 kB
    screenshot
mikeday
Sorry, Prince does not currently support @font-face rules in external SVG images, only in the main document and external style sheets.
Chella
Thanks Mike,

May I know this feature is in your roadmap already? if not can you take it up?

Thanks & Regards,
Chella|TNQ Technologies
+91 98 84 504995

mikeday
Yes, it's on the roadmap.
mikeday
We have now released a latest build that supports font-face rules within embedded SVG images. Please note that browsers only support fonts embedded in SVG as data: URLs, so referring to external fonts over HTTP may not be interoperable.