This method returns the LPI (lines per inch) value of the connection. Even if Font LPI is selected in the associated connection, this method returns the value of the LPI selected for the font in the associated connection.

If Font LPI is configured in the connection, this method does not return the constant FONT_LPI. Use the IsFontLPI method to determine whether Font LPI is set in the connection.