Examples of Font


Examples of java.awt.Font

      mTitle.setEnabled(enabled);
    }
  }

  public Font getChosenFont() {
    Font result;
    int style;
    int inx = mStyleCB.getSelectedIndex();
    if (inx == 0) {
      style = Font.PLAIN;
    } else if (inx == 1) {
      style = Font.BOLD;
    } else {
      style = Font.ITALIC;
    }
    result = new Font((String) mFontCB.getSelectedItem(), style, ((Integer) mSizeSpinner.getValue()).intValue());

    return result;
  }
View Full Code Here

Examples of java.awt.Font

   * Reloads the font settings and sets a dynamic font size
   * @param newOffset increase or decrease compared to standard font size
   * @since 2.6
   */
  public static boolean updateFonts(int newOffset) {
    Font oldTitleFont = mTitleFont;
    Font oldTimeFont = mTimeFont;
    Font oldNormalFont = mNormalFont;
    boolean useDefaults = Settings.propUseDefaultFonts.getBoolean();
    if (useDefaults) {
      mTitleFont = Settings.propProgramTitleFont.getDefault();
      mTimeFont = Settings.propProgramTimeFont.getDefault();
      mNormalFont = Settings.propProgramInfoFont.getDefault();
View Full Code Here

Examples of javafx.scene.text.Font

    }


    @Override protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) {
        final String labelText = label.getText();
        final Font font = label.getFont();
        double textWidth = Utils.computeTextWidth(font, labelText, 0);

        return leftInset + textWidth + thumbArea.prefWidth(-1) + rightInset;
    }
View Full Code Here

Examples of javax.microedition.lcdui.Font

    if (RenderedWord.fontSize == fontSize) {
    return;
  }
    RenderedWord.fontSize = fontSize;
    for (int i = 0; i < 7; i++) {
    Font f = Font.getFont(Font.FACE_PROPORTIONAL, i, fontSize);
      RenderedWord.font[i] = f;
      RenderedWord.fontWidth[i] = f.stringWidth(" ");
    }
    RenderedWord.heightFont = Font.getFont(Font.FACE_PROPORTIONAL,
      Font.STYLE_PLAIN, fontSize).getHeight() +
      AbstractView.getLineSpace();
  }
View Full Code Here

