Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I use pango instead of GdkFont for font handling in a GtkDrawingArea?

0
Posted

How do I use pango instead of GdkFont for font handling in a GtkDrawingArea?

0

Create a font description with pango. You will then need a pango layout for the text you want to display. You have to tell the layout which font description to use and draw it with the draw_layout() method instead of the draw_text() method.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.