IDWriteFactory4::ComputeGlyphOrigins(DWRITE_GLYPH_RUNconst*,DWRITE_MEASURING_MODE,D2D1_POINT_2F,DWRITE_MATRIXconst*,D2D1_POINT_2F*) method (dwrite_3.h)

Converts glyph run placements to glyph origins.

Syntax

HRESULT ComputeGlyphOrigins(
  DWRITE_GLYPH_RUN const *glyphRun,
  DWRITE_MEASURING_MODE  measuringMode,
  D2D1_POINT_2F          baselineOrigin,
  DWRITE_MATRIX const    *worldAndDpiTransform,
  D2D1_POINT_2F          *glyphOrigins
);

Parameters

glyphRun

Type: DWRITE_GLYPH_RUN

Structure containing the properties of the glyph run.

measuringMode

baselineOrigin

Type: D2D1_POINT_2F

The position of the baseline origin, in DIPs, relative to the upper-left corner of the DIB.

worldAndDpiTransform

glyphOrigins

Type: [out] D2D1_POINT_2F*

On return contains the glyph origins for the glyphrun.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The transform and DPI have no effect on the origin scaling. They are solely used to compute glyph advances when not supplied and align glyphs in pixel aligned measuring modes.

Requirements

Requirement Value
Target Platform Windows
Header dwrite_3.h
Library Dwrite.lib

See also

IDWriteFactory4