[Vala] Pango.Context.list_families



Hello, I'm starting to use Genie with Pango + Gtk.

I can not extract Pango.Context.list_families into an array of FontFamily

My code:

    uses Gtk
    uses Pango

    init
        Gtk.init (ref args)
        var TestGtk = new Ventana()    
        TestGtk.show_all()    
        Gtk.main()
    
    class Ventana : Window    
    
        init        
            title = "Genie + Pango"        
            set_default_size (250, 100)
            set_border_width(8)
            window_position = WindowPosition.CENTER        
            destroy.connect(Gtk.main_quit)
                
            var sw = new Gtk.ScrolledWindow(null, null)        
            sw.set_shadow_type (ShadowType.ETCHED_IN)
            sw.set_policy(PolicyType.AUTOMATIC, PolicyType.AUTOMATIC)
        
            var context = new Pango.Context()
        
            // context.list_families    ???
        
            // fam: array of FontFamily  ???
            
Thank you


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]