Giter Club home page Giter Club logo

android-cairo's People

Contributors

anoek avatar yukoba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-cairo's Issues

Support for newer version of Pixman

To build with Pixman 0.25.2:

cpufeatures in Android NDK is needed.

Copy android-ndk/sources/android/cpufeatures directory to pixman-extra.

pixman.mk should be modified:

  • LOCAL_CFLAGS: add -Ijni/pixman-extra/cpufeatures and -include "limits.h"
  • LIBPIXMAN_SRC: add pixman/pixman/pixman-noop.c and pixman-extra/cpufeatures/cpu-features.c

Endianness issues on ARM

Hi, nice of you to have packaged cairo for android: I love it.

I am experiencing issues with cairo on an arm processor based machine. When the window format is 32 bit on android, the cairo library appears to generate the frame with the wrong format. It appears to use BGRA instead of RGBA. I am not sure whether I did something wrong at compile time (like forgot to pass a compatibility flag somewhere). Anyway, the bits can be swizzled manually after cairo did his rendering using at the end of the draw_frame function. It would be nice if cairo was supporting more pixel formats. All comments are welcomed!

if _BYTE_ORDER == _LITTLE_ENDIAN

if (buffer->format == WINDOW_FORMAT_RGBA_8888 ||
buffer->format == WINDOW_FORMAT_RGBX_8888
)
{
for (char * p = (char_)buffer->bits; p != (char_)buffer->bits+(4_buffer->stride_buffer->height); p+=4) {
char x = p[0];
p[0] = p[2];
p[2] = x;
}
}

endif

font support

I wonder if there is font support for this port?

cairo_select_font_face (cr, "Sans",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);

Status of this port

What is the status of this cairo porting? Is it complete? Is it possible or hard to port gtk+ to android based on this great work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.