Class FontEmbeddingRestrictions

java.lang.Object
com.imyeyu.font.icon.model.FontEmbeddingRestrictions

public class FontEmbeddingRestrictions extends Object

字体嵌入和使用限制

fsType 来自 OpenType OS/2 表。多个限制位可以组合,例如预览打印嵌入加禁止子集化

Since:
2026-07-13 16:26
Author:
Codex
  • Field Details

  • Constructor Details

    • FontEmbeddingRestrictions

      public FontEmbeddingRestrictions()
      创建无限制嵌入信息
    • FontEmbeddingRestrictions

      public FontEmbeddingRestrictions(int fsType)
      创建限制信息
  • Method Details

    • of

      public static FontEmbeddingRestrictions of(int fsType)
      使用原始 fsType 创建限制信息
    • installable

      public boolean installable()
      判断是否允许安装式嵌入
    • has

      public boolean has(int flag)
      判断是否设置了指定限制位
    • getFsType

      public int getFsType()
    • setFsType

      public void setFsType(int fsType)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object