Class BMFontProvider
java.lang.Object
com.ardor3d.extension.ui.text.font.BMFontProvider
- All Implemented Interfaces:
FontProvider
Provides BMFonts for use in UIFont.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getClosestMatchingFont
(Map<String, Object> currentStyles, AtomicReference<Double> scale) Get the closest font this provider has to the given criteria.
-
Field Details
-
_scoreMap
-
_fonts
-
-
Constructor Details
-
BMFontProvider
public BMFontProvider()
-
-
Method Details
-
addFont
-
getClosestMatchingFont
public UIFont getClosestMatchingFont(Map<String, Object> currentStyles, AtomicReference<Double> scale) Description copied from interface:FontProvider
Get the closest font this provider has to the given criteria.- Specified by:
getClosestMatchingFont
in interfaceFontProvider
- Parameters:
currentStyles
- a map of style information.scale
- the scale needed to match out requested size.- Returns:
- the found font, or null if none is found.
-