Package: cairo

CEnum cairo-font-type-t

Details

The cairo-font-type-t enumeration is used to describe the type of a given font face or scaled font. The font types are also known as "font backends" within Cairo.

The type of a font face is determined by the function used to create it, which will generally be of the form cairo-type-font-face-create. The font face type can be queried with the function cairo-font-face-get-type.

The various cairo-font-face-t functions can be used with a font face of any type.

The type of a scaled font is determined by the type of the font face passed to the function cairo-scaled-font-create. The scaled font type can be queried with the function cairo-scaled-font-get-type.

The various cairo-scaled-font-t functions can be used with scaled fonts of any type, but some font backends also provide type-specific functions that must only be called with a scaled font of the appropriate type. These functions have names that begin with cairo-type-scaled-font such as the function cairo-ft-scaled-font-lock-face.

The behavior of calling a type-specific function with a scaled font of the wrong type is undefined.

New entries may be added in future versions.
(defcenum cairo-font-type-t
  :toy
  :ft
  :win32
  :quartz
  :user)  
:toy
The font was created using Cairo's toy font api.
:ft
The font is of type FreeType.
:win32
The font is of type Win32.
:quartz]{The font is of type Quartz.
:user
The font was create using Cairo's user font api.
 

See also

2020-12-28