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

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

Introduction

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

Prototype

int BOLDITALIC

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

Click Source Link

Document

Bold-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;
}