get_text_metrics


bool get_text_metrics(handle device,
                      text_metrics* metrics)

This function obtains the metrics of the currently selected font.

Parameters

handle device

The handle of the device context.

text_metrics* metrics

A pointer to a buffer to hold the metrics of the currently selected font.

Return

bool

true The function succeeded.
false The call failed.