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
0
votes
1 answer

How can I activate subpixel positioning with Pango and (py)Cairo?

I just came across this article saying that subpixel positioning was added to Pango 1.44 in 2019 - not without its issues though. Apparently it is switched off by default. Both articles go as far as saying that the latest master from cairo is…
s-m-e
  • 3,433
  • 2
  • 34
  • 71
0
votes
1 answer

linking error. Perhaps a problem with ordering?

I'm building a program which uses GTK+3 and pango. Most of it compiles fine apart from the last bit which builds the executable. The final command is: gcc -o z80sim main.c -Wall -Iz80 -Igui obj/disas.o obj/iosim.o obj/sim0.o obj/sim1.o obj/sim2.o…
cassini232
  • 15
  • 4
0
votes
1 answer

Unable to use parameters with pango while calling wand.image.Image.pseudo method to draw text

I am new to drawing text over an image. I am trying to draw emojis and non-english characters (e.g. Russian, Greek, Arabic etc.) using wand.image.Image.pseudo method in a python script. In this method, I am passing pango command as value for pseudo…
0
votes
1 answer

How to implement Uniscribe for Linux

I'm trying to implement Uniscribe for Linux to display complex text, such as Arabic. It seems a huge task to do. What I need to do is to implement the APIs below: Check if the string is Complex. Get string width. Get next segment. Get next…
0
votes
1 answer

Get displayed text from GtkTreeView markup column

I'm using gtk_tree_view_column_new_with_attributes(NULL, renderer, "markup", 0, NULL);. When I set the markup for a row, I use g_markup_printf_escaped to escape any characters in text strings passed as varargs. I need a way to later get the text…
0
votes
1 answer

Problem installing RGtk2 in Arch Linux (Manjaro)

I need to install RGtk2 on mu Manjaro i3 laptop. When I install this package, I get the following error: In file included from ./RGtk2/pango.h:22, from RGtk2/gtk.h:5, from RGtkDataFrame.h:1, …
Peter Prevos
  • 413
  • 4
  • 12
0
votes
0 answers

Imagick Convert and Exec

I'm attempting to run convert from exec inside a php function. No matter what I do convert never seems to run. Heres my code: exec( 'convert PANGO:"ac" pango.png', $r, $t ); Thanks!
Jeremy
  • 494
  • 1
  • 8
  • 20
0
votes
1 answer

rendering multiattributed textview

problem: I have a Textview with different Texttags in different selected text areas. At the end of editing, i would like to render this multi tagged textbuffer/textview into drawingarea.But I am not getting how can I render multi tagged textview…
user1109856
  • 61
  • 1
  • 4
0
votes
1 answer

How do I set the fallback font for special characters in Pango strings on Windows?

My application displays strings using Pango, Cairo and GTK3. Some of those strings include some special characters, including one not in the Unicode basic plane. On Linux this just worked, but on Windows it can't find the special characters and…
Paul Johnson
  • 17,438
  • 3
  • 42
  • 59
0
votes
0 answers

Pango.Fontdescription doesn't work in raspbian OS (pygobject)

i want to change font of Gtk.Entry by using pango (entry.modify_font(Pango.FontDescription('Sans Bold 20'))), it works well at windows but doesn't works at raspbian and has no effect
0
votes
1 answer

What can be a cause of "GLib-GObject-CRITICAL" when call pango_cairo_font_map_get_default() in libpango?

This is a concept question regarding gtk/glib/libpango/libcairo. Let's straight to the problem. I am wrapping an old C library in Go written by a former colleague, somewhere in the C code calls pango_cairo_font_map_get_default() to get a default…
Changkun
  • 1,502
  • 1
  • 14
  • 29
0
votes
1 answer

How to use pango in script with imagemagick

Here is a simplified version of the code I'm currently using : cat $FILES | while read line; do convert -fill $FG_COLOR -background $BG_COLOR \ -size ${line_width}x${line_height} -page +${x_margin}+${y} \ label:"${varL} and…
bob dylan
  • 989
  • 2
  • 10
  • 26
0
votes
2 answers

pangocairo: discolouration on transparent recording surfaces

When I use Pango to draw text onto a transparent Cairo recording surface, the text becomes quite heavily discoloured, particularly in the semi-transparent anti-aliased regions. For example, this image has the correct (top) and incorrect (bottom)…
0
votes
2 answers

Rebar3 installation fail

I am trying to install rebar3 using linuxbrew on Ubuntu 16.04. After I execute brew install rebar3 distutils.errors.CompileError: command 'gcc-5' failed with exit status 1 …
Sachith Muhandiram
  • 2,819
  • 10
  • 45
  • 94
0
votes
1 answer

How to encode text in pango-markup language?

I am writing a subtitle parser gstreamer plugin. I need to encode parser subtitle text in pango-markup language as the gstreamer text-overlay supports it. I know how to decode pango-markup text to normal text from this link. But I am not able to…
MayurK
  • 1,925
  • 14
  • 27