TypeScript API Documentation for PANGO
API Version: 1.0
Library Version: 1.57.0
Generated with TypeDoc via ts-for-gir v4.0.0-beta.41
Since 1.12
Quantizes the thickness and position of a line to whole device pixels.
This is typically used for underline or strikethrough. The purpose of this function is to avoid such lines looking blurry.
Care is taken to make sure thickness is at least one pixel when this function returns, but returned position may become zero as a result of rounding.
thickness
position
pointer to the thickness of a line, in Pango units
corresponding position
1.12
Quantizes the thickness and position of a line to whole device pixels.
This is typically used for underline or strikethrough. The purpose of this function is to avoid such lines looking blurry.
Care is taken to make sure
thicknessis at least one pixel when this function returns, but returnedpositionmay become zero as a result of rounding.