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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for