模块 linlang.api

接口 AsciiFont


public interface AsciiFont
ASCII 字体描述,包含高度、字距与每个字符的 ASCII 图形。
  • 嵌套类概要

    嵌套类
    修饰符和类型
    接口
    说明
    static final class 
    ASCII 字体构建器。
  • 方法概要

    修饰符和类型
    方法
    说明
     
    int
    gap()
     
    glyph(char ch)
    返回指定字符的图形。
    int
     
  • 方法详细资料

    • height

      int height()
      返回:
      字体高度,即每个字符的行数
    • gap

      int gap()
      返回:
      字符之间的空格数量
    • glyph

      List<String> glyph(char ch)
      返回指定字符的图形。
      参数:
      ch - 字符
      返回:
      按从上到下顺序排列的图形行;未定义时为空列表
    • builder

      static AsciiFont.Builder builder()
      返回:
      新的字体构造器