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

Converts glyph run placements to glyph origins.

Syntax

HRESULT ComputeGlyphOrigins(
  DWRITE_GLYPH_RUN const *glyphRun,
  D2D1_POINT_2F          baselineOrigin,
  D2D1_POINT_2F          *glyphOrigins
);

Parameters

glyphRun

Type: DWRITE_GLYPH_RUN

Structure containing the properties of the glyph run.

baselineOrigin

Type: D2D1_POINT_2F

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

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