android - Does Typeface.createFromAsset() cache? -


simple question: typeface.createfromasset() cache? or should keep reference around in memory keep handy? reason why ask because use quite lot (all maintain single font across many activities / views), i'm wondering if typeface simple bit of caching don't have maintain reference myself.

it doesn't, best can tell -- directly calls down into

http://google.com/codesearch/p?hl=en#ux1gffpyozk/core/jni/android/graphics/typeface.cpp&l=115

which looks open asset , create new typeface stream. can double check yourself; check , see if same typeface object multiple calls createfromasset same asset.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -