ID3DXFont::GetTextMetrics method
Retrieves font characteristics that are identified in a TEXTMETRIC structure. This method supports ANSI and Unicode compiler settings.
Syntax
BOOL GetTextMetrics(
[out] TEXTMETRIC *pTextMetrics
);
Parameters
-
pTextMetrics [out]
-
Type: TEXTMETRIC*
Pointer to a TEXTMETRIC structure, which contains font properties.
Return value
Type: BOOL
Nonzero if the function is successful; otherwise 0.
Remarks
The compiler setting also determines the structure type. If Unicode is defined, the function returns a TEXTMETRICW structure. Otherwise, the function call returns a TEXTMETRICA structure.
Requirements
Requirement | Value |
---|---|
Header |
|
Library |
|
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for