0.0
A long-lived project that still receives updates
Bindings for Pango generated by GirFFI, with an eclectic set of overrides.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 5.12
~> 13.0
~> 0.14.0
~> 1.52
~> 0.22.0

Runtime

~> 0.17.0
 Project Readme

GirFFI-Pango

GirFFI-based Ruby bindings for Pango

Usage

require "gir_ffi-gtk3"
require "gir_ffi-pango"

Gtk.init

win = Gtk::Window.new :toplevel
ctx = win.pango_context
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.to_a

Install

gem install gir_ffi-pango

Requirements

This gem depends on the GirFFI gem and its requirements. In addition, it needs introspection data for the pango library.

On Debian and Ubuntu, you can get this by installing gir1.2-pango-1.0.

This gem has not been tested on Mac OS X or Microsoft Windows. YMMV. Pull requests to support these platforms are welcome.

License

Copyright © 2012–2016, 2018–2024, 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.