class Freetype::BBox

Overview

FT_BBox wrapper.

A structure used to hold an outline's bounding box, i.e., the coordinates of its extrema in the horizontal and vertical directions.

Note

The bounding box is specified with the coordinates of the lower left and the upper right corner. In PostScript, those values are often called (llx,lly) and (urx,ury), respectively.

If #ymin is negative, this value gives the glyph's descender. Otherwise, the glyph doesn't descend below the baseline. Similarly, if #ymax is positive, this value gives the glyph's ascender.

#xmin gives the horizontal distance from the glyph's origin to the left edge of the glyph's bounding box. If #xmin is negative, the glyph extends to the left of the origin.

Defined in:

freetype/bbox.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bbox : LibFreetype::FT_BBox) #

[View source]

Instance Method Detail

def bbox : LibFreetype::FT_BBox #

[View source]
def xmax #

The horizontal maximum (right-most).


[View source]
def xmin #

The horizontal minimum (left-most).


[View source]
def ymax #

The vertical maximum (top-most).


[View source]
def ymin #

The vertical minimum (bottom-most).


[View source]