Examples of jxl.format.Font

        bw.write("    <name><![CDATA["+s.getName()+"]]></name>");
        bw.newLine();
     
        Cell[] row = null;
        CellFormat format = null;
        Font font = null;
     
        for (int i = 0 ; i < s.getRows() ; i++)
        {
          bw.write("    <row number=\"" + i + "\">");
          bw.newLine();
          row = s.getRow(i);

          for (int j = 0 ; j < row.length; j++)
          {
            // Remember that empty cells can contain format information
            if ((row[j].getType() != CellType.EMPTY) ||
                (row[j].getCellFormat() != null))
            {
              format = row[j].getCellFormat();
              bw.write("      <col number=\"" + j + "\">");
              bw.newLine();
              bw.write("        <data>");
              bw.write("<![CDATA["+row[j].getContents()+"]]>");
              bw.write("</data>");
              bw.newLine();    

              if (row[j].getCellFormat() != null)
              {
                bw.write("        <format wrap=\"" + format.getWrap() + "\"");
                bw.newLine();
                bw.write("                align=\"" +
                         format.getAlignment().getDescription() + "\"");
                bw.newLine();
                bw.write("                valign=\"" +
                         format.getVerticalAlignment().getDescription() + "\"");
                bw.newLine();
                bw.write("                orientation=\"" +
                         format.getOrientation().getDescription() + "\"");
                bw.write(">");
                bw.newLine();

                // The font information
                font = format.getFont();
                bw.write("          <font name=\"" + font.getName() + "\"");
                bw.newLine();
                bw.write("                point_size=\"" +
                         font.getPointSize() + "\"");
                bw.newLine();
                bw.write("                bold_weight=\"" +
                         font.getBoldWeight() + "\"");
                bw.newLine();
                bw.write("                italic=\"" + font.isItalic() + "\"");
                bw.newLine();
                bw.write("                underline=\"" +
                         font.getUnderlineStyle().getDescription() + "\"");
                bw.newLine();
                bw.write("                colour=\"" +
                         font.getColour().getDescription() + "\"");
                bw.newLine();
                bw.write("                script=\"" +
                         font.getScriptStyle().getDescription() + "\"");
                bw.write(" />");
                bw.newLine();


                // The cell background information
View Full Code Here

Examples of net.rim.device.api.ui.Font

   
    int textWidth = Math.max(0, width - iconWidth - PADDING * 3);
    int textX = PADDING;
    int textY = y + PADDING;
    int flags = Graphics.ELLIPSIS;
    Font savedFont = graphics.getFont();
    graphics.setFont(mUserFont);
    graphics.drawText(item.mUser, textX, textY, flags, textWidth);
    textY += mUserFont.getHeight();
    graphics.setFont(mPinFont);
    graphics.drawText(item.mPin, textX, textY, flags, textWidth);
View Full Code Here

Examples of net.xoetrope.builder.w3c.html.tags.Font

//      htmlTags.put( HTML.Tag.DIR, new Integer( XHtmlBuilder.DIR )); // Deprecated
      htmlTags.put( HTML.Tag.DIV, new Div( HTML.Tag.DIV ));
      htmlTags.put( HTML.Tag.DL, new XDataTagHandler( HTML.Tag.DL ));
      htmlTags.put( HTML.Tag.DT, new XDataTagHandler( HTML.Tag.DT ));
      htmlTags.put( HTML.Tag.EM, new XFormatTagHandler( HTML.Tag.EM ));
      htmlTags.put( HTML.Tag.FONT, new Font());
      htmlTags.put( HTML.Tag.FORM, new Form());
//      htmlTags.put( HTML.Tag.FRAME, new Integer( XHtmlBuilder.FRAME ));
//      htmlTags.put( HTML.Tag.FRAMESET, new Integer( XHtmlBuilder.FRAMESET ));
      htmlTags.put( HTML.Tag.H1, new XHeadingTag( HTML.Tag.H1 ));
      htmlTags.put( HTML.Tag.H2, new XHeadingTag( HTML.Tag.H2 ));
View Full Code Here

Examples of nextapp.echo2.app.Font

   
    /**
     * Test equality.
     */
    public void testFontEquals() {
        Font font1 = new Font(Font.SANS_SERIF, Font.PLAIN, new Extent(12, Extent.PT));
        Font font2 = new Font(Font.SANS_SERIF, Font.PLAIN, new Extent(12, Extent.PT));
        Font font3 = new Font(Font.SANS_SERIF, Font.BOLD, new Extent(12, Extent.PT));
        Font font4 = new Font(Font.SANS_SERIF, Font.BOLD | Font.ITALIC, new Extent(12, Extent.PT));
        Font font5 = new Font(Font.SANS_SERIF, Font.PLAIN, new Extent(13, Extent.PT));
        Font font6 = new Font(Font.SANS_SERIF, Font.PLAIN, new Extent(12, Extent.PX));

        assertEquals(true, font1.equals(font1));
        assertEquals(true, font1.equals(font2));
        assertEquals(false, font1.equals(font3));
        assertEquals(false, font1.equals(font4));
View Full Code Here

Examples of org.apache.batik.svggen.font.Font

        if (path != null)
        {
            try
            {
              // Use Batik to load the Font
              Font font = Font.create(path);

                if (font != null)
                {
                  FSType type = FSType.getFSType(font);
                  if (! type.usableByFlex)
                  {
                    throw new UnusableFontLicense(location + "", type.description);
                  }
                  String copyright = font.getNameTable().getRecord(Table.nameCopyrightNotice);
                  String trademark = font.getNameTable().getRecord(Table.nameTrademark);

                    // BatikFontManager will try to work out the real
                    // style from the sub family name and update the
                    // style property...
                    BatikFontFace fontFace = new BatikFontFace(font, 0,
View Full Code Here

Examples of org.apache.ecs.html.Font

    public ConcreteElement doBuild(RunData data)
            throws Exception
    {
        data.getPage().getBody()
                .addElement(new B().addElement(
                        new Font().setColor(HtmlColor.green).setSize(2)
                .addElement(txt))
                .addElement(new HR().setSize(1).setNoShade(true)));

        return null;
    }
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.