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.
This commit is contained in:
Keith Packard 2006-09-01 02:22:59 -07:00
parent 18b6857c64
commit 09bd9ae2be
1 changed files with 1 additions and 1 deletions

View File

@ -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])