Hi,
when using system fonts in android, the style (bold, italic) is not applied to font, all system fonts are plain.
I created a fix for that, better this thing goes to implementation itself.
add this to the AndroidImplementation.java class.
<code>
public int getStyle(Object nativeFont) {
if (nativeFont instanceof Paint) {
Paint new_name = (Paint) nativeFont;
return new_name.getTypeface().getStyle();
}
return 0;
}
</code>

Reply viewing options

Nice! I had the same issue but couldn't track it down - this seems to
work fine.
Thanks!

On 15.12.2010 12:14, forums@java.net wrote:
> Hi,
>
> when using system fonts in android, the style (bold, italic) is not applied
> to font, all system fonts are plain.
>
> I created a fix for that, better this thing goes to implementation itself.
>
> add this to the AndroidImplementation.java class.
>
>