template <class character> unsigned get_outline_text_metrics(handle device, unsigned size, outline_text_metrics<character>* metrics)
This function obtains the metrics of the currently selected true type font.
The handle of the device context.
The size (in bytes) of the buffer pointed to by the next parameter.
A pointer to a buffer to hold the array of true type font metric structures. If null is specified, the required buffer size is returned.
|The call failed.
|Either the number of bytes transferred to the buffer or the required buffer size (when the given buffer pointer is null).
The currently selected font must be a true type font.
The sizes in the returned structures are in logical units and are dependent upon the current unit mapping mode.