summaryrefslogtreecommitdiffhomepage
path: root/dev/Usr/LibFont
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:13:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:15:17 +0100
commita13e1c0911c0627184bc38f18c7fdda64447b3ad (patch)
tree073a62c09bf216e85a3f310376640fa1805147f9 /dev/Usr/LibFont
parent149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff)
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Usr/LibFont')
-rw-r--r--dev/Usr/LibFont/.keep0
-rw-r--r--dev/Usr/LibFont/Font.h55
2 files changed, 0 insertions, 55 deletions
diff --git a/dev/Usr/LibFont/.keep b/dev/Usr/LibFont/.keep
deleted file mode 100644
index e69de29b..00000000
--- a/dev/Usr/LibFont/.keep
+++ /dev/null
diff --git a/dev/Usr/LibFont/Font.h b/dev/Usr/LibFont/Font.h
deleted file mode 100644
index 73b3a285..00000000
--- a/dev/Usr/LibFont/Font.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/**
- *
- * Copyright (c) 2024 Amlal El Mahrouss
- *
- */
-
-#pragma once
-
-#include <LibCF/Foundation.h>
-
-#define kCFFontExt ".ttf"
-
-/// @file Font.h
-/// @brief Font parsing using a NeOS True Font.
-
-namespace LibCF
-{
- class CFFont;
-
- class CFFont
- {
- public:
- explicit CFFont() = default;
- virtual ~CFFont() = default;
-
- protected:
- CFRect m_size{};
- CFRect* m_glyphs{nullptr};
- CFInteger32 m_glyphs_cnt{0};
- BOOL m_bold{NO};
- BOOL m_italic{NO};
-
- CFFont(const CFFont& fnt) = delete;
- CFFont& operator=(const CFFont& fnt) = delete;
-
- virtual BOOL render_(CFPoint pos, CFChar16 character, CFColor color) = 0;
-
- virtual void dispose_()
- {
- m_bold = NO;
- m_italic = NO;
-
- m_size.height = 0;
- m_size.width = 0;
-
- m_glyphs_cnt = 0;
-
- delete[] m_glyphs;
- m_glyphs = nullptr;
-
- m_size.x = 0;
- m_size.y = 0;
- }
- };
-} // namespace LibCF \ No newline at end of file