Package icyllis.modernui.graphics.text
Class FontFamily
java.lang.Object
icyllis.modernui.graphics.text.FontFamily
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FontFamily
static final FontFamily
static final FontFamily
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FontFamily[]
createFamilies
(File file, boolean register) static FontFamily[]
createFamilies
(InputStream stream, boolean register) static FontFamily
createFamily
(File file, boolean register) static FontFamily
createFamily
(InputStream stream, boolean register) boolean
getClosestMatch
(int style) getFamilyName
(Locale locale) static @UnmodifiableView Map
<String, FontFamily> static FontFamily
getSystemFontWithAlias
(String name) boolean
hasGlyph
(int ch) boolean
hasGlyph
(int ch, int vs) int
hashCode()
boolean
boolean
Returns true if the family is very likely to be an East Asian family.toString()
-
Field Details
-
SANS_SERIF
-
SERIF
-
MONOSPACED
-
-
Constructor Details
-
FontFamily
-
-
Method Details
-
getSystemFontMap
-
getSystemFontAliases
-
getSystemFontWithAlias
-
createFamily
@NonNull public static FontFamily createFamily(@NonNull File file, boolean register) throws FontFormatException, IOException - Throws:
FontFormatException
IOException
-
createFamily
@NonNull public static FontFamily createFamily(@NonNull InputStream stream, boolean register) throws FontFormatException, IOException - Throws:
FontFormatException
IOException
-
createFamilies
@NonNull public static FontFamily[] createFamilies(@NonNull File file, boolean register) throws FontFormatException, IOException - Throws:
FontFormatException
IOException
-
createFamilies
@NonNull public static FontFamily[] createFamilies(@NonNull InputStream stream, boolean register) throws FontFormatException, IOException - Throws:
FontFormatException
IOException
-
getClosestMatch
-
isEastAsianFamily
public boolean isEastAsianFamily()Returns true if the family is very likely to be an East Asian family. Even true, the family can still be used for other scripts. -
isColorEmojiFamily
public boolean isColorEmojiFamily() -
hasGlyph
public boolean hasGlyph(int ch) -
hasGlyph
public boolean hasGlyph(int ch, int vs) -
getFamilyName
-
getFamilyName
-
hashCode
public int hashCode() -
equals
-
toString
-