GirFFI-Pango
GirFFI-based bindings for Pango
Usage
require 'gir_ffi-gtk3'
require 'gir_ffi-pango'
Gtk.init
ctx = Gdk.pango_context_get
fontmap = ctx.font_map
fd = Pango::FontDescription.new
fd.family = "Sans"
fnt = fontmap.load_font ctx, fd
puts fnt.describe.to_string
lang = Pango::Language.from_string "en"
puts lang.scripts
Install
gem install gir_ffi-pango
License
Copyright © 2012–2016, 2018–2019, Matijs van Zuijlen
GirFFI-Pango is free software, distributed under the terms of the GNU Lesser General Public License, version 2.1 or later. See the file COPYING.LIB for more information.