PrivateFontCollection.AddMemoryFont(IntPtr, Int32) 方法

定義

將包含在系統記憶體中的字型加入這個 PrivateFontCollection

public:
 void AddMemoryFont(IntPtr memory, int length);
public void AddMemoryFont (IntPtr memory, int length);
member this.AddMemoryFont : nativeint * int -> unit
Public Sub AddMemoryFont (memory As IntPtr, length As Integer)

參數

memory
IntPtr

nativeint

要加入的字型記憶體位址。

length
Int32

要加入的字型記憶體長度。

備註

若要使用記憶體字型,控件上的文字必須使用 GDI+轉譯。 SetCompatibleTextRenderingDefault使用 方法傳遞 true,將控件的 UseCompatibleTextRendering 屬性true設定為 ,以在應用程式或個別控件上設定 GDI+ 轉譯。 某些控件無法使用 GDI+轉譯。

適用於

另請參閱