ldo / qahirah Goto Github PK
View Code? Open in Web Editor NEWA more Pythonic binding for the Cairo graphics library
A more Pythonic binding for the Cairo graphics library
This project is no longer being maintained on GitHub. Look for it at one of * gitlab: https://gitlab.com/ldo/qahirah * bitbucket: https://bitbucket.org/ldo17/qahirah
Hi, does qahirah support rendering latex equations to the SVGSurface? (if the user has LaTeX environment installed on the machine)
If you make it a Markdown file (it currently uses Markdown syntax, but doesn't have the extension), GitHub will render said Markdown to HTML and display it with nice formating.
Currently, it's just rendered as plain text which, while not a big issue, isn't as nice to read.
It would be interesting to try and implement qahirah in the browser, using Rapydscript or Brython with Canvas instead of Qahirah, any idea of what is involved in splitting the backend out ?
Would you consider moving to CFFI in the future?
It's supposed to be much more performant in Pypy. OTOH, I realise this would be quite a big step.
https://mail.python.org/pipermail/pypy-dev/2012-December/010719.html
http://eli.thegreenplace.net/2013/03/09/python-ffi-with-ctypes-and-cffi
Thank you for a great library!
I was searching for a python cairo/freetype library for macos/openbsd and found your file can be easily adapted to work on them as follows. (the same code works on freetype2.py)
Will you incorporate this kind of small cross-paltform code ?
...
import sys
SYSLIB_LINUX = ["libc.so.6","libfreetype.so.6","libfontconfig.so.1","libcairo.so.2"]
SYSLIBS = {
"darwin":["libc.dylib","libfreetype.dylib","libfontconfig.dylib","libcairo.dylib"],
"openbsd6":["libc.so","libfreetype.so","libfontconfig.so","libcairo.so"],
}.get(sys.platform,SYSLIB_LINUX)
cairo = ct.cdll.LoadLibrary(SYSLIBS[3])
...
Is there any way through which i can generate arc text. Like the one imagemagick does ?
Is it possible to draw to an SVGSurface with qahirah and save as the result an svg file?
I found that I can create a surface with
pix = qah.SVGSurface.create(filename = "test.svg", dimensions_in_points = (600, 600))
and draw to it - I tried this in the paths example. The output file is created but remains empty.
So, is SVG output supported, and is there a function that should be called at the end to actually write the file?
Does this have support for kerning?
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.