Java Folder Size Get emSize(Font font, double em)

Here you can find the source of emSize(Font font, double em)

Description

em Size

License

Apache License

Declaration

public static Font emSize(Font font, double em) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.awt.Font;

public class Main {
    public static Font emSize(Font font, double em) {
        return new Font(font.getName(), font.getStyle(), (int) (font.getSize() * em));
    }//from ww w. j  av a 2s .c o m

    public static Font emSize(Font font, int style, double em) {
        return new Font(font.getName(), style, (int) (font.getSize() * em));
    }
}

Related

  1. folderSize(File directory)
  2. folderSize(File directory)
  3. folderSize(File directory)
  4. fontSize(Font f)