CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

Arabic text as Blocks when converted to pdf and png in MAC

Open codemechanic95 opened this issue 3 years ago • 3 comments

test When run in MAC, The text appears fine in svg, but when converted to pdf or png, the text appears as blocks. test test.pdf

But when run on windows, the text is visible. test2

Is there a way to get it working in MAC, or any dependencies that I'm missing? Any suggestions would help. Thank you

codemechanic95 avatar Sep 01 '22 10:09 codemechanic95

Hi!

You probably miss the fonts including the Arabic characters on your Mac. Installing Arabic fonts and using them in your SVG will fix the problem.

liZe avatar Sep 04 '22 17:09 liZe

Tried installing the same fonts in Windows on Mac, But still the same issue, all text appear as blocks.

codemechanic95 avatar Sep 12 '22 05:09 codemechanic95

Tried installing the same fonts in Windows on Mac, But still the same issue, all text appear as blocks.

Then there’s not much I can do for you :/. You could search how Cairo finds fonts on macOS and see why it doesn’t find the ones you installed.

liZe avatar Sep 16 '22 21:09 liZe