congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BaseStyles$FontScheme.getMinorFont
Code IndexAdd Tabnine to your IDE (free)

How to use
getMinorFont
method
in
org.docx4j.dml.BaseStyles$FontScheme

Best Java code snippets using org.docx4j.dml.BaseStyles$FontScheme.getMinorFont (Showing top 6 results out of 315)

origin: plutext/docx4j

  rFonts.setAscii( fontScheme.getMajorFont().getLatin().getTypeface() );
} else if (lvlPPr.getDefRPr().getLatin().getTypeface().startsWith("+mn") ) {					
  rFonts.setAscii( fontScheme.getMinorFont().getLatin().getTypeface() );
origin: org.docx4j/docx4j

  rFonts.setAscii( fontScheme.getMajorFont().getLatin().getTypeface() );
} else if (lvlPPr.getDefRPr().getLatin().getTypeface().startsWith("+mn") ) {					
  rFonts.setAscii( fontScheme.getMinorFont().getLatin().getTypeface() );
origin: org.docx4j/docx4j

  protected static DocDefaults generateDocDefaults(FontScheme fontScheme) {
    
    ObjectFactory factory = Context.getWmlObjectFactory();
    DocDefaults docDefaults = factory.createDocDefaults();

    RPrDefault rPrDefault = factory.createDocDefaultsRPrDefault();
    
    docDefaults.setRPrDefault(rPrDefault);
    
//        <w:rPr>
    RPr rPr = factory.createRPr();
    rPrDefault.setRPr(rPr);

//        <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
    RFonts rFonts = factory.createRFonts();
    rFonts.setAscii( fontScheme.getMinorFont().getLatin().getTypeface() );
    rPr.setRFonts(rFonts);
  
    return docDefaults;
    
  }    
   
origin: org.docx4j/docx4j

private FontCollection getMinorFontCollection() throws Docx4JException {
  
  if (minorFontCollectionInitialised) return minorFontCollection;
  
  if (this.getContents().getThemeElements()!=null
      && this.getContents().getThemeElements().getFontScheme()!=null) {
    
    minorFontCollection = this.getContents().getThemeElements().getFontScheme().getMinorFont();
  }
  minorFontCollectionInitialised = true;
  return minorFontCollection;
}
origin: plutext/docx4j

  protected static DocDefaults generateDocDefaults(FontScheme fontScheme) {
    
    ObjectFactory factory = Context.getWmlObjectFactory();
    DocDefaults docDefaults = factory.createDocDefaults();

    RPrDefault rPrDefault = factory.createDocDefaultsRPrDefault();
    
    docDefaults.setRPrDefault(rPrDefault);
    
//        <w:rPr>
    RPr rPr = factory.createRPr();
    rPrDefault.setRPr(rPr);

//        <w:rFonts w:asciiTheme="majorHAnsi" w:eastAsiaTheme="majorEastAsia" w:hAnsiTheme="majorHAnsi" w:cstheme="majorBidi" />
    RFonts rFonts = factory.createRFonts();
    rFonts.setAscii( fontScheme.getMinorFont().getLatin().getTypeface() );
    rPr.setRFonts(rFonts);
  
    return docDefaults;
    
  }    
   
origin: plutext/docx4j

private FontCollection getMinorFontCollection() throws Docx4JException {
  
  if (minorFontCollectionInitialised) return minorFontCollection;
  
  if (this.getContents().getThemeElements()!=null
      && this.getContents().getThemeElements().getFontScheme()!=null) {
    
    minorFontCollection = this.getContents().getThemeElements().getFontScheme().getMinorFont();
  }
  minorFontCollectionInitialised = true;
  return minorFontCollection;
}
org.docx4j.dmlBaseStyles$FontSchemegetMinorFont

Javadoc

Gets the value of the minorFont property.

Popular methods of BaseStyles$FontScheme

  • <init>
  • getMajorFont
    Gets the value of the majorFont property.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JButton (javax.swing)
  • JLabel (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now