Questions tagged [pango]

Pango is a C API for Unicode-based text layout and rendering.

Pango allows advanced layout of text using C, C++, Perl, and a number of other languages. It is primarily used with (), although it can be used with other backends, such as Win32 API, Xft, and others.

The website is http://pango.org.

Documentation can be found at https://developer.gnome.org/pango/unstable/.

228 questions
1
vote
0 answers

Pango does not give the location for certain graphemes

I was writing a program to render text to an image and draw bounding boxes around characters using Pango, Cairo and PangoCairo. I am using the Rust bindings to these libraries called gtk-rs. After laying out the next I am splitting the text into…
1
vote
0 answers

image magick couldn't load font error windows

I can't seem to use almost any of my system fonts without getting a: couldn't load font error on my windows 10. I have IM installed with cairo/pango and am trying to use convert. I've found that Arial and Verdana work, but obscure fonts do not. I…
S P
  • 15
  • 3
1
vote
2 answers

Gstreamer text overlay from variables on memory

Im running the command such as following and this command broadcasts the video to ethernet port. But here is my question that how I can add overlay onto video where overlay values are stored in shared memory and may change any time. gst-launch-1.0…
1
vote
1 answer

Determining the number of lines in a notification, depending on width and height

So I am yet again facing another problem concerning my extension. I would like to calculate the number of lines in a notification, based on its width and height. For context, I am designing an extension that adds a button to the notification in the…
kaanginam
  • 17
  • 4
1
vote
1 answer

gtkmm : Drawing text with cairo

I want to draw a simple text with Cairo in an app using Gtkmm. I want to give the font style (it can be Pango::FontDescription or Pango::Context and so on ...) directly to draw text with Cairo when the Gtk::FontButton is clicked (in other words when…
mohamadp91
  • 47
  • 9
1
vote
1 answer

Symbol lookup error when calling pango_cairo_create_layout

Noob alert! I'm not exactly competent with C/C++ programming Hi, I'm working on a C++ NodeJS addon, in which I'd like to use Cairo/Pango, but I'm having a number of linking issues. I can reasonably assume they're linking issues, as I had a similar…
J-Cake
  • 1,526
  • 1
  • 15
  • 35
1
vote
2 answers

Brew error "No such file or directory - /usr/local/Cellar/pango/1.46.1" on running "brew install brewsci/bio/pymol"

I am trying to install the open-source version of PyMOL on a mac through the Homebrew package manager as recommended on the official website: https://pymolwiki.org/index.php/MAC_Install#Open-Source_PyMOL. During the installation process, Homebrew…
1
vote
1 answer

New Lines Ignored in PangoLayout

I'm working on a program where I'm using PangoLayout for text layout and Cairo for rendering, and I'm having trouble with text with multiple lines (or rather, text that contains new line characters). It appears that Pango is truncating the text…
Luke Zhou
  • 125
  • 2
  • 10
1
vote
0 answers

PHP ImageMagick - Draw Indic text using font file, not from system fonts

I am trying to draw Devanagari text on image using PHP ImageMagick. ImageMagick renders text correctly if I use font available in the system, but not when loading a font from a file. For exmaple if use $imagick->setFont('Lohit Marathi');// installed…
Silkograph
  • 85
  • 2
  • 12
1
vote
0 answers

dot.exe provides Pango Warnings which causes test to fail in windows

I am trying to build the ReqM2 analysis and certain test cases failed which is related to Graphviz 14:50:53 # 14:50:53 # (dot.exe:45844): Pango-WARNING **: All font fallbacks failed!!!! 14:50:53 # 14:50:53 # (dot.exe:45844):…
1
vote
2 answers

How do you set an enum property on a GLib object?

I am trying to set the "ellipsize" enum property on a GtkCellRendererText object. I am trying to use g_object_set_property as follows: GtkCellRenderer *renderer = gtk_cell_renderer_text_new (); GValue val = G_VALUE_INIT; g_value_init (&val,…
Gavin Smith
  • 3,076
  • 1
  • 19
  • 25
1
vote
0 answers

wxt terminal on gnuplot via cygwin

How can I compile gnuplot on cygwin such that it will have the wxt terminal type? I have tried adding possible dependencies such as libwx_gtk3u3.0_0,mingw64-x86_64-wxWidgets3.0, libcairo-devel, libpango1.0-devel, and mingw64-x86_64-pango1.0 while…
T. Zack Crawford
  • 7,646
  • 3
  • 11
  • 18
1
vote
2 answers

Drawing text on GTK's DrawingArea in Haskell

I have a DrawingArea onto which I can draw using primitives such as drawRectangle and drawLine. How do I draw text onto that area? I'm most interested in something that quickly outputs a single line of text. Graphics.UI.Gtk.Gdk.Drawable.layoutLine…
user12163
1
vote
1 answer

Imagemagick convert: use Pango to format captions in auto generated slides

I use this code to auto generate slides from a .txt file where I wrote captions this way: CAPTION 1 CAPTION 2 ... CAPTION N This is the script I use #!/bin/bash i=0 # loop through files while IFS= read -r p; do # if it's not an empty line if…
Yuri Refolo
  • 245
  • 9
  • 17