Examples of TrueTypeFont


Examples of org.newdawn.slick.TrueTypeFont

    this.engine = engine;
    try {
        InputStream inputStream = ResourceLoader.getResourceAsStream("Engine/Ubuntu-L.ttf");
        Font awtFont = Font.createFont(Font.TRUETYPE_FONT, inputStream);
        awtFont = awtFont.deriveFont(12f); // set font size
        font = new TrueTypeFont(awtFont, true);
      } catch (Exception e) {
        e.printStackTrace();
      }
   
  }
View Full Code Here

Examples of org.open2jam.render.lwjgl.TrueTypeFont

      } catch (IOException ex) {
    java.util.logging.Logger.getLogger(Render.class.getName()).log(Level.SEVERE, "{0}", ex);
      }
  }
 
        trueTypeFont = new TrueTypeFont(new Font("Tahoma", Font.BOLD, 14), false);
       
        //clean up
        System.gc();

        // wait a bit.. 5 seconds at min
View Full Code Here

Examples of org.pentaho.reporting.libraries.fonts.truetype.TrueTypeFont

        resourceManager.registerDefaults();

        final ResourceKey fontSource = resourceManager.createKey(new File(fr.getFontSource()));
        final FontDataInputSource fs =
            new ResourceFontDataInputSource(resourceManager, fontSource);
        final TrueTypeFont ttf = new TrueTypeFont(fs);
        final NameTable nt = (NameTable) ttf.getTable(NameTable.TABLE_ID);
        //PostscriptInformationTable pst = ttf.getTable(PostscriptInformationTable.TABLE_ID);
        final FontHeaderTable fht = (FontHeaderTable) ttf.getTable(FontHeaderTable.TABLE_ID);
        /*
        TrueTypeFontMetricsFactory tfmf = new TrueTypeFontMetricsFactory();
        FontMetrics fm =
                tfmf.createMetrics(fr, new DefaultFontContext(14, false, false));
        */
 
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.