Would it be possible to support "Typeface.createFromAsset" for the layout 
previewer? We have a set of custom views that load custom typefaces and it 
would be a huge time saver if we could see the results in the Android 
Studio layout previewer. We essentially do something like this (where name 
is the filename to load):

    AssetManager am = context.getApplicationContext().getAssets();
    typeface = Typeface.createFromAsset(am, String.format(Locale.US, 
"fonts/%s", name));
    setTypeface(typeface);

Realize this may be a huge amount of work so I'm mostly just curious if 
it's on your radar. I can file a ticket if it's something that's feasible.

Thanks!

-Tristan

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to