System.Drawing.Text.PrivateFontCollection.AddMemoryFont Method

Adds a font contained in system memory to this System.Drawing.Text.PrivateFontCollection.

Syntax

public void AddMemoryFont (IntPtr memory, int length)

Parameters

memory
The memory address of the font to add.
length
The memory length of the font to add.

Remarks

To use the memory font, text on a control must be rendered with GDI+. Use the System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(bool) method, passing true, to set GDI+ rendering on the application, or on individual controls by setting the control's System.Windows.Forms.GroupBox.UseCompatibleTextRendering property to true. Some controls cannot be rendered with GDI+.

Requirements

Namespace: System.Drawing.Text
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0