New Postings in PHP-Gtk2 Blog

From: Date: Wed, 31 May 2006 13:00:27 +0000
Subject: New Postings in PHP-Gtk2 Blog
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6957@lists.php.net to get a copy of this message
Hi all, I've posted two new tutorials in the PHP-Gtk2 blog. Here is a teaser for each: *0024 Pango Markup* As promised way back in February (or was it January?) the next two articles are going to deal with Pango. There are two ways (at least) to use Pango in PHP-Gtk2. First there is mark-up which we'll be talking about today. The second way is to use a PangoFontDescription and we'll talk more about that next time. The Pango Text Attribute Markup Language is similar to HTML, SGML and XML. The primary purpose of this mini-markup language is to make it easier to implement international text strings within GTK+ applications. But today we're going to use for its other strength, text formatting in a GtkLabel or GtkMessageDialog. *0025 PangoFontDescription* Using a PangoFontDescription gives similar results to using Pango mark-up with the >SPAN< tag (covered last time in Lesson 24: Pango Markup), but is used by GtkCellRendererText, GtkComboBox, GtkComboBoxEntry, GtkEntry and GtkTextView. The main difference is that a PangoFontDescription is far less cumbersome to use once everything is in place, especially if we want to make changes to the text or its appearance programmatically during application runtime. It also makes our code more readable. Hope you enjoy them! Take care and happy coding. -Ron T.

« previous php.gtk.general (#6957) next »