fonts - How do I get my text to be both bold and italic in iText? -
i trying make text both bold , italic @ same time paragraph in pdf document using itext.
i can use either of these bold , italic respectively, not both simultaneously:
font font = new font(font.fontfamily.times_roman, 10, font.fontstyle.bold.ordinal());
font font = new font(font.fontfamily.times_roman, 10, font.fontstyle.italic.ordinal());
how can use both?
try
font font = new font(font.fontfamily.times_roman, 10, font.bolditalic);
Comments
Post a Comment