Open GoogleCodeExporter opened 9 years ago
Oh, and I tried it first without the explicit cast to ByteArray() - same result.
Original comment by jcfxj...@gmail.com
on 30 Jan 2012 at 8:00
I've found a workaround for this. Instead of casting to ByteArray, cast the
font class to ByteArrayAsset:
FontsResourceFactory.getInstance().registerFont("My_Times_New_Roman__Regular.ttf
", ByteArrayAsset(new My_Times_New_Roman__Regular()));
(Also, the registered font name needs the .ttf extension, although this is not
what was causing the error).
Hope this is useful,
Jude Fisher / JcFx.Eu
Original comment by jcfxj...@gmail.com
on 31 Jan 2012 at 1:01
Original issue reported on code.google.com by
jcfxj...@gmail.com
on 30 Jan 2012 at 8:00Attachments: