Table of Contents

Class RasterizedGlyph

Namespace
KernSmith.Rasterizer
Assembly
KernSmith.dll

A rasterized glyph: bitmap pixel data with positioning metrics.

public sealed class RasterizedGlyph
Inheritance
RasterizedGlyph
Inherited Members

Properties

BitmapData

The pixel data. Grayscale (1 byte/pixel) or RGBA (4 bytes/pixel) depending on Format.

public required byte[] BitmapData { get; init; }

Property Value

byte[]

Codepoint

The Unicode character code this glyph represents.

public required int Codepoint { get; init; }

Property Value

int

Format

Whether the pixel data is grayscale or RGBA.

public required PixelFormat Format { get; init; }

Property Value

PixelFormat

GlyphIndex

Internal glyph index inside the font file.

public required int GlyphIndex { get; init; }

Property Value

int

Height

Height in pixels.

public required int Height { get; init; }

Property Value

int

Metrics

Glyph positioning metrics: bearing offsets, advance width, and rendered dimensions.

public required GlyphMetrics Metrics { get; init; }

Property Value

GlyphMetrics

Pitch

Bytes per row in BitmapData (may include padding).

public required int Pitch { get; init; }

Property Value

int

Width

Width in pixels.

public required int Width { get; init; }

Property Value

int