# Re: is ruby pango right for this? (Kouhei Sutou)

**URL:** <https://www.ruby-forum.com/t/re-is-ruby-pango-right-for-this-kouhei-sutou/83102>\
**Category:** Ruby-Gnome 2\
**Created:** [January 23, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/re-is-ruby-pango-right-for-this-kouhei-sutou/83102 "2007-01-23T18:24:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbiemuffin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3d9bf3/32.png) [@robbiemuffin](https://www.ruby-forum.com/u/robbiemuffin)\
**Post date:** [January 23, 2007, 6:24pm UTC](https://www.ruby-forum.com/t/re-is-ruby-pango-right-for-this-kouhei-sutou/83102/1 "2007-01-23T18:24:29Z")

</div>

(re:  
Message: 2  
Date: Fri, 19 Jan 2007 23:44:12 +0900 (JST)  
From: Kouhei S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: [ruby-gnome2-devel-en] is ruby pango right for this?  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
)

thank you — yes, this is exactly why I thought to use Pango. How  
do I limit which font files it can inspect in this manner? (Sorry if  
this sounds stupid but, I really don’t know!)

relevant code:  
require ‘gtk2’

families = Gtk::Invisible.new.pango\_context.families  
p families.collect {|family| family.name}  
…

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![robbiemuffin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/3d9bf3/32.png) [@robbiemuffin](https://www.ruby-forum.com/u/robbiemuffin)\
**Post date:** [January 24, 2007, 2:16pm UTC](https://www.ruby-forum.com/t/re-is-ruby-pango-right-for-this-kouhei-sutou/83102/2 "2007-01-24T14:16:44Z")

</div>

Hi,

In [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
“Re: [ruby-gnome2-devel-en] is ruby pango right for this? (Kouhei  
Sutou)” on Tue, 23 Jan 2007 12:22:33 -0500,  
“Robbie Muffin” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> thank you — yes, this is exactly why I thought to use Pango. How  
> do I limit which font files it can inspect in this manner? (Sorry if  
> this sounds stupid but, I really don’t know!)

I think you can’t. It seems that Pango is designed to hide  
the layer.

## Thanks,

kou

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys - and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
