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

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

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

origin: plutext/docx4j

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() );
origin: org.docx4j/docx4j

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() );
origin: org.docx4j/docx4j

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;
}
 
origin: plutext/docx4j

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;
}
 
org.docx4j.dmlBaseStyles$FontSchemegetMajorFont

Javadoc

Gets the value of the majorFont property.

Popular methods of BaseStyles$FontScheme

  • <init>
  • getMinorFont
    Gets the value of the minorFont property.

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • CodeWhisperer alternatives
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