|
@@ -47,6 +47,16 @@ public:
|
|
|
/// @return True if the face was loaded successfully, false otherwise.
|
|
/// @return True if the face was loaded successfully, false otherwise.
|
|
|
virtual bool LoadFontFace(const String& file_name, bool fallback_face = false);
|
|
virtual bool LoadFontFace(const String& file_name, bool fallback_face = false);
|
|
|
|
|
|
|
|
|
|
+ /// Called by the RmlUi when it wants to load a font face from memory, registered using the provided family, style, and weight.
|
|
|
|
|
+ /// @param[in] data A pointer to the data.
|
|
|
|
|
+ /// @param[in] data_size Size of the data in bytes.
|
|
|
|
|
+ /// @param[in] family The family to register the font as.
|
|
|
|
|
+ /// @param[in] style The style to register the font as.
|
|
|
|
|
+ /// @param[in] weight The weight to register the font as.
|
|
|
|
|
+ /// @return True if the face was loaded successfully, false otherwise.
|
|
|
|
|
+ /// Note: The debugger plugin will load its embedded font faces through this method using the family name 'rmlui-debugger-font'.
|
|
|
|
|
+ virtual bool LoadFontFace(const byte* data, int data_size, const String& family, Style::FontStyle style, Style::FontWeight weight, bool fallback_face = false);
|
|
|
|
|
+
|
|
|
/// Called by the RmlUi when a font configuration is resolved for an element. Should return a handle that
|
|
/// Called by the RmlUi when a font configuration is resolved for an element. Should return a handle that
|
|
|
/// can later be used to resolve properties of the face, and generate strings which can later be rendered.
|
|
/// can later be used to resolve properties of the face, and generate strings which can later be rendered.
|
|
|
/// @param[in] family The family of the desired font handle.
|
|
/// @param[in] family The family of the desired font handle.
|