# How to change Title font size in Listview

**URL:** <https://www.ruby-forum.com/t/how-to-change-title-font-size-in-listview/241054>\
**Category:** Ruby-Gnome 2\
**Created:** [May 11, 2014, 3:01am UTC](https://www.ruby-forum.com/t/how-to-change-title-font-size-in-listview/241054 "2014-05-11T03:01:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [May 11, 2014, 3:01am UTC](https://www.ruby-forum.com/t/how-to-change-title-font-size-in-listview/241054/1 "2014-05-11T03:01:15Z")

</div>

Modifying listview example:

using the statement: " ren\_attr(:song, :size=18)"  
changes the text font size of :song column,  
but does not change the textfont size of the column title.

What is the example statement to change the title text size  
of column :song?

Thanks, John

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [May 12, 2014, 9:25pm UTC](https://www.ruby-forum.com/t/how-to-change-title-font-size-in-listview/241054/2 "2014-05-12T21:25:47Z")

</div>

In the listview example there’s a method that set the alignment of the  
header:

def center\_\_toggled(\*argv)  
val = @builder[“center”].active? ? 0.5 : 0  
col\_alignment(:artist =\> val)  
repaint  
end

This is setting a property in the Gtk::TreeViewColumn object. I don’t  
see a way to get access to the text inside the title except that there  
is a widget property:

Perhaps you can get that widget, check its type and set the text size???

Eric
