cairo

Open type font issue

∥☆過路亽.° 提交于 2019-12-02 14:04:39
问题 Basically,this is a problem of displaying a minority language. Let me make it brief: I've been trying to make my Opentype font(which has some features in it) work properly on non-windows(on windows, it works fine) platforms(Android ,iOS etc.). What I'm truly dealing with is a problem as complicated as displaying Arabic language(including glyph substitution,shaping etc.). I simply want to display the characters properly in my own software,because system wide support may be even more

Error while using cairo devices in R on ubuntu

荒凉一梦 提交于 2019-12-02 13:58:20
问题 I'm working on cairo devices. I'm generating cairo_pdf and getting error message shown below. cairo_pdf("DATA") Warning messages: 1: In cairo_pdf("DATA") : unable to load shared object '/usr/local/lib64/R/library/grDevices/libs//cairo.so': /usr/local/lib64/R/library/grDevices/libs//cairo.so: undefined symbol: png_set_longjmp_fn 2: In cairo_pdf("DATA") : failed to load cairo DLL How can I fix this? 回答1: Looks like you need to reinstall / rebuild that package. You can also install the earlier

add cairo package in the anaconda python distribution

不打扰是莪最后的温柔 提交于 2019-12-02 06:21:05
问题 I am new to using the anaconda distribution for python, and I have trouble installing the cairo package. Note that I am using Mac OsX. I ran the following command conda install --channel https://conda.binstar.org/tshead2 cairo and the installation seems to work fine. But in a python command line the "import cairo" throws a package not found excpetion. I already tried to troubleshooting provided here, but no luck. What am I doing wrong ? 回答1: I just installed py2cairo under Anaconda, using

Open type font issue

扶醉桌前 提交于 2019-12-02 06:08:27
Basically,this is a problem of displaying a minority language. Let me make it brief: I've been trying to make my Opentype font(which has some features in it) work properly on non-windows(on windows, it works fine) platforms(Android ,iOS etc.). What I'm truly dealing with is a problem as complicated as displaying Arabic language(including glyph substitution,shaping etc.). I simply want to display the characters properly in my own software,because system wide support may be even more complicated for me to achieve. I checked out ICU, Pango, Harfbuzz... and finally decided to work on Pango. See

add cairo package in the anaconda python distribution

吃可爱长大的小学妹 提交于 2019-12-02 00:17:27
I am new to using the anaconda distribution for python, and I have trouble installing the cairo package. Note that I am using Mac OsX. I ran the following command conda install --channel https://conda.binstar.org/tshead2 cairo and the installation seems to work fine. But in a python command line the "import cairo" throws a package not found excpetion. I already tried to troubleshooting provided here , but no luck. What am I doing wrong ? I just installed py2cairo under Anaconda, using autotools, and it seems to work fine. The alternate 'waf' install was problematic, in that it picked up

Gtk theme in GTK# (Windows)

混江龙づ霸主 提交于 2019-12-01 18:00:11
I'm trying to change the theme in GTK# ( OS: Windows, IDE: Xamarin ). But I get next issues: I was able to find only one theme which correctly render, it is "Orta". All was well, except for lags and freezes . Here is my code: string Resource_File = "Orta\\gtk-2.0\\gtkrc"; Application.Init (); Gtk.Rc.AddDefaultFile (Resource_File); Gtk.Rc.Parse (Resource_File); MainWindow win = new MainWindow (); win.Show (); Application.Run (); When I changing the size of the Paned or clicking on button I get GUI freezes ( I already asked about this ). This problem occurs only when using this theme, with the

How to create a cairo_t on a Gtk 2 window

社会主义新天地 提交于 2019-12-01 08:25:50
I have an old app, now compiling on Gtk 2, but I need to introduce the use of Cairo. I can't figure out how to create the necessary cairo context (cairo_t) from my Widgets. Here's the code I'm trying to learn with so far, modified (*ahem* cribbed) from a Gtk 3 tutorial. The crux of the matter is creating a cairo surface from the window widget. As it stands, that call is a sketch and it won't compile, let alone run. Remember, my target is Gtk2, not 3, at least at this point. /* Snitched from http://zetcode.com/gfx/cairo/cairobackends/ on 13 Jan 2014 */ #include <cairo.h> #include <cairo-xlib.h>

How to create a cairo_t on a Gtk 2 window

独自空忆成欢 提交于 2019-12-01 07:17:01
问题 I have an old app, now compiling on Gtk 2, but I need to introduce the use of Cairo. I can't figure out how to create the necessary cairo context (cairo_t) from my Widgets. Here's the code I'm trying to learn with so far, modified (*ahem* cribbed) from a Gtk 3 tutorial. The crux of the matter is creating a cairo surface from the window widget. As it stands, that call is a sketch and it won't compile, let alone run. Remember, my target is Gtk2, not 3, at least at this point. /* Snitched from

Pango + Cairo; is there an existing approach for handling <img> style tags in text?

坚强是说给别人听的谎言 提交于 2019-12-01 05:11:38
Pango syntax supports some text only markup. As far as i can see this does not extend to embedding images as well. Looking around I cannot find much in the way of an existing implementation, but i havent done pango+cairo work before so i might be missing the obvious community for it. As far as i can tell a reasonable approach would be to just analyse a string, pull out any tags, create cairo images, and then modify the pango layout around them accordingly. It also seems like something someone might have done before. Im specifically looking for an answer on these questions: Does pango+cairo

GtkDrawingArea - how to make it drawable?

↘锁芯ラ 提交于 2019-12-01 05:04:28
问题 I'm going out of my mind a bit here. I'm trying to draw some simple graphics on my GTK form using cairo. #include <stdio.h> #include <gtk/gtk.h> #include <cairo.h> GtkWidget* window; GtkWidget* darea; int main(int argc, char **argv) { gtk_init(&argc, &argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size(GTK_WINDOW(window), 390, 240); darea = gtk_drawing_area_new(); gtk_container_add(GTK_CONTAINER(window), darea); cairo_t *cr; cr = gdk_cairo_create(darea->window);