#include <fontconfig.h>
void FcMatrixRotate (FcMatrix *matrix, doublecos, doublesin);
FcMatrixRotate rotates matrix by the angle who's sine is sin and cosine is cos. This is done by multiplying by the matrix:
cos -sin sin cos
Fontconfig version 2.3.2