9 #ifndef RAMSES_FONTCASCADE_H
10 #define RAMSES_FONTCASCADE_H
#define RAMSES_API
Definition: APIExport.h:35
Interface for getting font instances using font instance ids.
Definition: IFontAccessor.h:27
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
std::vector< FontInstanceId > OrderedFontList
vector of FontInstanceId for use in FontCascade
Definition: FontCascade.h:22
std::vector< FontInstanceOffset > FontInstanceOffsets
Vector of FontInstanceOffset elements.
Definition: FontInstanceOffsets.h:34
struct to define a font cascade
Definition: FontCascade.h:32
OrderedFontList fontPriorityList
Ordered list of font instance ids to try for each character.
Definition: FontCascade.h:40
const IFontAccessor & fontAccessor
interface to use to resolve FontInstanceId to a FontInstance
Definition: FontCascade.h:34
char32_t fallbackChar
Fallback character when no match was found in fontPriorityList.
Definition: FontCascade.h:46
std::u32string charsToRemove
String of characters that will be removed from a processed string.
Definition: FontCascade.h:37
FontInstanceId fallbackFont
Fallback font used for fallbackChar when none in fontPriorityList matched.
Definition: FontCascade.h:43
static RAMSES_API std::u32string FilterAndFindFontInstancesForString(const FontCascade &fontCascade, const std::u32string &str, FontInstanceOffsets &fontOffsets)
Process a character string according to given FontCascade.