|
|
@@ -53,7 +53,6 @@ public:
|
|
|
/// @return A valid handle if a matching (or closely matching) font face was found, nullptr otherwise.
|
|
|
FontFaceHandleDefault* GetFaceHandle(Style::FontStyle style, Style::FontWeight weight, int size);
|
|
|
|
|
|
-
|
|
|
/// Adds a new face to the family.
|
|
|
/// @param[in] ft_face The previously loaded FreeType face.
|
|
|
/// @param[in] style The style of the new face.
|
|
|
@@ -61,6 +60,9 @@ public:
|
|
|
/// @param[in] face_memory Optionally pass ownership of the face's memory to the face itself, automatically releasing it on destruction.
|
|
|
/// @return True if the face was loaded successfully, false otherwise.
|
|
|
FontFace* AddFace(FontFaceHandleFreetype ft_face, Style::FontStyle style, Style::FontWeight weight, UniquePtr<byte[]> face_memory);
|
|
|
+
|
|
|
+ /// Releases resources owned by sized font faces, including their textures and rendered glyphs.
|
|
|
+ void ReleaseFontResources();
|
|
|
|
|
|
protected:
|
|
|
String name;
|