Interface CloudFontFamily
- 
- All Superinterfaces:
- IconProvider
 
 public interface CloudFontFamily extends IconProvider A family of related cloud fonts that come from a single collection and share a family name.- Since:
- 3.4
- Author:
- Chris Jennings 
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Axis[]getAxes()Returns the variable axes associated with fonts in this family.CategorySetgetCategories()Returns the set of categories that describe this family, such as whether it is a serif or sans-serif font, and whether or not it is intended for display or text.CloudFont[]getCloudFonts()Returns the fonts that are part of this family.CloudFontCollectiongetCollection()Returns the collection to which this family belongs.java.awt.Font[]getFonts()Returns an array of AWT fonts, one for each font in this family, downloading them as necessary.java.lang.StringgetLicenseType()Returns the type of font license for this family, if available.java.lang.StringgetName()Returns the family name.java.lang.String[]getSubsets()Returns the subsets for which this font provides coverage.java.lang.StringgetTypeDesigner()Returns the name of the designer of the typeface, if available.booleanhasItalics()Returns true if the family has at least one italic or oblique variant.booleanhasSubset(java.lang.String subset)Returns true if the font provides coverage for the specified subset.booleanhasWeights()Returns true if the family has at least one non-regular weight.default booleanisDownloaded()Returns true if all fonts in the family have been downloaded to the local cache.default booleanisRegistered()Returns true if the family has been registered.booleanisVariable()Returns true if the family has at least one variable axis.ResourceKit.FontRegistrationResult[]register()Registers this font family.- 
Methods inherited from interface ca.cgjennings.ui.IconProvidergetIcon
 
- 
 
- 
- 
- 
Method Detail- 
getCollectionCloudFontCollection getCollection() Returns the collection to which this family belongs.- Returns:
- the collection containing this family
 
 - 
getNamejava.lang.String getName() Returns the family name. Note that this is based on the file name, as the actual fonts might not be downloaded. Therefore this name may not exactly match the family name in the actual fonts.- Returns:
- the family name
 
 - 
getTypeDesignerjava.lang.String getTypeDesigner() Returns the name of the designer of the typeface, if available.- Returns:
- the typographer, or an empty string
 
 - 
getLicenseTypejava.lang.String getLicenseType() Returns the type of font license for this family, if available.- Returns:
- the license type, such as OFL, or an empty string
 
 - 
getCategoriesCategorySet getCategories() Returns the set of categories that describe this family, such as whether it is a serif or sans-serif font, and whether or not it is intended for display or text.- Returns:
- the set of applicable categories
 
 - 
getSubsetsjava.lang.String[] getSubsets() Returns the subsets for which this font provides coverage.- Returns:
- an array of subset names
 
 - 
hasSubsetboolean hasSubset(java.lang.String subset) Returns true if the font provides coverage for the specified subset.- Parameters:
- subset- the subset name
- Returns:
- true if the font provides coverage for the subset
 
 - 
getAxesAxis[] getAxes() Returns the variable axes associated with fonts in this family.- Returns:
- an array of font axes
 
 - 
hasWeightsboolean hasWeights() Returns true if the family has at least one non-regular weight.- Returns:
- true if the family has weights other than regular
- See Also:
- CloudFont.getStyle(),- CloudFont.getAxes()
 
 - 
hasItalicsboolean hasItalics() Returns true if the family has at least one italic or oblique variant.- Returns:
- true if the family has a slanted variant
- See Also:
- CloudFont.getStyle(),- CloudFont.getAxes()
 
 - 
isVariableboolean isVariable() Returns true if the family has at least one variable axis. Note that the Java font API may not support all variable axes.- Returns:
- true if the family has at least one variable axis
 
 - 
getCloudFontsCloudFont[] getCloudFonts() Returns the fonts that are part of this family.
 - 
getFontsjava.awt.Font[] getFonts() throws java.io.IOExceptionReturns an array of AWT fonts, one for each font in this family, downloading them as necessary.- Returns:
- an array of fonts, in the same order as returned by
 getCloudFonts()
- Throws:
- java.io.IOException- if an error occurs while downloading, loading, or decoding any font
 
 - 
registerResourceKit.FontRegistrationResult[] register() throws java.io.IOException Registers this font family. Registered font families can be located by their family name when creating a font.- Returns:
- an array of registration results, one for each font in the family
- Throws:
- java.io.IOException- if an error occurs while downloading, loading, or decoding any font
- See Also:
- ResourceKit#registerFont(java.awt.Font)
 
 - 
isDownloadeddefault boolean isDownloaded() Returns true if all fonts in the family have been downloaded to the local cache. Individual fonts can be checked usingCloudFont.isDownloaded().- Returns:
- true if all fonts are downloaded
 
 - 
isRegistereddefault boolean isRegistered() Returns true if the family has been registered.- Returns:
- true if all fonts are registered
 
 
- 
 
-