If an application calls XftGlyphExtents before attempting to draw a character,
libXft assumes that the uninitialized metrics allocated in XftFontCheckGlyph()
are valid, causing an abnormally-large XGetImage request to be generated.
Created attachment 18 [details] [review]
patch to clear metrics and load glyphs correctly
Ah. Your fix masks the real problem. XftFontCheckGlyph isn't supposed to load
glyphs; it delays that to batch glyphs together in a single request. Callers
are required to also call XftFontLoadGlyphs to actually generate
the glyph data. I'll attach a substitute patch which should actually fix this
Created attachment 21 [details] [review]
Load missing glyphs before accessing metrics in XftGlyphFontSpecCore
I've tested patch in attachment 21 [details] [review] locally, and it fixes the problem.
Confirmed, the problem appears fixed for me too.
Mass update: Close all bugs resolved over one year ago.