aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/Font.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:31:34 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:31:34 +0100
commit24578c9afb61ae65b300dd7fb645220e133089be (patch)
treec6451ea01a56f0bde33a803ea37169f59d0fc41d /src/crepe/facade/Font.h
parentbcaee968761c1d2e85c20925b237480c87da9747 (diff)
parent707db8c94b6bb3921105f40658aab13511d8df07 (diff)
Merge branch 'wouter/text-component' into niels/UI
Diffstat (limited to 'src/crepe/facade/Font.h')
-rw-r--r--src/crepe/facade/Font.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/crepe/facade/Font.h b/src/crepe/facade/Font.h
index 0b1768b..3eff3c6 100644
--- a/src/crepe/facade/Font.h
+++ b/src/crepe/facade/Font.h
@@ -25,7 +25,6 @@ public:
* \param mediator The Mediator object used for managing the SDL context or related systems.
*/
Font(const Asset & src, Mediator & mediator);
-
/**
* \brief Gets the underlying TTF_Font resource.
*
@@ -40,9 +39,7 @@ public:
private:
//! The SDL_ttf font object with custom deleter.
- std::unique_ptr<TTF_Font, std::function<void(TTF_Font *)>> font;
-
- std::string path;
+ std::unique_ptr<TTF_Font, std::function<void(TTF_Font *)>> font = nullptr;
};
} // namespace crepe