glyphCacheProc has the side effect of moving 'text' to the next input. Calling this twice is not good.
lgtm
Committed revision 2959.