Search in sources :

Example 1 with PPFont

use of org.apache.poi.hslf.model.PPFont in project poi by apache.

the class HSLFTextParagraph method getBulletFont.

/**
     * Returns the bullet font
     */
public String getBulletFont() {
    TextProp tp = getPropVal(_paragraphStyle, _masterStyle, "bullet.font");
    boolean hasFont = getFlag(ParagraphFlagsTextProp.BULLET_HARDFONT_IDX);
    if (tp == null || !hasFont) {
        return getDefaultFontFamily();
    }
    PPFont ppFont = getSheet().getSlideShow().getFont(tp.getValue());
    assert (ppFont != null);
    return ppFont.getFontName();
}
Also used : PPFont(org.apache.poi.hslf.model.PPFont) BitMaskTextProp(org.apache.poi.hslf.model.textproperties.BitMaskTextProp) TextProp(org.apache.poi.hslf.model.textproperties.TextProp) ParagraphFlagsTextProp(org.apache.poi.hslf.model.textproperties.ParagraphFlagsTextProp)

Aggregations

PPFont (org.apache.poi.hslf.model.PPFont)1 BitMaskTextProp (org.apache.poi.hslf.model.textproperties.BitMaskTextProp)1 ParagraphFlagsTextProp (org.apache.poi.hslf.model.textproperties.ParagraphFlagsTextProp)1 TextProp (org.apache.poi.hslf.model.textproperties.TextProp)1