Function
Pango.extents_to_pixels
Declaration [src]
void
pango_extents_to_pixels (
PangoRectangle* inclusive,
PangoRectangle* nearest
)
Description [src]
Converts extents from Pango units to device units.
The conversion is done by dividing by the PANGO_SCALE
factor and
performing rounding.
The inclusive
rectangle is converted by flooring the x/y coordinates
and extending width/height, such that the final rectangle completely
includes the original rectangle.
The nearest
rectangle is converted by rounding the coordinates
of the rectangle to the nearest device unit (pixel).
The rule to which argument to use is: if you want the resulting devicespace
rectangle to completely contain the original rectangle, pass it in as
inclusive
. If you want two touchingbutnotoverlapping rectangles stay
touchingbutnotoverlapping after rounding to device units, pass them in
as nearest
.
Available since:  1.16 
Parameters
inclusive 
PangoRectangle 
rectangle to round to pixels inclusively, or 

Can be NULL  
The data is owned by the caller of the function  
nearest 
PangoRectangle 
rectangle to round to nearest pixels, or 

Can be NULL  
The data is owned by the caller of the function 