summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Font.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-04 15:40:29 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-03-04 15:41:00 +0100
commit3718effc431f5622a23c55b254153efdfe4e72c4 (patch)
treed8a805870c6a3785022e2f52f0c3715410e29a37 /src/drivers/Wayland/Fl_Font.H
parenta773fdc44bfb818f1830e9e48ba765881e68c942 (diff)
Add the Wayland platform to FLTK 1.4
Diffstat (limited to 'src/drivers/Wayland/Fl_Font.H')
-rw-r--r--src/drivers/Wayland/Fl_Font.H33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/drivers/Wayland/Fl_Font.H b/src/drivers/Wayland/Fl_Font.H
new file mode 100644
index 000000000..eca2f32ca
--- /dev/null
+++ b/src/drivers/Wayland/Fl_Font.H
@@ -0,0 +1,33 @@
+//
+// Font definitions for the Fast Light Tool Kit (FLTK).
+//
+// Copyright 2021 by Bill Spitzak and others.
+//
+// This library is free software. Distribution and use rights are outlined in
+// the file "COPYING" which should have been included with this file. If this
+// file is missing or damaged, see the license at:
+//
+// https://www.fltk.org/COPYING.php
+//
+// Please see the following page on how to report bugs and issues:
+//
+// https://www.fltk.org/bugs.php
+//
+
+#ifndef FL_FONT_
+#define FL_FONT_
+
+#include <config.h>
+#include "Fl_Wayland_Graphics_Driver.H"
+
+class Fl_Wayland_Font_Descriptor : public Fl_Font_Descriptor {
+public:
+ Fl_Wayland_Font_Descriptor(const char* fontname, Fl_Fontsize size);
+ FL_EXPORT ~Fl_Wayland_Font_Descriptor();
+ PangoFontDescription *fontref;
+ int **width; // array of arrays of character widths
+};
+
+extern FL_EXPORT Fl_Fontdesc *fl_fonts; // the table
+
+#endif // FL_FONT_