javajs.api.FontManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmol Show documentation
Show all versions of jmol Show documentation
Jmol: an open-source Java viewer for chemical structures in 3D
package javajs.api;
import javajs.awt.Font;
/**
* A generic interface for font queries.
* In JSmol it is handled by org.jmol.api.ApiPlatform
*/
public interface FontManager {
int fontStringWidth(Font font, String text);
int getFontAscent(Object fontMetrics);
int getFontDescent(Object fontMetrics);
Object getFontMetrics(Font font, Object graphics);
Object newFont(String fontFace, boolean isBold, boolean isItalic, float fontSize);
}