summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/CMakeLists.txt1
-rw-r--r--Userland/Libraries/LibGfx/CMakeLists.txt5
-rw-r--r--Userland/Libraries/LibGfx/FontDatabase.cpp2
-rw-r--r--Userland/Libraries/LibGfx/TrueTypeFont/Cmap.cpp (renamed from Userland/Libraries/LibTTF/Cmap.cpp)2
-rw-r--r--Userland/Libraries/LibGfx/TrueTypeFont/Cmap.h (renamed from Userland/Libraries/LibTTF/Cmap.h)0
-rw-r--r--Userland/Libraries/LibGfx/TrueTypeFont/Font.cpp (renamed from Userland/Libraries/LibTTF/Font.cpp)8
-rw-r--r--Userland/Libraries/LibGfx/TrueTypeFont/Font.h (renamed from Userland/Libraries/LibTTF/Font.h)6
-rw-r--r--Userland/Libraries/LibGfx/TrueTypeFont/Glyf.cpp (renamed from Userland/Libraries/LibTTF/Glyf.cpp)2
-rw-r--r--Userland/Libraries/LibGfx/TrueTypeFont/Glyf.h (renamed from Userland/Libraries/LibTTF/Glyf.h)2
-rw-r--r--Userland/Libraries/LibGfx/TrueTypeFont/Tables.h (renamed from Userland/Libraries/LibTTF/Tables.h)0
-rw-r--r--Userland/Libraries/LibGfx/Typeface.h2
-rw-r--r--Userland/Libraries/LibTTF/CMakeLists.txt8
12 files changed, 16 insertions, 22 deletions
diff --git a/Userland/Libraries/CMakeLists.txt b/Userland/Libraries/CMakeLists.txt
index 56cdc75ed3..c4ebb79bb0 100644
--- a/Userland/Libraries/CMakeLists.txt
+++ b/Userland/Libraries/CMakeLists.txt
@@ -42,7 +42,6 @@ add_subdirectory(LibTest)
add_subdirectory(LibTextCodec)
add_subdirectory(LibThreading)
add_subdirectory(LibTLS)
-add_subdirectory(LibTTF)
add_subdirectory(LibUnicode)
add_subdirectory(LibUSBDB)
add_subdirectory(LibVideo)
diff --git a/Userland/Libraries/LibGfx/CMakeLists.txt b/Userland/Libraries/LibGfx/CMakeLists.txt
index fc9b6a42e5..b16f1caf50 100644
--- a/Userland/Libraries/LibGfx/CMakeLists.txt
+++ b/Userland/Libraries/LibGfx/CMakeLists.txt
@@ -33,9 +33,12 @@ set(SOURCES
TextDirection.cpp
TextLayout.cpp
Triangle.cpp
+ TrueTypeFont/Font.cpp
+ TrueTypeFont/Glyf.cpp
+ TrueTypeFont/Cmap.cpp
Typeface.cpp
WindowTheme.cpp
)
serenity_lib(LibGfx gfx)
-target_link_libraries(LibGfx LibM LibCompress LibCore LibTTF)
+target_link_libraries(LibGfx LibM LibCompress LibCore LibTextCodec)
diff --git a/Userland/Libraries/LibGfx/FontDatabase.cpp b/Userland/Libraries/LibGfx/FontDatabase.cpp
index 555212f170..68b16547f0 100644
--- a/Userland/Libraries/LibGfx/FontDatabase.cpp
+++ b/Userland/Libraries/LibGfx/FontDatabase.cpp
@@ -9,8 +9,8 @@
#include <LibCore/DirIterator.h>
#include <LibGfx/Font.h>
#include <LibGfx/FontDatabase.h>
+#include <LibGfx/TrueTypeFont/Font.h>
#include <LibGfx/Typeface.h>
-#include <LibTTF/Font.h>
#include <stdlib.h>
namespace Gfx {
diff --git a/Userland/Libraries/LibTTF/Cmap.cpp b/Userland/Libraries/LibGfx/TrueTypeFont/Cmap.cpp
index 12a457f429..cd5d281466 100644
--- a/Userland/Libraries/LibTTF/Cmap.cpp
+++ b/Userland/Libraries/LibGfx/TrueTypeFont/Cmap.cpp
@@ -5,7 +5,7 @@
*/
#include <AK/Optional.h>
-#include <LibTTF/Cmap.h>
+#include <LibGfx/TrueTypeFont/Cmap.h>
namespace TTF {
diff --git a/Userland/Libraries/LibTTF/Cmap.h b/Userland/Libraries/LibGfx/TrueTypeFont/Cmap.h
index 3b8dc16b0d..3b8dc16b0d 100644
--- a/Userland/Libraries/LibTTF/Cmap.h
+++ b/Userland/Libraries/LibGfx/TrueTypeFont/Cmap.h
diff --git a/Userland/Libraries/LibTTF/Font.cpp b/Userland/Libraries/LibGfx/TrueTypeFont/Font.cpp
index e9d270e7d3..b60290bec4 100644
--- a/Userland/Libraries/LibTTF/Font.cpp
+++ b/Userland/Libraries/LibGfx/TrueTypeFont/Font.cpp
@@ -11,10 +11,10 @@
#include <AK/Utf8View.h>
#include <LibCore/File.h>
#include <LibGfx/FontDatabase.h>
-#include <LibTTF/Cmap.h>
-#include <LibTTF/Font.h>
-#include <LibTTF/Glyf.h>
-#include <LibTTF/Tables.h>
+#include <LibGfx/TrueTypeFont/Cmap.h>
+#include <LibGfx/TrueTypeFont/Font.h>
+#include <LibGfx/TrueTypeFont/Glyf.h>
+#include <LibGfx/TrueTypeFont/Tables.h>
#include <LibTextCodec/Decoder.h>
#include <math.h>
#include <sys/mman.h>
diff --git a/Userland/Libraries/LibTTF/Font.h b/Userland/Libraries/LibGfx/TrueTypeFont/Font.h
index b3dfd41180..81a294f70e 100644
--- a/Userland/Libraries/LibTTF/Font.h
+++ b/Userland/Libraries/LibGfx/TrueTypeFont/Font.h
@@ -13,9 +13,9 @@
#include <LibGfx/Bitmap.h>
#include <LibGfx/Font.h>
#include <LibGfx/Size.h>
-#include <LibTTF/Cmap.h>
-#include <LibTTF/Glyf.h>
-#include <LibTTF/Tables.h>
+#include <LibGfx/TrueTypeFont/Cmap.h>
+#include <LibGfx/TrueTypeFont/Glyf.h>
+#include <LibGfx/TrueTypeFont/Tables.h>
#define POINTS_PER_INCH 72.0f
#define DEFAULT_DPI 96
diff --git a/Userland/Libraries/LibTTF/Glyf.cpp b/Userland/Libraries/LibGfx/TrueTypeFont/Glyf.cpp
index cfc60eb7f5..7cdd39eb84 100644
--- a/Userland/Libraries/LibTTF/Glyf.cpp
+++ b/Userland/Libraries/LibGfx/TrueTypeFont/Glyf.cpp
@@ -6,7 +6,7 @@
#include <LibGfx/Path.h>
#include <LibGfx/Point.h>
-#include <LibTTF/Glyf.h>
+#include <LibGfx/TrueTypeFont/Glyf.h>
namespace TTF {
diff --git a/Userland/Libraries/LibTTF/Glyf.h b/Userland/Libraries/LibGfx/TrueTypeFont/Glyf.h
index bc9135dd7d..2d34aaacb7 100644
--- a/Userland/Libraries/LibTTF/Glyf.h
+++ b/Userland/Libraries/LibGfx/TrueTypeFont/Glyf.h
@@ -10,7 +10,7 @@
#include <AK/Vector.h>
#include <LibGfx/AffineTransform.h>
#include <LibGfx/Bitmap.h>
-#include <LibTTF/Tables.h>
+#include <LibGfx/TrueTypeFont/Tables.h>
#include <math.h>
namespace TTF {
diff --git a/Userland/Libraries/LibTTF/Tables.h b/Userland/Libraries/LibGfx/TrueTypeFont/Tables.h
index 2c7a5a7d29..2c7a5a7d29 100644
--- a/Userland/Libraries/LibTTF/Tables.h
+++ b/Userland/Libraries/LibGfx/TrueTypeFont/Tables.h
diff --git a/Userland/Libraries/LibGfx/Typeface.h b/Userland/Libraries/LibGfx/Typeface.h
index 8d12b59c39..ae3a235b81 100644
--- a/Userland/Libraries/LibGfx/Typeface.h
+++ b/Userland/Libraries/LibGfx/Typeface.h
@@ -12,7 +12,7 @@
#include <AK/Vector.h>
#include <LibGfx/BitmapFont.h>
#include <LibGfx/Font.h>
-#include <LibTTF/Font.h>
+#include <LibGfx/TrueTypeFont/Font.h>
namespace Gfx {
diff --git a/Userland/Libraries/LibTTF/CMakeLists.txt b/Userland/Libraries/LibTTF/CMakeLists.txt
deleted file mode 100644
index fa9daa9d5f..0000000000
--- a/Userland/Libraries/LibTTF/CMakeLists.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-set(SOURCES
- Cmap.cpp
- Font.cpp
- Glyf.cpp
-)
-
-serenity_lib(LibTTF ttf)
-target_link_libraries(LibTTF LibM LibCore LibTextCodec)