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

Disappearing characters in cairo font rendering

I use cairo to render a simple text onto a cairo surface. I use a freetype font for that (Vera.ttf if that matters). It works, but sometimes characters disappear from the output. In fact only the numbers. I drew a text 'Demostream 1..' and sometimes…
fen
  • 371
  • 1
  • 10
0
votes
1 answer

gtk font rendering using native windows handle

I made a small gui app for rendering text using gtk+2. To tackle horrible fonts on win32. I am creating a cairo surface using native windows handle (HDC). Now font look beautiful in windows but it appears that canvas do not update correctly after…
duckduckgo
  • 1,280
  • 1
  • 18
  • 32
0
votes
2 answers

How to colour fonts in Gtk3 label/entry widgets in Vala?

I'm really enjoying experimenting with Vala, and have managed to solve most of the snags I've encountered so far. But the one that's causing me a bit of time-wasting right now is the colouring (and general modification) of fonts in Gtk3 Label and…
b j norse
  • 11
  • 3
0
votes
1 answer

Integrating fribidi with Tk source code

I see in the tk source code in the Tkbind.c, TkEvent.c and TkEntry.c that there are a set of pointers, eventPtr, dispPtr, bindPtr, and a few more pointing to different C-structures. There is eventPtr which stores information relating to which key…
Duck Dodgers
  • 3,409
  • 8
  • 29
  • 43
0
votes
1 answer

python & gtk3 - cairo_context.show_layout method is missing

My code looks like from gi.repository import PangoCairo from gi.repository import Gtk class Column(Gtk.DrawingArea): getContext = lambda self: PangoCairo.create_context(self.get_window().cairo_create()) ... cr = self.getContext() …
saeedgnu
  • 4,110
  • 2
  • 31
  • 48
0
votes
1 answer

Fail while build pango-1.4.1

Im trying to install pango-1.4.1 package to my Linux machine (a prerequisit to gtk+-2.0 lib). The used distro is: CentOS release 5.9 (Final) Linux 2.6.18-274.18.1.el5 #1 SMP Thu Feb 9 12:45:52 EST 2012 i686 i686 i386 GNU/Linux I dont have root…
zsidanyi
  • 105
  • 1
  • 2
  • 6
0
votes
1 answer

wxPython binary created in pyinstaller creates ugly output on Fedora/RHEL

I have searched far and wide for two weeks trying to solve my issue and nothing has done much good, so I'm at the end of my string here! I created a custom printer-selection app for my workplace in Python, and used pyinstaller to make a one-file…
0
votes
1 answer

Converting a Pango Font Description to a string in Vala

I am trying to convert a Pango Font Description returned from a Font Chooser Dialog in GTK 3 to a string, however the C function: pango_font_description_to_string() Does not work, as it is a different language. I have scoured the web in search of an…
user1150512
  • 259
  • 1
  • 9
0
votes
1 answer

Memory leak in GTK# + Cairo + Pango

I'm using Mono + GTK# + Cairo + Pango on Ubuntu 12.04 and I found some memory leaks when using a Pango.Layout object. I'm drawing some animation with a framerate of about 30 fps and my memory only increases. I remove a lot of code and here is what…
gburri
  • 154
  • 1
  • 2
  • 9
0
votes
1 answer

my vcproj does not comiple when added in another sln (already containing some other project)

I have pangoft2.vcproj. Once I have set the include directories etc., it compiles successfully. Now, in a new .sln (where I have a pango.vcproj), I add this pangoft2.vcproj. Now, when I compile the program, it gives 474 errors. I have copied a few…
user1414696
  • 307
  • 4
  • 15
0
votes
1 answer

Python Image Library and Gtk.FontSelectionDialog

I want to get PIL to draw the text using their fonts to get them, I use this code: fdia = Gtk.FontSelectionDialog("Font") response = fdia.run() if response == Gtk.ResponseType.OK: …
Alexander Z.
  • 101
  • 2
0
votes
1 answer

Set a text in the drawing area

I'd like to set a text into Drawing Area object, using pygtk. So, I created a drawing area and set up a callback function using "expose event" signal. Then I coded a function to set the text. What I coded is: self.pangolayout =…
FrankBr
  • 886
  • 2
  • 16
  • 37
0
votes
2 answers

Are there any native gtkmm classes to Queue commands/data from the signal handler functions of the widgets?

I have constructed a Gtkmm GUI with miscellaneous widgets. On invoking the signal, each widget is intended to construct a "string" using user input data that is sent over the network. Thus I think, the commands have to pass through a single queuing…
enthusiasticgeek
  • 2,640
  • 46
  • 53
0
votes
1 answer

How can I scale text with Pango-Sharp in only one (horizontal) direction?

I need to write some text with pango-sharp, but depending on the number of characters scale the width. This is what I currently have: var layout = new Pango.Layout (Core.PangoContext); layout.FontDescription = Pango.FontDescription.FromString ( …
l2rek
  • 32
  • 1
  • 5
-1
votes
1 answer

How can I install Canon scanner/libpango

I am installing Canon MG3650S printer/scanner on Ubuntu 22.04. It looks like something is wrong with installing libpango. I discovered that it was missing from the dependency list. However, after installing it, something is still missing. I noticed…
katang
  • 2,474
  • 5
  • 24
  • 48
1 2 3
15
16