From 31ce352bb350a10c6ae08f1415d348458b64bf61 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 31 Dec 2012 19:55:37 -0600 Subject: [PATCH] Initialize matrix during name parsing Before: $ fc-match sans:matrix=2 -v | grep matrix matrix: [2 6.95183e-310; 0 0](s) After: $ fc-match sans:matrix=2 -v | grep matrix matrix: [2 0; 0 1](s) --- src/fcname.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fcname.c b/src/fcname.c index b7c0217..0cdbd42 100644 --- a/src/fcname.c +++ b/src/fcname.c @@ -595,6 +595,7 @@ FcNameConvert (FcType type, FcChar8 *string) v.u.d = strtod ((char *) string, 0); break; case FcTypeMatrix: + m.xx = m.yy = 1.; m.xy = m.yx = 0.; sscanf ((char *) string, "%lg %lg %lg %lg", &m.xx, &m.xy, &m.yx, &m.yy); v.u.m = FcMatrixCopy (&m); break;