PrivateFontCollection.AddMemoryFont(IntPtr, Int32) Método

Definição

Adiciona uma fonte contida na memória do sistema a este PrivateFontCollection.Adds a font contained in system memory to this 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)

Parâmetros

memory
IntPtr

O endereço de memória da fonte a ser adicionada.The memory address of the font to add.

length
Int32

O tamanho da memória da fonte a ser adicionada.The memory length of the font to add.

Comentários

Para usar a fonte de memória, o texto em um controle deve ser renderizado com GDI+.To use the memory font, text on a control must be rendered with GDI+. Use o SetCompatibleTextRenderingDefault método, passando true , para definir a RENDERIZAÇÃO de GDI+ no aplicativo ou em controles individuais, definindo a propriedade do controle UseCompatibleTextRendering como true .Use the SetCompatibleTextRenderingDefault method, passing true, to set GDI+ rendering on the application, or on individual controls by setting the control's UseCompatibleTextRendering property to true. Alguns controles não podem ser renderizados com GDI+.Some controls cannot be rendered with GDI+.

Aplica-se a

Confira também