diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-14 15:28:38 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-03-14 15:28:38 +0100 |
| commit | 2d833a54fd1147b0d5942c2798940038b7536a9a (patch) | |
| tree | 4a864bbe7c7f82a78897c29beab3b49278de0aa1 /src/drivers/Wayland | |
| parent | 496610723882602053cfb6912bca0b0dbfced84f (diff) | |
Move initialisation of X11 and Wayland built-in font names to fl_???_platform_init.cxx
Diffstat (limited to 'src/drivers/Wayland')
| -rw-r--r-- | src/drivers/Wayland/fl_wayland_platform_init.cxx | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/drivers/Wayland/fl_wayland_platform_init.cxx b/src/drivers/Wayland/fl_wayland_platform_init.cxx index e6aebd174..4500a0f45 100644 --- a/src/drivers/Wayland/fl_wayland_platform_init.cxx +++ b/src/drivers/Wayland/fl_wayland_platform_init.cxx @@ -29,6 +29,29 @@ Fl_Copy_Surface_Driver *Fl_Copy_Surface_Driver::newCopySurfaceDriver(int w, int } +static Fl_Fontdesc built_in_table[] = { // Pango font names + {"Sans"}, + {"Sans Bold"}, + {"Sans Italic"}, + {"Sans Bold Italic"}, + {"Monospace"}, + {"Monospace Bold"}, + {"Monospace Italic"}, + {"Monospace Bold Italic"}, + {"Serif"}, + {"Serif Bold"}, + {"Serif Italic"}, + {"Serif Bold Italic"}, + {"Standard Symbols PS"}, // FL_SYMBOL + {"Monospace"}, // FL_SCREEN + {"Monospace Bold"}, // FL_SCREEN_BOLD + {"D050000L"}, // FL_ZAPF_DINGBATS +}; + + +FL_EXPORT Fl_Fontdesc *fl_fonts = built_in_table; + + Fl_Graphics_Driver *Fl_Graphics_Driver::newMainGraphicsDriver() { fl_graphics_driver = new Fl_Wayland_Graphics_Driver(); |
