BitmapMetrics
Mojo struct 🡭
BitmapMetrics
@memory_only
struct BitmapMetricsA color bitmap glyph’s placement, in the strike’s own pixels: found is False when the glyph has no bitmap. bearing_y is the distance from the baseline up to the bitmap’s top edge, as in the sbit metrics.
Fields
- found (
Bool) - ppem (
Int) - width (
Int) - height (
Int) - bearing_x (
Int) - bearing_y (
Int) - advance (
Int)
Implemented traits
AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable
Methods
__init__
fn def __init__(out self, found: Bool, ppem: Int, width: Int, height: Int, bearing_x: Int, bearing_y: Int, advance: Int)Args:
- found (
Bool) - ppem (
Int) - width (
Int) - height (
Int) - bearing_x (
Int) - bearing_y (
Int) - advance (
Int) - self (
Self)
Returns:
Self