can't display Arabic labels on igraph plot

Hello,
I’m using igraph in R Studio, on a macbook pro.
I have generated an igraph whose labels are in an Arabic font.

These characters display fine when I print the graph on the console.

However when I plot, the labels turn to sequences of squares. I assume there’s a font incompatibility but don’t know how to resolve it.

(I tried tkplot, but other problems arise - the Arabic characters appear but are disconnected…)

Thank you!

This is very likely not igraph-specific, but a general problem with either R or its macOS interface. Searching StackOverflow yields many similar complaints about R. Asking in general R forums may be more useful. (I’m sorry, I’m not really an R user, but I hope this hint helps a bit.)

1 Like