pango

Adding text to videos using MLT Framework

馋奶兔 提交于 2019-12-12 03:23:42
问题 I am rendering a video using MLT Framework and am not able to successfully add text using the demos that are included in the code. When I execute the mlt_my_name_is demo, I receive the following errors: ./mlt_my_name_is Failed to load "+My name is Inigo Montoya.txt" Failed to load "+Prepare to die!.txt" Failed to load "+You killed my father.txt" Failed to load "+My name is Inigo Montoya.txt" Failed to load "+Prepare to die!.txt" Failed to load "+You killed my father.txt" +-----+ +-----+ +----

How can I render Text with transparent background over other widgets in GTK?

匆匆过客 提交于 2019-12-09 21:42:51
问题 I wish to render text with transparent/translucent background (or no background) over other gtk widgets like GtkImage or GtkButton etc. Primary goal is to have text display over Gtk Widgets (esp. GtkImage) in the background. I can render text on GtkFrame using pangocairo library but I am not able to get rid of the background of GtkFrame. I have seen examples of making GtkWindow transparent or translucent but I wish to have opaque GtkWindow with GtkLayout for placing the GtkWidgets, then place

puppeteer踩坑记录

ⅰ亾dé卋堺 提交于 2019-12-05 00:09:56
错误代码1: error while loading shared libraries: libXcomposite.so.1: cannot open shared 解决方案: 在项目Chrome所在的目录例如: /home/code/puppeteer/node_modules/puppeteer/.local-chromium/linux-706915/chrome-linux/ 中运行 ldd chrome | grep not 依赖库 yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y 错误代码2: Running as root without --no-sandbox is not supported. 解决方案: 在puppeteer的launch中设置 puppeteer.launch({ args: ['--no-sandbox', '-

How can I render Text with transparent background over other widgets in GTK?

风流意气都作罢 提交于 2019-12-04 17:40:06
I wish to render text with transparent/translucent background (or no background) over other gtk widgets like GtkImage or GtkButton etc. Primary goal is to have text display over Gtk Widgets (esp. GtkImage) in the background. I can render text on GtkFrame using pangocairo library but I am not able to get rid of the background of GtkFrame. I have seen examples of making GtkWindow transparent or translucent but I wish to have opaque GtkWindow with GtkLayout for placing the GtkWidgets, then place GtkImage over the layout and render Text on top of GtkImage so that it gives a nice background to my

pango attributes with pygobject

亡梦爱人 提交于 2019-12-04 11:55:39
问题 I have the following code, that uses pygtk: attr = pango.AttrList() attr.change(pango.AttrSize(( 50 * window_height / 100) * 1000, 0, -1)) attr.change(pango.AttrFamily("Sans", 0, -1)) attr.change(pango.AttrWeight(pango.WEIGHT_BOLD, 0, -1)) attr.change(pango.AttrForeground(65535, 65535, 65535, 0, -1)) self.label.set_attributes(attr) I'm trying to port it to pygobject, but there is no class Pango.AttrFamily, neither Pango.AttrWeight, neither Pango.AttrForeground (and I can not instantiate a

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

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

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

Pango-WARNING **: failed to choose a font, expect ugly output

我的未来我决定 提交于 2019-11-30 21:47:12
问题 I'm getting this error when starting anything that uses the Pango library. I'm using Kubuntu 9.10. I've done 'sudo apt-get --reinstall install' on libgtk* libcairo* libpango* and fontconfig, with no luck. Could someone point me in the right direction? Thanks. 回答1: I did a lot of searching on this and never found a decent answer. My issue involved running virt-manager (an xwindows based utility) on a remote server. I have all the fonts on my xwindows box but not on the remote host. the i ran

Difference between GtkWindow and GdkWindow?

江枫思渺然 提交于 2019-11-27 21:19:39
问题 At the beginning of my Gtk-Gdk-Cairo-Pango app, I create the window: GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); First, there is GtkWindow , but gtk_create_window returns GtkWidget , not GtkWindow , why? Then, some functions, like gdk_window_process_updates(..) require GdkWindow* . gtk_window_set_geometry_hints() on the other hand requires GtkWindow* . In documentation there is also GdkWindow* gdk_window_new() that returns GdkWindow . Sure there is documentation saying: A