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:
parent
18b6857c64
commit
09bd9ae2be
|
@ -201,7 +201,7 @@ struct _FcPattern {
|
||||||
#define FcFontSetFonts(fs) FcPointerMember(fs,fonts,FcPattern *)
|
#define FcFontSetFonts(fs) FcPointerMember(fs,fonts,FcPattern *)
|
||||||
|
|
||||||
#define FcFontSetFont(fs,i) (FcIsEncodedOffset((fs)->fonts) ? \
|
#define FcFontSetFont(fs,i) (FcIsEncodedOffset((fs)->fonts) ? \
|
||||||
FcEncodedOffsetToPtr(FcFontSetFonts(fs), \
|
FcEncodedOffsetToPtr(fs, \
|
||||||
FcFontSetFonts(fs)[i], \
|
FcFontSetFonts(fs)[i], \
|
||||||
FcPattern) : \
|
FcPattern) : \
|
||||||
fs->fonts[i])
|
fs->fonts[i])
|
||||||
|
|
Loading…
Reference in New Issue