# File lib/rvg/misc.rb, line 102 def glyph_metrics(glyph_orientation, glyph) glyph_metrics = @ctx.shadow.get_type_metrics(glyph) h = glyph_metrics.ascent - glyph_metrics.descent w = glyph_metrics.width if glyph_orientation == 0 || glyph_orientation == 180 [w, h] else [h, w] end end