07-07-2009 04:04 AM
hi, i know that i can simply bold text using Font and FontFamily, par example:
FontFamily _fontFamily; Font _font; try{ _fontFamily = FontFamily.forName(_fontName); _font = _fontFamily.getFont(FontFamily.SCALABLE_FONT, _fontSize).derive(Font.BOLD); LabelField _field = new LabelField(); _field.setFont(_font); }catch(Exception e){ }
and now, text that appears on the _field will be bold. but i would like to write a method that will bold the string.. par example: i want to add some text to the field, but i do not want all of it to be bold, only some, which i'll choose. is it possible to bold a string? so that i could then add to the field bolded (or not) stirng?
kind regards
07-07-2009 04:31 AM
I am not really sure if it is possible to bold any string without adding any field.
But you can use RichTextField to format text with different fonts.
How To - Format text in a RichTextField
http://www.blackberry.com/knowledgecenterpublic/li
Regards
Bikas
07-07-2009 04:35 AM
07-07-2009 05:15 AM
I had the same link to post here which bikas suggested, before my lunch.. Agree with the above two posters..
Cheers..