9 #ifndef RAMSES_FONTREGISTRY_H
10 #define RAMSES_FONTREGISTRY_H
#define RAMSES_API
Definition: APIExport.h:35
Font registry can be used to load Freetype2 fonts and create font instances (optionally with Harfbuzz...
Definition: FontRegistry.h:22
virtual ~FontRegistry() override
Destructor for FontRegistry. Destroys all created fonts.
bool deleteFont(FontId fontId)
Delete an existing font.
FontRegistry()
Constructor for FontRegistry.
bool deleteFontInstance(FontInstanceId fontInstance)
Delete an existing font instance.
virtual IFontInstance * getFontInstance(FontInstanceId fontInstanceId) const override
Get font instance object corresponding to given id.
FontId createFreetype2FontFromFileDescriptor(int fd, size_t offset, size_t length)
Load Freetype2 font from an open file descriptor.
FontInstanceId createFreetype2FontInstance(FontId fontId, uint32_t size, bool forceAutohinting=false)
Create Freetype2 font instance.
FontInstanceId createFreetype2FontInstanceWithHarfBuzz(FontId fontId, uint32_t size, bool forceAutohinting=false)
Create Freetype2 font instance with Harfbuzz shaping.
FontRegistry & operator=(const FontRegistry &other)=delete
Deleted copy assignment.
class FontRegistryImpl & impl
Definition: FontRegistry.h:107
FontRegistry(const FontRegistry &other)=delete
Deleted copy constructor.
FontId createFreetype2Font(const char *fontPath)
Load Freetype2 font from file.
Interface for getting font instances using font instance ids.
Definition: IFontAccessor.h:27
Interface for font instance that can be used to query glyph metadata and bitmaps.
Definition: IFontInstance.h:23
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15