Examples of Font


Examples of ae.java.awt.Font

  public Rectangle getPixelBounds(FontRenderContext frc, float x, float y) {
      return getGV().getPixelBounds(frc, x, y); // no cache
  }

  public AffineTransform getBaselineTransform() {
      Font font = source.getFont();
      if (font.hasLayoutAttributes()) {
          return AttributeValues.getBaselineTransform(font.getAttributes());
      }
      return null;
  }
View Full Code Here

Examples of ar.com.fdvs.dj.domain.constants.Font

    String rigType = Labels.getLabel("listheader_SecRightList_rigType.label");

    // Styles: Title
    Style titleStyle = new Style();
    titleStyle.setHorizontalAlign(HorizontalAlign.CENTER);
    Font titleFont = Font.VERDANA_BIG_BOLD;
    titleFont.setUnderline(true);
    titleStyle.setFont(titleFont);
    // titleStyle.setBorderBottom(Border.PEN_1_POINT);

    // Styles: Subtitle
    Style subtitleStyle = new Style();
View Full Code Here

Examples of ast.ui.Font

      textures.put("Particle", ResLoader.loadTexture("/res/img/SmokeParticle.png"));     
     
      textures.put("Font",  ResLoader.loadTexture("res/img/font.png"));     
     
      File fontMap = new File("res/img/fontMap");
      font = new Font(getTexture("Font"),fontMap);
     
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
View Full Code Here

Examples of com.aspose.cells.Font

    //Setting the comment note
    comment.setNote("Hello Aspose!");
   
    //Setting the font size of a comment to 14
    Font font = comment.getFont();
    font.setSize(14);
    //Setting the font of a comment to bold
    font.setBold(true);

    //Setting the height of the font to 10
    comment.setHeightCM(10);

    //Setting the width of the font to 2
View Full Code Here

Examples of com.aspose.words.Font

    // Output text
    builder.writeln("I'm a very nice formatted paragraph. I'm intended to demonstrate how the left and right indents affect word wrapping.");
   
    // Set font formatting properties
    Font font = builder.getFont();
    font.setBold(true);
    font.setColor(Color.BLUE);
    font.setItalic(true);
    font.setName("Arial");
    font.setSize(24);
    font.setSpacing(5);
    font.setUnderline(Underline.DOUBLE);

    // Output formatted text
    builder.writeln("I'm a very nice formatted string.");

    doc.save("data/Aspose_FormattedText.doc");
View Full Code Here

Examples of com.day.image.Font

        Color[] colors = new Color[]{
                Color.WHITE,
                Color.WHITE};
        Font[] fonts = new Font[]{
                new Font("Myriad Pro", 15 * scale, Font.BOLD),
                new Font("MyriadPro-Light", 18 * scale)};

        // load background image from docroot
        Component c = WCMUtils.getComponent(ctx.resource);
        Layer bg = ImageHelper.createLayer(c.getLocalResource("background.png"));

View Full Code Here

Examples of com.extentech.formats.XLS.Font

      StringBuffer svg= new StringBuffer();
   
      float[] coords= this.getCoords();
    coords[0]= (int)Math.ceil(Pos.convertFromSPRC(coords[0], chartMetrics.get("canvasw").floatValue(), 0))-3
    coords[1]= (int)Math.ceil(Pos.convertFromSPRC(coords[1], 0, chartMetrics.get("canvash").floatValue()));
    Font fx = this.getFont(wkbook);

    svg.append("<g>\r\n")
    float fh=10;
    if (fx!=null) fh= (float)fx.getFontHeightInPoints();
    float x= (float) (chartMetrics.get("x") + chartMetrics.get("w")/2);
    float y= (float) (chartMetrics.get("TITLEOFFSET").floatValue() + fh)/2;
    Frame f= (Frame) Chart.findRec(this.chartArr, Frame.class);
    if (f!=null) {
      coords[0]= coords[0]+x;
      coords[1]= y+coords[1]+fh;
      coords[3]= fh*2// just a test really
      svg.append(f.getSVG(coords));
    } else {
      coords[0]= x;
      coords[1]= y+fh/2;
    }
     
    svg.append("<text " + GenericChartObject.getScript("charttitle") + " x='" + (coords[0]) + "' y='" + (coords[1]) + "' style='text-anchor: middle;' alignment-baseline='text-after-edge' ");
    if(fx != null)
      svg.append(" " + fx.getSVG() + ">");
    else
      svg.append(" font-family='Arial' font-size='14pt' font-weight='bold'>");         
    svg.append(this.toString() + "</text>\r\n");
    svg.append("</g>\r\n");
    return svg;
View Full Code Here

Examples of com.google.code.appengine.awt.Font

     */
   
    public Font pdfToAwt(BaseFont font, int size) {
        String names[][] = font.getFullFontName();
        if (names.length == 1)
            return new Font(names[0][3], 0, size);
        String name10 = null;
        String name3x = null;
        for (int k = 0; k < names.length; ++k) {
            String name[] = names[k];
            if (name[0].equals("1") && name[1].equals("0"))
                name10 = name[3];
            else if (name[2].equals("1033")) {
                name3x = name[3];
                break;
            }
        }
        String finalName = name3x;
        if (finalName == null)
            finalName = name10;
        if (finalName == null)
            finalName = names[0][3];
        return new Font(finalName, 0, size);
    }
View Full Code Here

Examples of com.google.typography.font.sfntly.Font

      System.out
          .println("Error while creating WOFF File. TTF file could not be read: "
              + getTTFfilename());
      e.printStackTrace();
    }
    Font font = fontArray[0];

    try {
      FileOutputStream fos = new FileOutputStream(outputFile);
      WoffWriter w = new WoffWriter();
      WritableFontData woffData = w.convert(font);
View Full Code Here

Examples of com.itextpdf.text.Font

    Document document = null;

    try {
      BaseFont bf = BaseFont.createFont(BaseFont.TIMES_ROMAN, BaseFont.CP1250,
          BaseFont.EMBEDDED);
      Font f = new Font(bf, 12, Font.NORMAL);

      document = new Document(PageSize.A4, 10, 10, 50, 50);
      PdfWriter instance = PdfWriter.getInstance(document, os);
      document.open();
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.