Package com.scriptographer.ai

Examples of com.scriptographer.ai.FontFamily


    // Try to preserve selected weight across fonts:
    ListEntry selected = weightList.getSelectedEntry();
    String current = selected != null ? selected.getText() : null;
    selected = null;
    weightList.removeAll();
    FontFamily family = getFontFamily();
    if (family != null) {
      for (FontWeight weight : family) {
        ListEntry entry = new ListEntry(weightList);
        String name = weight.getName();
        entry.setText(name);
View Full Code Here


      updateWeightList();
    }
  }

  public FontWeight getFontWeight() {
    FontFamily family = getFontFamily();
    if (family != null) {
      ListEntry entry = weightList.getSelectedEntry();
      if (entry != null)
        return family.get(entry.getText());
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of com.scriptographer.ai.FontFamily

Copyright © 2018 www.massapicom. 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.