Replies: 1 comment 1 reply
-
SVG is fragmentary so I don't know how you want it to be styled... It is possible to apply fonts using PrivateFont. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I added Font Face to SVG, Font family shows in SVG Preview, but when I convert SVG to Bitmap using Draw method, then save the Bitmap to PNG, JPG. It does not render the font.
NOTE: The font shows on SVG but not in PNG, JPG
Example data
<style> https://github.com/font-face { font-family:Segoe Pro Bold; src: url("data:font/truetype;charset=utf-8;base64, my fonts base64 code") format('truetype'); } </style>Code in SVG:
Code in C#
Bitmap bmp = mySvg.Draw(pixelWidth, pixelHeight);
bmp.Save(@"Filename.jpeg", jgpEncoder,myEncoderParameters);
Used Versions
SVG version used: 3.4.4
Please help me out, I am stuck at the end of deadline, all my work is complete for image generation, only the Font family is not showing. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions