bool get_decimal_character_widths(handle device,
                                  unsigned first,
                                  unsigned last,
                                  float* widths)

This function obtains a range of decimal widths of characters that are consecutive in the current font.


handle device

The handle of a device context.

unsigned first

The code point of the first character in the font to be retrieved.

unsigned last

The code point of the last character in the font to be retrieved.

float* widths

A pointer to a buffer to hold the returned character widths.



true The function succeeded.
false The call failed.


The values obtained are in logical coordinates measured along the baseline of the string.

The returned range is inclusive (required buffer size Last-First+1).

If no font character exists at a codepoint, the width of the font's default character is returned.