237 questions
3
votes
1
answer
166
views
Change letter spacing in pango/cairo
I want to put more spaces between letters in text in Cairo. Cairo doesn't seem to have a native implementation for changing inter-letter spacing.
It seems like Pango should be a natural fit. However, ...
1
vote
1
answer
197
views
Load custom ttf in cairo or pangocairo
Using the C cairo api or the pangocairo api how can I load a custom ttf font file?
How do I select the font for use when rendering some text?
and.. Can I load the font from RAM rather than a file path?...
0
votes
0
answers
123
views
Trying to format imagemagick pango: markup
I have tried these two approaches below with no luck. If I change the first command line and replace pango: with caption: it works, but prints the html markup in the text. When I use pango: it simply ...
0
votes
1
answer
154
views
How to add external font in Gtk without installing it?
Have a Gtk project and with Pango can use custom fonts, but need use a specific font from the project only without install it on the system, need change only a specific text. I can't set a new font ...
0
votes
0
answers
60
views
How to use Rmagick with pango and find the correct line width?
Ruby 3.3.2, Rails 7.1.3.3, ImageMagick 7.1.1-33, Rmagick 6.0.1
I use rmagick with pango and I want to calculate the correct number of lines as I'm dynamically selecting the font. In order to correctly ...
0
votes
1
answer
149
views
Issue installing canvas dependencies on mac m1
I have followed this guide and did:
brew install pkg-config cairo pango libpng jpeg giflib librsvg
on a Mac M1 and got stuck on this issue when I ran npm install in the project. Any idea how I can ...
0
votes
1
answer
129
views
Cairo XCB surface only renders text with pango when written to a png
I've successfully created a window with xcb-rs. When I try to write text to that window with pangocairo, it only renders if I write the surface to a png. If I try to, for example, draw a rectangle ...
0
votes
1
answer
855
views
pango.pc not found even though PKG_CONFIG_PATH environment variable is configured
RHEL 9.4 does not have the PKG_CONFIG_PATH environment variable configured even though pkg-config is installed. Therefore, cargo cannot build pango-sys because the pango.pc file is needed. Setting the ...
3
votes
3
answers
12k
views
DaVinci Resolve 19.0b1 will not start on Ubuntu 24.04 [closed]
After installing DaVinci Resolve 19.0b1 on Ubuntu 24.04, nothing happens when you try to run the desktop app.
Attempting to run the application in a terminal gives the following error message and then ...
0
votes
1
answer
231
views
How to set default font and size for the text buffer
I just simply want to set a default font using GTK4, but the examples I found don't work.
This code below is what I used and it does absolutely nothing; it doesn't even give me an error. So I have no ...
1
vote
0
answers
118
views
Getting Pango glyph extents of a single line
My intent is to draw a text along a path using Pango and Cairo libraries in Rust. For this I need to get x position of glyph center on the line and its width. It must take into account properties like ...
0
votes
1
answer
47
views
Cairo: circular path with thick stroke
With Cairo, stroking a circular path with a thick stroke has an undesired result. The circles have a hollow region. Is there a way to prevent this problem?
0
votes
1
answer
850
views
Make compile error -- pango/pango.h: No such file or directory -- but I have pango installed
I have no idea what source file to edit or how to ammend the line.
I am installing xplanet-1.3.0 on ubuntu 22.04 from source. I have installed the prerequisites as necessary. ./configure works fine. ...
0
votes
0
answers
370
views
Meson build of pango static library does not link in dependencies
I'm trying to build pango (https://github.com/GNOME/pango) as a static library. It is using Meson build which I'm not familiar with. Anyway, the compile steps succeed, but linking fails with a lot of ...
0
votes
1
answer
130
views
Render antialiased text with Pango
I'm trying to modify text2image from the Tesseract OCR training code to output antialiased text.
I've tried tried the suggestions from both Andreas and Constantine in this SO Question: Change font ...
1
vote
0
answers
205
views
I want to install pango with cairo backend on windows 11, can anyone guide me?
I've looked at multiple posts on SO about how setting up pango or cairo is giving them errors and i tried setting it up a few times myself, but unfortunately there are just so many errors in the ...
1
vote
0
answers
278
views
How do I add text stroke to pango for moviepy?
I am able to add colors, italics, and bold to change text in my srt for moviepy which is great, but pango does not have a stroke property how could I implement this?
After searching for a few hours I ...
1
vote
1
answer
1k
views
Change font of Gtk::Label
Using gtkmm 3.0 with c++, in a Gtk::Window, I have a Gtk::Label named "bezeichnung" showing text.
How can I change the font of this label?
There seems to be no function to set the font for a ...
0
votes
0
answers
625
views
Moviepy textclip with pango method not working
I am using Moviepy to write text on videoclip. Without method=pango it gives proper results
But when I use method=pango it does not show the text and shows some unrecognizable characters
My textclip ...
-4
votes
1
answer
127
views
How to subclass Pango::Renderer in C++ [closed]
I'm trying to subclass the Pango::Renderer to draw text on an osg::Texture2D, but I cannot find a public constructor (except a copy-constructor) in its header file, neither another method to create a ...
0
votes
2
answers
848
views
Error - The procedure entry point could not be located in libpango-1.0.dll - Gtk4 Build App
When i try to open the .exe file from the Gtk4 build i get the above error
The procedure entry point hb_ot_color_glyph_has_paint could not be
located in the dynamic link library
CAmsys64\mingw64\bin\...
2
votes
0
answers
119
views
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 ...
0
votes
1
answer
188
views
pangocairo text in middle of the circle
I am writing an extension / widgets for gnome-shell.So I want to show some information using text. Actually I want to put text in middle of the circle using pangoCairo but I can't figure out how can I ...
-1
votes
1
answer
1k
views
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 ...
0
votes
1
answer
141
views
GTK app written in python with glade fails to launch its GUI
I have a GUI application written in python, that uses GTK and runs on Ubuntu, and it has been working well for many months.
The GTK application uses gtk.Builder() and a Glade input file (a user ...
1
vote
0
answers
157
views
Is there a way how to suppress pango console warning?
Pango is producing number of useless messages to console for common user.
E.g.
text2image --list_available_fonts
produces huge number of lines like this:
(process:24244): Pango-CRITICAL **: 13:07:20....
1
vote
1
answer
10k
views
How to install python binding of pango and pangocairo in ubuntu 20.04 [closed]
I'm pretty new to pango and pangecairo, but I'd like to install a python binding of pango and pangocairo. I've installed pango, pangocffi, pangocairocffi via pip but it still tells me that no module ...
1
vote
0
answers
112
views
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 ...
0
votes
1
answer
123
views
Getting the byte length of the text inside a PangoLayout
I'm trying to find a way to figure out the byte length of the text inside the PangoLayout. I'm setting the text like this:
pango_layout_set_markup(layout, "<i>Hello World</i>", -...
1
vote
0
answers
284
views
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 ...
2
votes
1
answer
788
views
Format of values for GstBaseTextOverlay's color property
The GstBaseTextOverlay object used for GStreamer's Pango-based plugins (textoverlay, clockoverlay, etc.) has a color property. Its documentation describes it as follows:
“color” guint
Color of the ...
0
votes
2
answers
265
views
Don't insert hyphens when using character wrap with GtkSourceView
I have a GtkSource.View with the wrap mode set to Gtk.WrapMode.CHAR. When it wraps, it inserts - at the end of the line. How can I prevent that?
In my research I found that the Pango library has a ...
0
votes
1
answer
240
views
undefined reference in ImageMagick
I was installing ImageMagick in ubuntu,by mistake i installed the default 16 bit quantum depth version, but i needed the 8 bit version,so i unintsalled the 16 bit version using make uninstall from the ...
1
vote
2
answers
2k
views
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 ...
1
vote
1
answer
136
views
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 ...
1
vote
1
answer
2k
views
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 ...
1
vote
1
answer
469
views
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 ...
3
votes
1
answer
507
views
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
0
votes
0
answers
129
views
How can I render matching text with Pango on two computers?
We have tests that check how code build on Gtk with Pango and Cairo renders shapes and text.
I can't get font rendering to match between different developers computers and CI.
The font seems to render ...
0
votes
1
answer
270
views
FAILED: utils/pango-view.1 while compiling gnome-shell
I was trying to build gnome-shell latest using jhbuild:
$jhbuild build -n gnome-shell
End up with an error as below:
I: Install complete: 207 files copied
*** Building pango *** [24/92]
ninja
[108/...
3
votes
1
answer
9k
views
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 (...
0
votes
0
answers
297
views
PangoCairo text cut-off when using PANGO_ALIGN_MIDDLE
On a C++ game, we're using Pango to render text with cairo and from there to an OpenGL texture.
I noticed this problem recently while working on implementing text-wrapping via Pango.
What I'm doing is ...
0
votes
2
answers
1k
views
Text with spaces split to new line when using pango_layout
I am new to the Embedded Linux. I am trying to display a string text different alignments. But when I use the Pango. It aligned correctly for the single words without space characters in it. But some ...
1
vote
2
answers
5k
views
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-...
0
votes
1
answer
138
views
From a MessageDialog how to read variables when i use pango markup?
how to use pango markup in messagedialog text using variable
For example this code
void usb_boot::creation(){
//Gtk::MessageDialog dialogue(*this, listeDeroulante.get_active_text());
std::string ...
0
votes
1
answer
3k
views
How to set MACOSX_DEPLOYMENT_TARGET in meson for pango, harfbuzz, glib, etc
I am trying to compile libs for usage on OS X 10.8 and newer. When I am building for example libpng library, I am using this script and it works (resulting library is compatible with OS X 10.8 and ...
4
votes
1
answer
978
views
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 ...
1
vote
1
answer
443
views
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).
...
0
votes
1
answer
334
views
"stroke" required after "showing" Pango layout?
I have been chasing a problem between PyCairo and PangoCairo. The following code illustrates it:
import math
import cairo
import gi
gi.require_version('Pango', '1.0')
gi.require_version('PangoCairo', ...
0
votes
1
answer
1k
views
GTK - pango-critical error when disabling entry field
I am encountering the following error (twice) when I try to disable an entry field:
(SDS-CW:7145): Pango-CRITICAL **: 16:38:37.521: pango_layout_get_cursor_pos: assertion 'index >= 0 && ...