prevent invalid CachedFont pointers
turn gFontsCache into a linked list (cf. r8716)