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/Cairo | |
| parent | 496610723882602053cfb6912bca0b0dbfced84f (diff) | |
Move initialisation of X11 and Wayland built-in font names to fl_???_platform_init.cxx
Diffstat (limited to 'src/drivers/Cairo')
| -rw-r--r-- | src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx index 12e7e2311..6c306e111 100644 --- a/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx +++ b/src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx @@ -911,37 +911,15 @@ int Fl_Cairo_Graphics_Driver::descent() { } -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 -}; +extern Fl_Fontdesc *fl_fonts; -#if FLTK_USE_WAYLAND - FL_EXPORT Fl_Fontdesc *fl_fonts = built_in_table; -#else - extern Fl_Fontdesc *fl_fonts; -#endif void Fl_Cairo_Graphics_Driver::init_built_in_fonts() { static int i = 0; if (!i) { while (i < FL_FREE_FONT) { i++; - Fl::set_font((Fl_Font)i-1, built_in_table[i-1].name); + Fl::set_font((Fl_Font)i-1, fl_fonts[i-1].name); } } } |
