Method: FT2::GlyphMetrics#width

Defined in:
ext/ft2-ruby/ft2.c

#widthObject Also known as: w

Get the glyph’s width.

Note:

Values are expressed in 26.6 fractional pixel format or in font
units, depending on context.

Aliases:

FT2::GlyphMetrics#w

Examples:

w = slot.metrics.width
w = slot.metrics.w


1656
1657
1658
1659
1660
# File 'ext/ft2-ruby/ft2.c', line 1656

static VALUE ft_glyphmetrics_width(VALUE self) {
  FT_Glyph_Metrics *glyph;
  Data_Get_Struct(self, FT_Glyph_Metrics, glyph);
  return INT2NUM(glyph->width);
}