mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
LibGfx: Add a MappedFile
variant of BitmapFont::try_load_from_file
Let's make it possible to create a BitmapFont directly from a MappedFile instead of a file path.
This commit is contained in:
parent
74d34134ff
commit
0d2ca125b3
2 changed files with 9 additions and 3 deletions
|
@ -32,6 +32,7 @@ public:
|
|||
|
||||
static RefPtr<BitmapFont> load_from_file(DeprecatedString const& path);
|
||||
static ErrorOr<NonnullRefPtr<BitmapFont>> try_load_from_file(DeprecatedString const& path);
|
||||
static ErrorOr<NonnullRefPtr<BitmapFont>> try_load_from_mapped_file(RefPtr<Core::MappedFile> const&);
|
||||
ErrorOr<void> write_to_file(DeprecatedString const& path);
|
||||
|
||||
~BitmapFont();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue