| Class FT2::GlyphMetrics |
|
| Methods |
| Public Class methods |
| initialize(VALUE self) |
Constructor for FT2::GlyphMetrics
This method is currently empty. You should never call this method directly unless you're instantiating a derived class (ie, you know what you're doing).
| Public Instance methods |
| width(VALUE self) |
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
| height(VALUE self) |
Get the glyph's height.
Note:
Values are expressed in 26.6 fractional pixel format or in font units, depending on context.
Aliases:
FT2::GlyphMetrics#h
Examples:
h = slot.metrics.height h = slot.metrics.h
| h_bearing_x(VALUE self) |
Get the glyph's left 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#horiBearingX FT2::GlyphMetrics#h_bear_x FT2::GlyphMetrics#hbx
Examples:
hbx = slot.metrics.h_bearing_x hbx = slot.metrics.horiBearingX hbx = slot.metrics.h_bear_x hbx = slot.metrics.hbx
| h_bearing_y(VALUE self) |
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
| h_advance(VALUE self) |
Get the glyph's advance width for horizontal layouts.
Note:
Values are expressed in 26.6 fractional pixel format or in font units, depending on context.
Aliases:
FT2::GlyphMetrics#horiAdvance FT2::GlyphMetrics#ha
Examples:
ha = slot.metrics.h_advance ha = slot.metrics.horiAdvance ha = slot.metrics.ha
| v_bearing_x(VALUE self) |
Get the glyph's left side bearing in vertical layouts.
Note:
Values are expressed in 26.6 fractional pixel format or in font units, depending on context.
Aliases:
FT2::GlyphMetrics#vertBearingX FT2::GlyphMetrics#v_bear_x FT2::GlyphMetrics#vbx
Examples:
vbx = slot.metrics.v_bearing_x vbx = slot.metrics.vertBearingX vbx = slot.metrics.v_bear_x vbx = slot.metrics.vbx
| v_bearing_y(VALUE self) |
Get the glyph's top side bearing in vertical layouts.
Note:
Values are expressed in 26.6 fractional pixel format or in font units, depending on context.
Aliases:
FT2::GlyphMetrics#vertBearingY FT2::GlyphMetrics#v_bear_y FT2::GlyphMetrics#vby
Examples:
vby = slot.metrics.v_bearing_y vby = slot.metrics.vertBearingY vby = slot.metrics.v_bear_y vby = slot.metrics.vby
| v_advance(VALUE self) |
Get the glyph's advance width for vertical layouts.
Note:
Values are expressed in 26.6 fractional pixel format or in font units, depending on context.
Aliases:
FT2::GlyphMetrics#vertAdvance FT2::GlyphMetrics#va
Examples:
va = slot.metrics.v_advance va = slot.metrics.vertAdvance va = slot.metrics.va