Microsoft DirectX 9.0 SDK Update (October 2004)

Font.GetGlyphData Method

Language:

Note: This documentation is preliminary and is subject to change.

Returns information about the placement and orientation of a glyph in a character cell.

Definition

Visual Basic .NET Public Function GetGlyphData( _
    ByVal glyph As Integer, _
    ByRef blackBox As Rectangle, _
    ByRef cellInc As Point _
) As Texture
C# public Texture GetGlyphData(
    int glyph,
    out Rectangle blackBox,
    out Point cellInc
);
Managed C++ public: Texture* GetGlyphData(
    int glyph,
    Rectangle *blackBox,
    Point *cellInc
);
JScript .NET public function GetGlyphData(
    glyph : int,
    blackBox : Rectangle,
    cellInc : Point
) : Texture;

Parameters

glyph System.Int32. Glyph identifier.
blackBox System.Drawing.Rectangle. Smallest Rectangle Leave Site object that completely encloses the glyph (its black box).
cellInc System.Drawing.Point. A Vector2 structure that connects the origin of the current character cell to the origin of the next character cell.

Return Value

Microsoft.DirectX.Direct3D.Texture . A Texture object that contains the glyph.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
InvalidDataException The data is invalid.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center