Package icyllis.modernui.graphics.text
Class FontFamily
java.lang.Object
icyllis.modernui.graphics.text.FontFamily
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FontFamilystatic final FontFamilystatic final FontFamily -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FontFamily[]createFamilies(File file, boolean register) static FontFamily[]createFamilies(InputStream stream, boolean register) static FontFamilycreateFamily(File file, boolean register) static FontFamilycreateFamily(InputStream stream, boolean register) booleangetClosestMatch(int style) getFamilyName(Locale locale) static @UnmodifiableView Map<String, FontFamily> static FontFamilygetSystemFontWithAlias(String name) booleanhasGlyph(int ch) booleanhasGlyph(int ch, int vs) inthashCode()booleanbooleanReturns 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:
FontFormatExceptionIOException
-
createFamily
@NonNull public static FontFamily createFamily(@NonNull InputStream stream, boolean register) throws FontFormatException, IOException - Throws:
FontFormatExceptionIOException
-
createFamilies
@NonNull public static FontFamily[] createFamilies(@NonNull File file, boolean register) throws FontFormatException, IOException - Throws:
FontFormatExceptionIOException
-
createFamilies
@NonNull public static FontFamily[] createFamilies(@NonNull InputStream stream, boolean register) throws FontFormatException, IOException - Throws:
FontFormatExceptionIOException
-
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
-