< prev index next >

modules/graphics/src/main/java/com/sun/javafx/tk/FontLoader.java

Print this page




  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.javafx.tk;
  27 
  28 import java.io.InputStream;
  29 import java.util.List;
  30 
  31 import javafx.scene.text.Font;
  32 import javafx.scene.text.FontPosture;
  33 import javafx.scene.text.FontWeight;
  34 
  35 public abstract class FontLoader {
  36     public abstract void loadFont(Font font);
  37     public abstract List<String> getFamilies();
  38     public abstract List<String> getFontNames();
  39     public abstract List<String> getFontNames(String family);
  40     public abstract Font font(String family, FontWeight weight,
  41                               FontPosture posture, float size);
  42     public abstract Font loadFont(InputStream in, double size);
  43     public abstract Font loadFont(String path, double size);
  44     public abstract FontMetrics getFontMetrics(Font font);
  45     public abstract float getCharWidth(char ch, Font font);
  46     public abstract float getSystemFontSize();
  47 }


  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package com.sun.javafx.tk;
  27 
  28 import java.io.InputStream;
  29 import java.util.List;
  30 
  31 import javafx.scene.text.Font;
  32 import javafx.scene.text.FontPosture;
  33 import javafx.scene.text.FontWeight;
  34 
  35 public abstract class FontLoader {
  36     public abstract void loadFont(Font font);
  37     public abstract List<String> getFamilies();
  38     public abstract List<String> getFontNames();
  39     public abstract List<String> getFontNames(String family);
  40     public abstract Font font(String family, FontWeight weight,
  41                               FontPosture posture, float size);
  42     public abstract Font[] loadFont(InputStream in, double size, boolean all);
  43     public abstract Font[] loadFont(String path, double size, boolean all);
  44     public abstract FontMetrics getFontMetrics(Font font);
  45     public abstract float getCharWidth(char ch, Font font);
  46     public abstract float getSystemFontSize();
  47 }
< prev index next >