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
3
votes
2 answers

GTK TextView tags to pango markup

I want to extract the formated text in a GtkTextView as html or pango markup language. Having a small text editor with formating like this. So the formating elements are simple , , etc. Is there a way to get the formated text from the TexView?
microo8
  • 3,568
  • 5
  • 37
  • 67
3
votes
1 answer

CULLong-type constructor not visible when installing pango and GIO with cabal on Windows

I'm trying to install Threadscope on Windows 8 in order to follow along the Parallel and Concurrent Programming in Haskell –book. I successfully installed the GTK+ –bundle and subsequently tried installing threadscope through cabal. The installation…
3
votes
1 answer

Font rendering problems using Pango + Cairo + Fontconfig using Visual Studio, under GCC works fine

I have a big problem, and I hope you can help me. I'm porting a game from Linux to Windows, and using MinGW works fine (except for some crashes that I don't know how, but this is not my problem now) Game use Fontconfig (2.4.2-3), Cairo (1.8.8) and…
Xaldyz
  • 33
  • 1
  • 4
3
votes
1 answer

How to set font from file in Pango and Mono

I have simple application that prints text and determines its size in pixels. static void Main(string[] args) { Application.Init(); var screen = Screen.Default; var layout = new Pango.Layout(PangoHelper.ContextGetForScreen(screen)); …
name1ess0ne
  • 868
  • 7
  • 17
3
votes
3 answers

How to fix Invalid UTF-8 string passed to pango_layout_set_text()

I'm getting the following warning from my application that uses gtk+: (foo:11333): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() the function that is emitting the warning is the following: static void show_error(GtkWindow…
Jack
  • 16,276
  • 55
  • 159
  • 284
3
votes
1 answer

Extracting Glyph Kerning Information C++

After asking my previous question about Uniscribe glyph kerning, and not yet receiving an answer, plus further reading on google etc, it seems Uniscribe may not support extracting glyph kerning information from a font. I therefore have a simple…
Ali Parr
  • 4,737
  • 3
  • 31
  • 35
3
votes
1 answer

How to get Pango Cairo to word wrap properly?

I'm having problems getting Pango Cairo to word wrap. Below is some demo code. I am setting the layout's width to the same as the red rectangle, so I would expect it to wrap to the red rectangle. As it is, it is simply putting one word on each line,…
Joe
  • 46,419
  • 33
  • 155
  • 245
2
votes
1 answer

Creating pdf files with inline images with (py) Cairo

What is the method to write images inline (without breaking the paragraph) using cairo + pango + python ie. Image should be able to place within paragraph.
Arackna
  • 2,665
  • 2
  • 16
  • 16
2
votes
0 answers

Why is strikethrough not working on my GTK4 label?

Below is what should be a reproducible example of the code that doesn't work. It's based on the introduction sample from the GTK documentation. I am using v4.8.3 of Gtk and v1.50.12 of Pango. #include static void activate(GtkApplication…
rburmorrison
  • 612
  • 4
  • 12
2
votes
1 answer

Pango Markup on Expander Label

I have a project in Python 2.7 and PyGTK 2.24. I have the following code in my project: expTSet = gtk.Expander() expTSet.set_use_markup(True) expTSet.set_label('Teacher Settings') …
CodeMouse92
  • 6,840
  • 14
  • 73
  • 130
2
votes
1 answer

Pango-WARNING **: couldn't load font ouldn't load font "Times Not-Rotated 18", falling back to "Sans Not-Rotated 10px", expect ugly output

I am trying to run on package/software “KUPDAP (Kyoto University Plasma Dispersion Analysis Package)”, which can be downloaded from http://space.rish.kyoto-u.ac.jp/software/ (Download executable file (Windows)). It is a winrar file. After…
sreeraj t
  • 169
  • 3
  • 12
2
votes
0 answers

How to render cairo output to a GLFW window, using GL as backend

I want to use cairo in combination with glfw. There is absolutely no working document. And what is found does not compile. This is the best working example for glfw that I found: #include #define GLFW_EXPOSE_NATIVE_X11 #define…
arashka
  • 1,226
  • 3
  • 17
  • 30
2
votes
0 answers

CFFI compiled libpango with dependencies? (thai/fribidi/datrie)

I'm trying to setup a precompiled package for aws lambda, which must contain all the required libraries inside it. My dependencies are : pango and cairo So, what I did was go to https://fedora.pkgs.org and download the 64 versions of those, but then…
Mojimi
  • 2,561
  • 9
  • 52
  • 116
2
votes
1 answer

Segmentation fault rendering text to cairo context

It's my first time using pangomm and I am trying to render some text to a Cairo::Context, but when i try to access anything from the Pango::Layout object the program throws the following error: (process:7175): glibmm-CRITICAL **: 15:36:58.578:…
Vinicius
  • 23
  • 2
2
votes
2 answers

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

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…
Nvu
  • 31
  • 1
  • 4