共用方式為


IDWriteTextAnalyzer1::ApplyCharacterSpacing 方法 (dwrite_1.h)

語法

HRESULT ApplyCharacterSpacing(
  FLOAT                                 leadingSpacing,
  FLOAT                                 trailingSpacing,
  FLOAT                                 minimumAdvanceWidth,
  UINT32                                textLength,
  UINT32                                glyphCount,
  UINT16 const                          *clusterMap,
  FLOAT const                           *glyphAdvances,
  DWRITE_GLYPH_OFFSET const             *glyphOffsets,
  DWRITE_SHAPING_GLYPH_PROPERTIES const *glyphProperties,
  FLOAT                                 *modifiedGlyphAdvances,
  DWRITE_GLYPH_OFFSET                   *modifiedGlyphOffsets
);

參數

leadingSpacing

trailingSpacing

minimumAdvanceWidth

textLength

glyphCount

clusterMap

glyphAdvances

glyphOffsets

glyphProperties

modifiedGlyphAdvances

modifiedGlyphOffsets

規格需求

需求
標頭 dwrite_1.h