aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--project.conf1
-rw-r--r--src/main.cpp5
3 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index 2fada89..ae34f81 100644
--- a/README.md
+++ b/README.md
@@ -21,5 +21,3 @@ When joining a channel using invite key, we might be given an incorrect decrypti
because decryption fails. This should be gracefully handled
# Screenshot
![Sample screenshot](https://i.imgur.com/z0Ee0Rw.png)
-# Test channel
-First create an account by writing `/register username password` then join the channel by writing `/jc b4177b4cca3b341d58f61dd7b3a14228f61c08cc96f30cafbe1cacbf44ded58a&213588b1e8ca38963445002c6dddb398bbf430bbcfa94163db73ea015d66d7ef`
diff --git a/project.conf b/project.conf
index cf60d63..7c92ede 100644
--- a/project.conf
+++ b/project.conf
@@ -15,3 +15,4 @@ gl = "17.3"
x11 = "1.6.5"
libnsgif = "0.2.0"
libpreview = "0.2.0"
+freetype2 = "22.0.0"
diff --git a/src/main.cpp b/src/main.cpp
index b5ec81e..a4e5dc8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -21,6 +21,8 @@
#include <sibs/SafeSerializer.hpp>
#include <process.hpp>
#include <X11/Xlib.h>
+#include <freetype2/ft2build.h>
+#include <freetype2/freetype/freetype.h>
using namespace std;
using namespace dchat;
@@ -669,6 +671,9 @@ int main(int argc, char **argv)
Channel::getCurrent()->addLocalMessage(msg, Channel::getCurrent()->getSystemUser());
});
+ FT_Library library;
+ FT_Init_FreeType(&library);
+
sf::Event event;
while (window.isOpen())
{