From 9f8200ea3e5700a33a372f4d51f9a59fbe1dd5e1 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 15 Oct 2015 18:16:16 -0300 Subject: [PATCH] Add list of system fonts in PasteTextCommand dialog (on Windows) --- data/widgets/font_popup.xml | 12 ++ data/widgets/paste_text.xml | 2 +- src/app/CMakeLists.txt | 2 + src/app/commands/cmd_paste_text.cpp | 158 +++++++---------------- src/app/ui/font_popup.cpp | 192 ++++++++++++++++++++++++++++ src/app/ui/font_popup.h | 50 ++++++++ src/app/util/freetype_utils.cpp | 152 ++++++++++++++++++++++ src/app/util/freetype_utils.h | 28 ++++ 8 files changed, 485 insertions(+), 111 deletions(-) create mode 100644 data/widgets/font_popup.xml create mode 100644 src/app/ui/font_popup.cpp create mode 100644 src/app/ui/font_popup.h create mode 100644 src/app/util/freetype_utils.cpp create mode 100644 src/app/util/freetype_utils.h diff --git a/data/widgets/font_popup.xml b/data/widgets/font_popup.xml new file mode 100644 index 000000000..b890db815 --- /dev/null +++ b/data/widgets/font_popup.xml @@ -0,0 +1,12 @@ + + + + +