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

Line Break with Pango

According to this documentation, Pango is able to handle some convenience tags like for bold, or for italic. However, there's nothing for line break, like the commonly used
. Is there a way to make Pango able to handle line break?
Pastel
  • 41
  • 4
4
votes
0 answers

Loading font to Pango

I am trying to load a non system font to my GTK application. I have tried using pango to achieve that. Here's my code: string fontPath = "res/fonts/FreeSans.ttf"; const FcChar8 *fontFile = (const FcChar8*) fontPath.c_str(); FcBool fontAddStatus =…
Ramywhite
  • 92
  • 2
  • 7
4
votes
2 answers

How to get a glyph outline of a true type character on a linux system

I'm searching for a library to get the outline of a glyph in a true type font on a linux system. We are using Pango and Cairo but unfortunatly I didn't find anything. I'm looking for somethig similar to GlyphTypeface.GetGlyphOutline under .NET Any…
chrmue
  • 1,552
  • 2
  • 18
  • 35
4
votes
0 answers

RRDTool 'graph' command throws Glib and Pango error, installed with Homebrew on Mac OS X

The question is: How do I make RRDTool generate graphs on Mac OS X ? I installed rrdtool using homebrew on Mac OS x 10.6.8. I'm able to create a database, update some data and fetch the data, but I'm not able to generate a graphs for it. It looks…
Federico
  • 5,438
  • 5
  • 39
  • 47
3
votes
1 answer

Text Alignment With Perl Pango

I used Pango with Perl and It succeed rendering a right to left text perfectly (This mission is a nightmare ): The code : #!/usr/bin/perl -wT use strict; use warnings; use Pango; use Encode; my $surface = Cairo::ImageSurface->create('argb32', 400,…
user1129665
3
votes
1 answer

Is there a way to convert a code-file to an image with syntaxhiglighting

I try to convert Pascal-Code Files to an image (jpg, png) an find pongo-view as a good solution. Is there a way to add syntax-highlighting in the Output files? I am happy about any hints :) Thanks
thiemol
  • 61
  • 4
3
votes
1 answer

How to install custom fonts in Google cloud function for imagemagick

I am working with ImageMagic with firebase cloud function. I am using non english language so for that I am using Pango. With Pango custom fonts is not working convert -size 200x200 -font pathToMyFonts pango:sometext pango_test.png In the above…
Muhammad chhota
  • 1,837
  • 2
  • 16
  • 27
3
votes
1 answer

Pango: Finding positions in Devanagari strings

I'm using Pango to typeset Devanagari. Consider the string उम्कन्छौ consisting of DEVANAGARI LETTER U, DEVANAGARI LETTER MA, DEVANAGARI SIGN VIRAMA, DEVANAGARI LETTER KA, DEVANAGARI LETTER NA, DEVANAGARI SIGN VIRAMA, DEVANAGARI LETTER CHA,…
3
votes
2 answers

Pango/Cairo/Fontconfig: Making unicode font fallback/linking work properly in Windows

Recently, a windows user made us aware that Japanese (and other unicode) characters in our app don't display properly under Windows. He just gets boxes with numbers instead. We're using Pango, Fontconfig/freetype and rendering with Cairo. In Unix…
3
votes
1 answer

Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() in GTK C

I am getting above mentioned warning in my gtk application. I know this question is already been discussed but the problem with me is that I am not even using this funciton. All I am doing is reading a text string from a file and then changing its…
S Andrew
  • 5,592
  • 27
  • 115
  • 237
3
votes
1 answer

How to create PangoFont object from TTF font file?

I've been reading the gnome APIs for pango but cannot find a simple way to get a PangoFont from ttf font file that I have. What are the sequence calls for getting a PangoFont object from a TTF file?
Griffin
  • 716
  • 7
  • 25
3
votes
1 answer

how to fix hb-ft.h no such file or directory while installing pango using jhbuild?

i have all the dependencies and since i was not able to fix this error i installed freetype and harfbuzz from scratch still couldnt fix this fatal error but this file (hb-ft.h) is present under /usr/include/harfbuzz/hb-ft.h…
Onkar Singh
  • 33
  • 1
  • 3
3
votes
0 answers

Compiling Pango with Stack

I've been trying to compile a Haskell project which depends on Pango (via Gtk3), so far without success. The issue seems to be with the preprocessor (based on odd mangled type names), but I have yet to find the exact cause. I'm using stack on a…
SwiftsNamesake
  • 1,540
  • 2
  • 11
  • 25
3
votes
3 answers

Using Pango in PHP Imagick API

I want to use Imagick API for PHP instead of runnung command line in my PHP code. exec("convert -gravity Center -size 200x200 -fill black -font Arial -pointsize 20 pango:\"Hello World!\" output.png"); for above command I have following Imagick API…
Ali
  • 243
  • 1
  • 5
  • 16
3
votes
1 answer

How to tell whether a font is monospace using GTK and Pango?

I have a PangoFontDescription and I want to know whether it describes a monospace font. I have seen the function pango_font_family_is_monospace() in the Pango API documentation but after several hours of puzzling it is still not clear to me what…
ptomato
  • 56,175
  • 13
  • 112
  • 165
1 2
3
15 16