PgMiscellaneous.quantizeLineGeometry

Quantizes the thickness and position of a line, typically an underline or strikethrough, to whole device pixels, that is integer multiples of PANGO_SCALE. 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. Since 1.12

class PgMiscellaneous
static
void
quantizeLineGeometry
(
ref int thickness
,
ref int position
)

Parameters

thickness int

pointer to the thickness of a line, in Pango units. inout

position int

corresponding position. inout

Meta