Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

The CairoHintStyle class

(No version information available, might only be in SVN)


Specifies the type of hinting to do on font outlines. Hinting is the process of fitting outlines to the pixel grid in order to improve the appearance of the result. Since hinting outlines involves distorting them, it also reduces the faithfulness to the original outline shapes. Not all of the outline hinting styles are supported by all font backends.

Class synopsis

CairoHintStyle {
/* Constants */
const integer STYLE_DEFAULT = 0 ;
const integer STYLE_NONE = 1 ;
const integer STYLE_SLIGHT = 2 ;
const integer STYLE_MEDIUM = 3 ;
const integer STYLE_FULL = 4 ;

Predefined Constants


Use the default hint style for font backend and target device


Do not hint outlines


Hint outlines slightly to improve contrast while retaining good fidelity to the original shapes.


Hint outlines with medium strength giving a compromise between fidelity to the original shapes and contrast


Hint outlines to maximize contrast

PHP Manual