Bitmap for UWP
TryGetFontTable(Int32,DataPointer,IntPtr) メソッド

C1.UWP.DX アセンブリ > C1.Util.DX.DirectWrite 名前空間 > FontFace クラス > TryGetFontTable メソッド : TryGetFontTable(Int32,DataPointer,IntPtr) メソッド
The four-character tag of a OpenType font table to find. Use the DWRITE_MAKE_OPENTYPE_TAG macro to create it as an UINT32. Unlike GDI, it does not support the special TTCF and null tags to access the whole font.
When this method returns, contains the address of a reference to the base of the table in memory. The reference is valid only as long as the font face used to get the font table still exists; (not any other font face, even if it actually refers to the same physical font).
When this method returns, the address of a reference to the opaque context, which must be freed by calling {{ReleaseFontTable}}. The context actually comes from the lower-level C1.Win.DX.DirectWrite.FontFileStream, which may be implemented by the application or DWrite itself. It is possible for a NULL tableContext to be returned, especially if the implementation performs direct memory mapping on the whole file. Nevertheless, always release it later, and do not use it as a test for function success. The same table can be queried multiple times, but because each returned context can be different, you must release each context separately.
Finds the specified OpenType font table if it exists and returns a reference to it. The function accesses the underlying font data through the C1.Win.DX.DirectWrite.FontFileStreaminterface implemented by the font file loader.
シンタックス
'宣言
 
Public Overloads Function TryGetFontTable( _
   ByVal openTypeTableTag As System.Integer, _
   ByRef tableData As DataPointer, _
   ByRef tableContext As System.IntPtr _
) As System.Boolean
public System.bool TryGetFontTable( 
   System.int openTypeTableTag,
   out DataPointer tableData,
   out System.IntPtr tableContext
)

パラメータ

openTypeTableTag
The four-character tag of a OpenType font table to find. Use the DWRITE_MAKE_OPENTYPE_TAG macro to create it as an UINT32. Unlike GDI, it does not support the special TTCF and null tags to access the whole font.
tableData
When this method returns, contains the address of a reference to the base of the table in memory. The reference is valid only as long as the font face used to get the font table still exists; (not any other font face, even if it actually refers to the same physical font).
tableContext
When this method returns, the address of a reference to the opaque context, which must be freed by calling {{ReleaseFontTable}}. The context actually comes from the lower-level C1.Win.DX.DirectWrite.FontFileStream, which may be implemented by the application or DWrite itself. It is possible for a NULL tableContext to be returned, especially if the implementation performs direct memory mapping on the whole file. Nevertheless, always release it later, and do not use it as a test for function success. The same table can be queried multiple times, but because each returned context can be different, you must release each context separately.

戻り値の型

TRUE if the font table exists; otherwise, FALSE.
解説
The context for the same tag may be different for each call, so each one must be held and released separately.
参照

FontFace クラス
FontFace メンバ
オーバーロード一覧