Example usage for com.itextpdf.io.font.constants FontStyles ITALIC

List of usage examples for com.itextpdf.io.font.constants FontStyles ITALIC

Introduction

In this page you can find the example usage for com.itextpdf.io.font.constants FontStyles ITALIC.

Prototype

int ITALIC

To view the source code for com.itextpdf.io.font.constants FontStyles ITALIC.

Click Source Link

Document

Italic font style.

Usage

From source file:org.reactome.server.tools.diagram.exporter.raster.itext.awt.DefaultFontMapper.java

License:Open Source License

private int extractItextStyle(Font font) {
    if (font.isItalic() && font.isBold())
        return FontStyles.BOLDITALIC;
    if (font.isBold())
        return FontStyles.BOLD;
    if (font.isItalic())
        return FontStyles.ITALIC;
    if (font.isPlain())
        return FontStyles.NORMAL;
    return FontStyles.UNDEFINED;
}