共用方式為


IDWriteFontFace3::GetRecommendedRenderingMode 方法 (dwrite_3.h)

語法

HRESULT GetRecommendedRenderingMode(
  FLOAT                    fontEmSize,
  FLOAT                    dpiX,
  FLOAT                    dpiY,
  DWRITE_MATRIX const      *transform,
  BOOL                     isSideways,
  DWRITE_OUTLINE_THRESHOLD outlineThreshold,
  DWRITE_MEASURING_MODE    measuringMode,
  IDWriteRenderingParams   *renderingParams,
  DWRITE_RENDERING_MODE1   *renderingMode,
  DWRITE_GRID_FIT_MODE     *gridFitMode
);

參數

fontEmSize

dpiX

dpiY

transform

isSideways

outlineThreshold

measuringMode

renderingParams

renderingMode

gridFitMode

規格需求

需求
最低支援的用戶端 Windows 10 版本 1809 (Windows 應用程式 SDK 0.5 或更新版本)
標頭 dwrite_3.h