(xpsobjectmodel.h) 的 IXpsOMGlyphs 介面

描述出現在頁面上的文字。

IXpsOMGlyphsEditor 介面可用來修改此介面所描述的文字。

繼承

IXpsOMGlyphs 介面繼承自IXpsOMVisualIXpsOMGlyphs 也有下列類型的成員:

方法

IXpsOMGlyphs 介面具有這些方法。

 
IXpsOMGlyphs::Clone

製作介面的深層複本。 (IXpsOMGlyphs.Clone)
IXpsOMGlyphs::GetBidiLevel

取得雙向文字的層級。
IXpsOMGlyphs::GetDeviceFontName

取得裝置字型的名稱。 (IXpsOMGlyphs.GetDeviceFontName)
IXpsOMGlyphs::GetFillBrush

取得要用於文字之填滿筆刷之已解析之 IXpsOMBrush 介面的指標。
IXpsOMGlyphs::GetFillBrushLocal

取得要用於文字之填滿筆刷之本機未共用IXpsOMBrush 介面的指標。
IXpsOMGlyphs::GetFillBrushLookup

取得儲存在資源字典中的IXpsOMBrush 介面查閱索引鍵,並做為填滿筆刷。
IXpsOMGlyphs::GetFontFaceIndex

取得要使用的字型臉部索引。
IXpsOMGlyphs::GetFontRenderingEmSize

取得字型大小。 (IXpsOMGlyphs.GetFontRenderingEmSize)
IXpsOMGlyphs::GetFontResource

取得這個文字所需字型資源物件的IXpsOMFontResource 介面指標。
IXpsOMGlyphs::GetGlyphIndexCount

取得字元索引的數目。
IXpsOMGlyphs::GetGlyphIndices

取得XPS_GLYPH_INDEX結構的陣列,這些結構描述字型中的特定圖像索引。 (IXpsOMGlyphs.GetGlyphIndices)
IXpsOMGlyphs::GetGlyphMappingCount

取得圖像對應的數目。 (IXpsOMGlyphs.GetGlyphMappingCount)
IXpsOMGlyphs::GetGlyphMappings

取得XPS_GLYPH_MAPPING結構的陣列,描述如何將UTF-16純量值對應至 getGlyphIndices 所傳回XPS_GLYPH_INDEX結構數位中的專案。 (IXpsOMGlyphs.GetGlyphMappings)
IXpsOMGlyphs::GetGlyphsEditor

取得IXpsOMGlyphsEditor 介面的指標,該介面將用來編輯物件中的字元。
IXpsOMGlyphs::GetIsSideways

取得布爾值,這個值表示文字是否要以旋轉的字元側邊轉譯。 (IXpsOMGlyphs.GetIsSideways)
IXpsOMGlyphs::GetOrigin

取得文字的開始位置。
IXpsOMGlyphs::GetProhibitedCaretStopCount

取得禁止插入號停止的數目。 (IXpsOMGlyphs.GetProhibitedCaretStopCount)
IXpsOMGlyphs::GetProhibitedCaretStops

取得禁止插入號停止位置的陣列。 (IXpsOMGlyphs.GetProhibitedCaretStops)
IXpsOMGlyphs::GetStyleSimulations

取得呈現圖像時將套用的樣式模擬。
IXpsOMGlyphs::GetUnicodeString

取得未逸出UTF-16純量值的文字。 (IXpsOMGlyphs.GetUnicodeString)
IXpsOMGlyphs::SetFillBrushLocal

設定本機未共用填滿筆刷的IXpsOMBrush 介面指標。
IXpsOMGlyphs::SetFillBrushLookup

設定共用填滿筆刷的查閱索引鍵名稱。
IXpsOMGlyphs::SetFontFaceIndex

設定要使用的字型臉部索引。
IXpsOMGlyphs::SetFontRenderingEmSize

設定文字的字型大小。
IXpsOMGlyphs::SetFontResource

設定此文字所需字型資源物件的IXpsOMFontResource 介面指標。
IXpsOMGlyphs::SetOrigin

設定文字的開始位置。
IXpsOMGlyphs::SetStyleSimulations

設定在轉譯圖像時套用的樣式模擬。

備註

下列程式代碼範例說明如何建立此介面的實例。


IXpsOMGlyphs       *newInterface;
// this interface is defined outside of this example
//  IXpsOMFontResource *font; 

// Note the implicit requirement that CoInitializeEx 
//  has previously been called from this thread.

hr = CoCreateInstance(
    __uuidof(XpsOMObjectFactory),
    NULL,
    CLSCTX_INPROC_SERVER,
    _uuidof(IXpsOMObjectFactory),
    reinterpret_cast<LPVOID*>(&xpsFactory)
    );

if (SUCCEEDED(hr))
{
    hr = xpsFactory->CreateGlyphs (font, &newInterface);
    if (SUCCEEDED(hr))
    {
        // use newInterface

        newInterface->Release();
    }
    xpsFactory->Release();
}
else
{
    // evaluate HRESULT error returned in hr
}

規格需求

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

另請參閱

IXpsOMBrush

IXpsOMFontResource

IXpsOMGlyphsEditor

IXpsOMObjectFactory::CreateGlyphs

IXpsOMVisual

介面

XML Paper Specification