ruby-****@sourc*****
ruby-****@sourc*****
2012年 9月 3日 (月) 03:08:00 JST
------------------------- REMOTE_ADDR = 70.49.49.99 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?tut-gtk2-txtw-textview ------------------------- @@ -156,7 +156,14 @@ === Pango Tab Arrays +You' ve seen Pango a few times already in our tutorials. Lets first see, how it is defined on Wiki pages: + +:What is Pango: + Pango (Παν語) is an LGPL licensed free software computing library used by software developers for laying out and rendering text in high quality, emphasising support for multilingual text. Different font backends can be used, allowing cross-platform support, so that Pango-rendered text will appear similar under different operating systems, such as Linux, Apple's Mac OS, and Microsoft Windows. + + {{image_right("txtw-textview-03.png")}} + Tabs added to a text view are set to a default width, but there are times when this is not what you want. GTK+ provides Pango::TabArray object, which can help you define a new tab size. In order to change the tab size you must first calculate the number of horizontal pixels the tab will take up based on the current font. Let us expand our first simple example by adding a tab size altering function called ((*make_tab_array.*))