Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JRReportFont


      attrs.put(JRTextAttribute.PDF_ENCODING, style.getPdfEncoding());
      attrs.put(JRTextAttribute.IS_PDF_EMBEDDED, style.isPdfEmbedded());
    }
    else
    {
      JRReportFont font = jasperPrint.getDefaultFont();
      if (font != null)
      {
        attrs = new HashMap();
        attrs.put(JRTextAttribute.PDF_FONT_NAME, font.getPdfFontName());
        attrs.put(JRTextAttribute.PDF_ENCODING, font.getPdfEncoding());
        attrs.put(JRTextAttribute.IS_PDF_EMBEDDED, font.isPdfEmbedded() ? Boolean.TRUE : Boolean.FALSE);
      }
      else
      {
        attrs = null;
      }
View Full Code Here


    JRReportFont[] fonts = jasperDesign.getFonts();
    if (fonts != null && fonts.length > 0)
    {
      for(int index = 0; index < fonts.length; index++)
      {
        JRReportFont font = fonts[index];

        if (font.getName() == null || font.getName().trim().length() == 0)
        {
          addBrokenRule("Report font name missing.", font);
        }
      }
    }
View Full Code Here

  /**
   *
   */
  private void verifyFont(JRFont font)
  {
    JRReportFont reportFont = font.getReportFont();

    if (reportFont != null && reportFont.getName() != null)
    {
      Map fontsMap = jasperDesign.getFontsMap();

      if (!fontsMap.containsKey(reportFont.getName()))
      {
        addBrokenRule("Report font not found : " + reportFont.getName(), font);
      }
    }
  }
View Full Code Here

  /**
   *
   */
  private static JRFont getBaseFont(JRFont font)
  {
    JRReportFont reportFont = font.getReportFont();
    if (reportFont != null)
    {
      return reportFont;
    }
    JRDefaultStyleProvider defaultStyleProvider = font.getDefaultStyleProvider();
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JRReportFont

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.