Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base64 font not rendering #27

Open
bytesbay opened this issue Jan 9, 2020 · 1 comment
Open

Base64 font not rendering #27

bytesbay opened this issue Jan 9, 2020 · 1 comment

Comments

@bytesbay
Copy link

bytesbay commented Jan 9, 2020

here is example of svg im trying to render

the image is rendering okay , but fonts are not loading :(

i checked this svg in chrome, it renders all okay btw

<svg data-v-41d8ab67="" id="editor_root_svg" preserveAspectRatio="xMinYMin meet" width="480" height="1032" viewBox="0 0 240 516" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="root-svg"> <defs data-v-41d8ab67=""> <style> @font-face { font-family: "dhurjati"; src: url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAARAQAABAAQR0RFRgSTCTwADpWEAAAAIkdQT1MAGQAMAA6VqAAAABBHU1VCUh891QAOlbgAADLgT1MvMl/g/q8ADjEUAAAAYGNtYXBHmVj8AA4xdAAAAVRjdnQgHDD6/..."); font-weight: normal; font-style: normal; } </style> </defs> <image data-v-41d8ab67="" xlink:href="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/..." x="0" y="0" height="100%" width="100%" preserveAspectRatio="xMidYMid slice" class="pointer-null"/> <g data-v-7563c99a="" data-v-41d8ab67="" transform="translate(16 85) rotate(-38.39071878687419 75 30)" pointer-events="bounding-box"> <svg data-v-7563c99a="" id="editor_item_13b0ae02-af84-4c89-a6a8-6bb04188ced4" width="150" height="60" viewBox="0 0 150 60" fill="#EB5757" data-draggable="true" class="markup-item"> <text data-v-7563c99a="" x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" style="font-family: dhurjati; font-size: 56px; font-weight: bold; font-style: normal; text-decoration: none;">HEADING TEXT</text> </svg> </g> </svg>

it uses the default Roboto font

@kohjakob
Copy link

kohjakob commented Dec 30, 2020

I have the same problem. I think it's just not supported by canvg yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants