Method: FT2::GlyphMetrics#h_bearing_y

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

#h_bearing_yObject Also known as: horiBearingY, h_bear_y, hby

Get the glyph’s top side bearing in horizontal layouts.

Note:

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

Aliases:

FT2::GlyphMetrics#horiBearingY
FT2::GlyphMetrics#h_bear_y
FT2::GlyphMetrics#hby

Examples:

hby = slot.metrics.h_bearing_y
hby = slot.metrics.horiBearingY
hby = slot.metrics.h_bear_y
hby = slot.metrics.hby


1727
1728
1729
1730
1731
# File 'ext/ft2-ruby/ft2.c', line 1727

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