Module: FT2

Defined in:
lib/ft2-ruby/version.rb,
ext/ft2-ruby/ft2.c

Defined Under Namespace

Classes: Bitmap, BitmapGlyph, CharMap, Error, Face, Glyph, GlyphClass, GlyphMetrics, GlyphSlot, Library, Memory, Outline, OutlineGlyph, Size, SizeMetrics, SubGlyph

Constant Summary

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.versionObject



98
99
100
101
102
103
104
105
106
107
# File 'ext/ft2-ruby/ft2.c', line 98

static VALUE ft_version(VALUE klass) {
  char buf[1024];
  FT_Int ver[3];
  UNUSED(klass);

  FT_Library_Version(library, &(ver[0]), &(ver[1]), &(ver[2]));

  snprintf(buf, sizeof(buf), "%d.%d.%d", ver[0], ver[1], ver[2]);
  return rb_str_new2(buf);
}