Example usage for com.lowagie.text Font getStyle

List of usage examples for com.lowagie.text Font getStyle

Introduction

In this page you can find the example usage for com.lowagie.text Font getStyle.

Prototype

public int getStyle() 

Source Link

Document

Gets the style of this font.

Usage

From source file:org.unitime.timetable.util.PdfFont.java

License:Open Source License

public static Font getSmallFont(boolean bold, boolean italic, boolean underline, Color color) {
    Font font = getSmallFont(bold, italic);
    if (underline)
        font.setStyle(font.getStyle() + Font.UNDERLINE);
    if (color != null)
        font.setColor(color);/*from  ww  w.  ja v a  2  s .  co  m*/
    return font;
}