app_server FontManager: load all fonts and named-variants from a file
BFont::LoadFont can now use an index (0-based) and an optional named-instance (1-based) to select the font variant from a file. BFont::LoadFont can also use an index when loading from memory. Change-Id: I0ce3eb6cc77d32cf43847416561eafe3063ca693 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7402 Reviewed-by: Jérôme Duval <[email protected]> Reviewed-by: Máximo Castañeda <[email protected]> Tested-by: Commit checker robot <[email protected]>
This commit is contained in:
committed by
Máximo Castañeda
parent
fe8f7e314e
commit
d0f06357f5
@@ -283,8 +283,11 @@ public:
|
||||
void PrintToStream() const;
|
||||
|
||||
status_t LoadFont(const char* path);
|
||||
status_t LoadFont(const char* path, uint16 index, uint16 instance);
|
||||
status_t LoadFont(const area_id fontAreaID,
|
||||
size_t size = 0, size_t offset = 0);
|
||||
status_t LoadFont(const area_id fontAreaID,
|
||||
size_t size = 0, size_t offset = 0, uint16 index = 0);
|
||||
status_t UnloadFont();
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user