First time here? Check out the FAQ!
Hi, i am quite puzzled on whether one label can have italic and normal font style together? i know this is not possible even in conventional controls. was just wondering whether zk does provide this kind of functionality? say label B is "ABC DEF"? or do i have to create 2 controls separately just to show one is italic style and the other normal style?
Yes, create two labels.
Hi yunchang83,
ZK parses the value assigned to the label component from a single <span> tag, hence, you can't have a label having texts with different font style.
However, I don't think having to create two labels raises any difficulties :)
You can't just build a new random font on fly by instantly loading UIFontDescriptor artifacts with symbolic characteristics you like, and then instating a new font. If it is a regular font or one you manually applied, the font defined with the descriptor must already be present in the program. Just download the bold version as noted by Kye, add it to your project and use the name to instant a new font.
Asked: 2010-03-24 03:09:34 +0800
Seen: 471 times
Last updated: Jun 28 '20