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

If Font CPI is configured in the connection, this method does not return the constant FONT_CPI . Use the IsFontCPI method to determine whether Font CPI is set in the connection.