Text underlines don't appear to have the same thickness when zoomed out

Question:

After underlining text, and zooming out, some of the lines appear thicker than others. It appears some lines are more aliased than others.

How can we correct this?

Answer:

This is due to pixel alignment issues, and can be controlled with the pixel_grid_fit parameter of PDFViewCtrl.SetThinLineAdjustment function.

pdfviewctrl.[SetThinLineAdjustment](http://www.pdftron.com/pdfnet/docs/PDFNet/?topic=html/M_pdftron_PDF_PDFViewCtrl_SetThinLineAdjustment.htm)(pixel_grid_fit, true); // set pixel_grid_fit to true