FcMatrixInit
3
FcMatrixInit
initialize an FcMatrix structure
#include <fontconfig/fontconfig.h>
void FcMatrixInit
FcMatrix *matrix
Description
FcMatrixInit initializes matrix
to the identity matrix.
Version
Fontconfig version &version;
FcMatrixCopy
3
FcMatrixCopy
Copy a matrix
#include <fontconfig/fontconfig.h>
void FcMatrixCopy
const FcMatrix *matrix
Description
FcMatrixCopy allocates a new FcMatrix
and copies mat into it.
Version
Fontconfig version &version;
FcMatrixEqual
3
FcMatrixEqual
Compare two matrices
#include <fontconfig/fontconfig.h>
void FcMatrixEqual
const FcMatrix *matrix1
const FcMatrix *matrix2
Description
FcMatrixEqual compares matrix1
and matrix2 returning FcTrue when they are equal and
FcFalse when they are not.
Version
Fontconfig version &version;
FcMatrixMultiply
3
FcMatrixMultiply
Multiply matrices
#include <fontconfig/fontconfig.h>
void FcMatrixMultiply
FcMatrix *result
const FcMatrix *matrix1
const FcMatrix *matrix2
Description
FcMatrixMultiply multiplies
matrix1 and matrix2 storing
the result in result.
Version
Fontconfig version &version;
FcMatrixRotate
3
FcMatrixRotate
Rotate a matrix
#include <fontconfig/fontconfig.h>
void FcMatrixRotate
FcMatrix *matrix
double cos
double sin
Description
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
Version
Fontconfig version &version;
FcMatrixScale
3
FcMatrixScale
Scale a matrix
#include <fontconfig/fontconfig.h>
void FcMatrixScale
FcMatrix *matrix
double sx
double dy
Description
FcMatrixScale multiplies matrix
x values by sx and y values by
dy. This is done by multiplying by
the matrix:
sx 0
0 dy
Version
Fontconfig version &version;
FcMatrixShear
3
FcMatrixShear
Shear a matrix
#include <fontconfig/fontconfig.h>
void FcMatrixShear
FcMatrix *matrix
double sh
double sv
Description
FcMatrixShare shears matrix
horizontally by sh and vertically by
sv. This is done by multiplying by
the matrix:
1 sh
sv 1
Version
Fontconfig version &version;