unitsFromDouble

fnint unitsFromDouble(double d)

Converts a floating-point number to Pango units.

The conversion is done by multiplying d by pango.types.SCALE and rounding the result to nearest integer.

Parameters

ddouble floating-point value

Returns

the value in Pango units.