Share via


IXpsOMGlyphs::GetGlyphMappings 方法 (xpsobjectmodel.h)

取得XPS_GLYPH_MAPPING結構的陣列,描述如何將 UTF-16 純量值對應至getGlyphIndices所傳回XPS_GLYPH_INDEX結構陣列中的專案。

語法

HRESULT GetGlyphMappings(
  [in, out] UINT32            *glyphMappingCount,
  [in, out] XPS_GLYPH_MAPPING *glyphMappings
);

參數

[in, out] glyphMappingCount

符合glyphMappings所參考陣列的XPS_GLYPH_MAPPING結構數目。 當方法傳回時, glyphMappingCount 會包含 glyphMappings所參考之陣列中傳回的值數目。

[in, out] glyphMappings

包含字元對應值的 XPS_GLYPH_MAPPING 結構陣列。

傳回值

方法會傳回 HRESULT。 可能的值包括但不限於下列資料表中的值。 如需此表格中未列出的 XPS 檔 API 傳回值的相關資訊,請參閱 XPS 檔錯誤

傳回碼 描述
S_OK
此方法已成功。
E_POINTER
glyphMappingCountglyphMappings或兩者都是 Null
ERROR_MORE_DATA
glyphMappings 不夠大,無法接收圖像索引資料。 glyphMappingCount 包含必要的元素數目。

備註

GetGlyphMappingCount 會取得圖像對應的數目。

規格需求

   
最低支援的用戶端 適用于 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

另請參閱

GetGlyphMappingCount

IXpsOMGlyphs

XML Paper Specification

XPS 檔錯誤

XPS_GLYPH_INDEX

XPS_GLYPH_MAPPING