You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue from Brad and is to be reproduced.
Contextcontext;Matrixmatrix= context.FontMatrix;
This will cause an exception to be thrown. It looks like it is coming from the Native code. I wasn’t sure how you were sourcing the cairod.dll so I stopped digging there.
The text was updated successfully, but these errors were encountered:
I did see the same issue when using the FontMatrix-getter. Changing the Matrix-parameter of NativeMethods.cairo_get_font_matrix to being a non-out-param did the trick for us:
internal static extern void cairo_get_font_matrix (IntPtr cr, Matrix matrix);
public Matrix FontMatrix {
get {
CheckDisposed ();
Matrix m = new Matrix();
NativeMethods.cairo_get_font_matrix (handle, m);
return m;
}
set {
CheckDisposed ();
NativeMethods.cairo_set_font_matrix (handle, value);
}
}
This way, it is also done in the Matrix property of Context (which worked out of the box), so I assume this fixes it.
This is an issue from Brad and is to be reproduced.
This will cause an exception to be thrown. It looks like it is coming from the Native code. I wasn’t sure how you were sourcing the cairod.dll so I stopped digging there.
The text was updated successfully, but these errors were encountered: