Examples of deriveFont()


Examples of java.awt.Font.deriveFont()

      ttfBase = Font.createFont(Font.TRUETYPE_FONT, in);
    } catch (final FontFormatException e1) {
      e1.printStackTrace();
    }

    fontAwesome = ttfBase.deriveFont(Font.PLAIN, 24);
    setFont(fontAwesome);

    final JButton previous = new JButton("");
    ((WebButtonUI) previous.getUI()).setUndecorated(true);
    previous.setFont(fontAwesome);
View Full Code Here

Examples of java.awt.Font.deriveFont()

    try {
      size = Float.parseFloat(getString(fsize, "text"));
    } catch (Exception e) {
      e.printStackTrace();
    }
    f = f.deriveFont(size);
    Object[] items = getItems(preview);
    for (int i = 0; i < items.length; i++) {
      setPreviewFont(f, items[i]);
    }
  }
View Full Code Here

Examples of java.awt.Font.deriveFont()

    try {
      size = Float.parseFloat(getString(fsize, "text"));
    } catch (Exception e) {
      e.printStackTrace();
    }
    f = f.deriveFont(size);
    remove(selfont);
    setFont(f);
    courier = new Font("Courier", getFont().getStyle(), getFont().getSize());
    repaint();
  }
View Full Code Here

Examples of java.awt.Font.deriveFont()

  public JLabel create(float size, String text) {
    JLabel label = new JLabel();
    label.setUI(labelUI);
    if (size > 0f) {
      Font font = label.getFont();
      label.setFont(font.deriveFont(size));
    }
    label.setText(text);
    return label;
  }
View Full Code Here

Examples of java.awt.Font.deriveFont()

        fonts = new HashMap<String, Font>(fontIndexData.size());
        for (FontIndexData data : fontIndexData) {
            FileInputStream inStream = new FileInputStream(BDJUtil.discRootToFilesystem("/BDMV/AUXDATA/" + data.getFileName()));
           
            Font font = Font.createFont(Font.TRUETYPE_FONT, inStream);
            font = font.deriveFont(data.getStyle(), data.getMaxSize());
           
            fonts.put(data.getName(), font);
        }
    }
View Full Code Here

Examples of java.awt.Font.deriveFont()

        Font font = fonts.get(name);
       
        if (font == null)
            throw new FontNotAvailableException();
       
        return font.deriveFont(style, size);
    }
   
    private FontIndex fontIndex = new FontIndex();
    private Font urlFont = null;
    private Map<String, Font> fonts = null;
View Full Code Here

Examples of java.awt.Font.deriveFont()

        DecimalFormat decimalFormat = new DecimalFormat();
        decimalFormat.setDecimalSeparatorAlwaysShown(false);
        decimalFormat.setParseIntegerOnly(true);
        if (orderLines != null && orderLines.size() != 0) {
            Font font = labelHeading.getFont();
            font = font.deriveFont(Font.BOLD);
            labelHeading.setFont(font);
            orderLineAttributes = getAttributes(orderLines, "");
           
           
View Full Code Here

Examples of java.awt.Font.deriveFont()

            // the panel
            assetLabel = new JLabel("");
            assetLabel.setAlignmentX(0.0f);
            assetLabel.setAlignmentY(0.0f);
            Font font = assetLabel.getFont();
            assetLabel.setFont(font.deriveFont(Font.PLAIN, 11));
//            assetLabel.setPreferredSize(getSize());
            add(assetLabel);

            // Create the progress bar and add it to the panel. Make sure it
            // is always of a maximum height
View Full Code Here

Examples of javax.swing.plaf.FontUIResource.deriveFont()

            Object value = UIManager.get(key);
            if (value instanceof FontUIResource)
            {
        FontUIResource fr = (javax.swing.plaf.FontUIResource)value;
        if (!key.toString().equals("InternalFrame.titleFont") && fr.isBold())
          UIManager.put(key, new FontUIResource(fr.deriveFont(java.awt.Font.PLAIN)));
            }
        }
        try
        {
            UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
View Full Code Here

Examples of org.apache.batik.gvt.font.GVTFontFamily.deriveFont()

                firstUnsetSet = false;
                aci.setIndex(currentIndex);

                GVTFontFamily ff;
                ff = ((GVTFontFamily)resolvedFontFamilies.get(i));
                GVTFont font = ff.deriveFont(fontSize, aci);
                if (defaultFont == null)
                    defaultFont = font;

                while (currentIndex < end) {
                    int displayUpToIndex = font.canDisplayUpTo
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.