class Freetype::BitmapSize
- Freetype::BitmapSize
- Reference
- Object
Overview
FT_Bitmap_Size wrapper
This structure models the metrics of a bitmap strike (i.e., a set of glyphs for a given point size and resolution) in a bitmap font. It is used for the 'available_sizes' field of Face.
Note
Windows FNT: The nominal size given in a FNT font is not reliable. Thus when the driver finds it incorrect, it sets 'size' to some calculated values and sets 'x_ppem' and 'y_ppem' to the pixel width and height given in the font, respectively.
TrueType embedded bitmaps: 'size', 'width', and 'height' values are not contained in the bitmap strike itself. They are computed from the global font parameters.
Defined in:
freetype/bitmap_size.crConstructors
Instance Method Summary
- #bitmap_size : LibFreetype::FT_Bitmap_Size
-
#height
The vertical distance, in pixels, between two consecutive baselines.
-
#size
The nominal size of the strike in 26.6 fractional points.
-
#width
The average width, in pixels, of all glyphs in the strike.
-
#x_ppem
The horizontal ppem (nominal width) in 26.6 fractional pixels.
-
#y_ppem
The vertical ppem (nominal width) in 26.6 fractional pixels.
Constructor Detail
Instance Method Detail
The vertical distance, in pixels, between two consecutive baselines. It is always positive.