From 09bd9ae2be032efb05a8be7bae584fa18756d951 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 1 Sep 2006 02:22:59 -0700 Subject: [PATCH] Fontset pattern references are relative to fontset, not array. Within a fontset, the patterns are stored as pointers in an array. When stored as offsets, the offsets are relative to the fontset object itself, not the base of the array of pointers. --- src/fcint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcint.h b/src/fcint.h index 42aa0eb..78d17e7 100644 --- a/src/fcint.h +++ b/src/fcint.h @@ -201,7 +201,7 @@ struct _FcPattern { #define FcFontSetFonts(fs) FcPointerMember(fs,fonts,FcPattern *) #define FcFontSetFont(fs,i) (FcIsEncodedOffset((fs)->fonts) ? \ - FcEncodedOffsetToPtr(FcFontSetFonts(fs), \ + FcEncodedOffsetToPtr(fs, \ FcFontSetFonts(fs)[i], \ FcPattern) : \ fs->fonts[i]) -- 2.39.2