From 3718effc431f5622a23c55b254153efdfe4e72c4 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 4 Mar 2022 15:40:29 +0100 Subject: Add the Wayland platform to FLTK 1.4 --- src/drivers/Wayland/Fl_Font.H | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/drivers/Wayland/Fl_Font.H (limited to 'src/drivers/Wayland/Fl_Font.H') 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 +#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_ -- cgit v1.2.3