fontCacheBudgetBytes

The most bytes of parsed fonts that this document keeps, so that a page drawn again, a thumbnail or a text extraction does not parse its fonts again. A font counts as about twice its embedded program, so a 10 MB CJK font takes about 20 MB. The font used least recently leaves first, and a font larger than the whole budget is not kept. The default is DEFAULT_FONT_CACHE_BUDGET_BYTES; 0 keeps none. Lower it for a small heap, and call dropFontCache when the app runs low on memory.