1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

LibGfx: Add Core::File variant of BitmapFont::write_to_file

This commit is contained in:
Caoimhe 2023-05-01 14:54:31 +01:00 committed by Sam Atkins
parent 0d2ca125b3
commit c43295b668
2 changed files with 14 additions and 5 deletions

View file

@ -33,7 +33,9 @@ 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);
ErrorOr<void> write_to_file(NonnullOwnPtr<Core::File> file);
~BitmapFont();