Examples of MonospaceFontRegistry


Examples of org.pentaho.reporting.libraries.fonts.monospace.MonospaceFontRegistry

      new OutputProcessorFeature.NumericOutputProcessorFeature("txt.character-height-pt");

  public TextOutputProcessorMetaData(final Configuration configuration,
                                     final float lpi, final float cpi)
  {
    super(configuration, new DefaultFontStorage(new MonospaceFontRegistry(lpi, cpi)));
    setNumericFeatureValue(TextOutputProcessorMetaData.CHAR_WIDTH, 72.0 / cpi);
    setNumericFeatureValue(TextOutputProcessorMetaData.CHAR_HEIGHT, 72.0 / lpi);
    addFeature(OutputProcessorFeature.PAGE_SECTIONS);
    addFeature(OutputProcessorFeature.PAGEBREAKS);
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.monospace.MonospaceFontRegistry

  public void testElementSizes() throws Exception
  {
    final MasterReport report = createStandardReport(LONG_TEXT_LABEL);
    final LogicalPageBox pageBox = DebugReportRunner.layoutSingleBand(report, report.getPageHeader(),
        new DefaultFontStorage(new MonospaceFontRegistry(10, 6)), false);

    final RenderBox labelElement = (RenderBox) MatchFactory.findElementByName(pageBox, "LabelElement");
    assertEquals(StrictGeomUtility.toInternalValue(26), labelElement.getHeight());
    assertEquals(StrictGeomUtility.toInternalValue(4), labelElement.getY());
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.monospace.MonospaceFontRegistry

    final int cpi = 6;

    final MasterReport report = createStandardReport(LONG_TEXT_LABEL);
    report.getReportConfiguration().setConfigProperty(ClassicEngineCoreModule.COMPLEX_TEXT_CONFIG_OVERRIDE_KEY, "false");
    final LogicalPageBox pageBox = DebugReportRunner.layoutSingleBand(report, report.getPageHeader(),
        new DefaultFontStorage(new MonospaceFontRegistry(lpi, cpi)), false);


    final ByteArrayOutputStream out = new ByteArrayOutputStream();
    final TextFilePrinterDriver pc = new TextFilePrinterDriver(out, cpi, lpi);
    final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor(pc, report.getConfiguration());
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.monospace.MonospaceFontRegistry

  public static final OutputProcessorFeature.NumericOutputProcessorFeature CHAR_HEIGHT =
      new OutputProcessorFeature.NumericOutputProcessorFeature("txt.character-height-pt");

  public TextOutputProcessorMetaData(final float lpi, final float cpi)
  {
    super(new DefaultFontStorage(new MonospaceFontRegistry(lpi, cpi)));
    setNumericFeatureValue(TextOutputProcessorMetaData.CHAR_WIDTH, 72.0 / cpi);
    setNumericFeatureValue(TextOutputProcessorMetaData.CHAR_HEIGHT, 72.0 / lpi);
    // the plain text target does not support arabic text at all.
    removeFeature(OutputProcessorFeature.COMPLEX_TEXT);
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.monospace.MonospaceFontRegistry

      throws ReportProcessingException, ContentProcessingException
  {
    final FontStorage fontRegistry;
    if (monospaced)
    {
      fontRegistry = new DefaultFontStorage(new MonospaceFontRegistry(9, 18));
    }
    else
    {
      fontRegistry = DebugOutputProcessorMetaData.getLocalFontStorage();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.