anoek / android-cairo Goto Github PK
View Code? Open in Web Editor NEWAndroid NDK build files to build libcairo
Android NDK build files to build libcairo
I wonder if there is font support for this port?
cairo_select_font_face (cr, "Sans",
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
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:
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 (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;
}
}
Excuse me for bothering,I wanna know how could I use svg surface on Android,should I compile libpng and zlib too?that's really hard hundreds of errors turned out when cmaking on Android studio
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.