On Tue, Mar 24, 2009 at 1:52 AM, Mark Murphy <[email protected]> wrote: > > zl25drexel wrote: >> Hi, does anyone know how to construct a typeface object from a file? >> Say i have a .ttf file on the SD card, how do i load it into my app? > > I do not believe you can. > > You can create a Typeface object from a suitable TTF that is packaged as > an asset with your application, but there is no method on Typeface to > create one from a file outside of there. >
That's right. You can't. Now, the thing is, why isn't this supported, and would it be supported? What if I'm developing a rich text editor, and want to allow the user to download and use whatever fonts s/he wants? What's the reason for AssetManager to be marked final? Is this by design, perhaps a security thing, or it's something else? Cheers --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

