RFonts rFonts = factory.createRFonts(); if (lvlPPr.getDefRPr().getLatin().getTypeface().startsWith("+mj") ) { rFonts.setAscii( fontScheme.getMajorFont().getLatin().getTypeface() ); } else if (lvlPPr.getDefRPr().getLatin().getTypeface().startsWith("+mn") ) { rFonts.setAscii( fontScheme.getMinorFont().getLatin().getTypeface() );
RFonts rFonts = factory.createRFonts(); if (lvlPPr.getDefRPr().getLatin().getTypeface().startsWith("+mj") ) { rFonts.setAscii( fontScheme.getMajorFont().getLatin().getTypeface() ); } else if (lvlPPr.getDefRPr().getLatin().getTypeface().startsWith("+mn") ) { rFonts.setAscii( fontScheme.getMinorFont().getLatin().getTypeface() );
private FontCollection getMajorFontCollection() throws Docx4JException { if (majorFontCollectionInitialised) return majorFontCollection; if (this.getContents().getThemeElements()!=null && this.getContents().getThemeElements().getFontScheme()!=null) { majorFontCollection = this.getContents().getThemeElements().getFontScheme().getMajorFont(); } majorFontCollectionInitialised = true; return majorFontCollection; }
private FontCollection getMajorFontCollection() throws Docx4JException { if (majorFontCollectionInitialised) return majorFontCollection; if (this.getContents().getThemeElements()!=null && this.getContents().getThemeElements().getFontScheme()!=null) { majorFontCollection = this.getContents().getThemeElements().getFontScheme().getMajorFont(); } majorFontCollectionInitialised = true; return majorFontCollection; }