Table of Contents

Struct GlyphImageData

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll

Data for a single glyph from GetGlyphImageData.

public struct GlyphImageData
Inherited Members

Fields

HorizontalLeftOrigin

Left origin along the horizontal Roman baseline.

public RawPoint HorizontalLeftOrigin

Field Value

RawPoint

HorizontalRightOrigin

Right origin along the horizontal Roman baseline.

public RawPoint HorizontalRightOrigin

Field Value

RawPoint

ImageData

Pointer to the glyph data.

public nint ImageData

Field Value

nint

ImageDataSize

Size of glyph data in bytes.

public int ImageDataSize

Field Value

int

PixelSize

Size of image when the format is pixel data.

public Size2 PixelSize

Field Value

Size2

PixelsPerEm

Pixels per em of the returned data. For non-scalable raster data (PNG/TIFF/JPG), this can be larger or smaller than requested from GetGlyphImageData when there isn't an exact match. For scaling intermediate sizes, use: desired pixels per em * font em size / actual pixels per em.

public int PixelsPerEm

Field Value

int

UniqueDataId

Unique identifier for the glyph data. Clients may use this to cache a parsed/decompressed version and tell whether a repeated call to the same font returns the same data.

public int UniqueDataId

Field Value

int

VerticalBottomOrigin

Bottom origin along vertical central baseline.

public RawPoint VerticalBottomOrigin

Field Value

RawPoint

VerticalTopOrigin

Top origin along the vertical central baseline.

public RawPoint VerticalTopOrigin

Field Value

RawPoint