Using Cairo on iPhone?

I am working on a potentially cross-platform C ++ application, and for Windows and OS X it seems that Cairo will satisfy most of my 2D graphics needs and allow me to share a lot of code between platforms. In an ideal world, I would really like to use the same (or very similar) drawing code in iPhone / iPad applications.

I understand that this means that I will need to compile Cairo for the iPhone before trying to use it, but I don’t know how to do it.

If someone can point me in the right direction, I would be very grateful.

+3
source share
2 answers

, , , ( Cairo, ). , Cairo iOS OSX. , , iOS OSX.

, - brew/native. , , .

+4

Windows Cairo Visual Studio :

  • libpng-1.2.40
  • zlib-1.2.3
  • pixman-0.16.2
  • cairo-1.8.8

Cairo Quartz , Pango ( Glib ) FreeType. , iPhone .

, iPhone 2008 :)

+2

Source: https://habr.com/ru/post/1761400/


All Articles