IXpsOMGlyphs::GetGlyphIndices 方法 (xpsobjectmodel.h)
取得 XPS_GLYPH_INDEX 結構的陣列,這些結構描述字型中的特定字元索引。
語法
HRESULT GetGlyphIndices(
[in, out] UINT32 *indexCount,
[in, out] XPS_GLYPH_INDEX *glyphIndices
);
參數
[in, out] indexCount
符合字元Indices 所參考數位的XPS_GLYPH_INDEX結構數目。 當方法傳回時,indexCount 會包含 glyphIndices 所參考數位中所傳回的XPS_GLYPH_INDEX結構數目。
[in, out] glyphIndices
接收字元索引 之XPS_GLYPH_INDEX 結構的數位位址。
傳回值
方法會傳回 HRESULT。 可能的值包括但不限於下列數據表中的值。 如需此表格中未列出的 XPS 檔 API 傳回值的相關信息,請參閱 XPS 檔錯誤。
傳回碼 | 描述 |
---|---|
|
此方法已成功。 |
|
indexCount 或 glyphIndices 為 NULL。 |
|
glyphIndices 不夠大,無法接收圖像索引數據。 indexCount 包含必要的項目數目。 |
備註
GetGlyphIndexCount 會取得字元索引陣列中的元素數目。
圖像索引會覆寫從 UnicodeString 到字元索引的預設 cmap 對應。 XPS_GLYPH_INDEX 結構也包含進階寬度以及垂直和水準位移資訊。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | 適用於 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式] |
最低支援的伺服器 | Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式] |
目標平台 | Windows |
標頭 | xpsobjectmodel.h |