Skip to content
GirFFI-based bindings for Pango
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
COPYING.LIB
Gemfile
README.md
Rakefile
gir_ffi-pango.gemspec

README.md

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.get_font_map
fd = Pango::FontDescription.new
fd.set_family "Sans"
fnt = fontmap.load_font ctx, fd
puts fnt.describe.to_string

lang = Pango::Language.from_string "en"
puts lang.get_stripts

Install

gem install gir_ffi-pango

License

Copyright 2012, 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.

Something went wrong with that request. Please try again.