summaryrefslogtreecommitdiff
path: root/src/Fl_Font.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-02-11 12:02:36 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-02-11 12:02:36 +0000
commit50ee3bcd66c4baa6bb3388f5b955d726bfc6bdd8 (patch)
tree4b62978d21ee57df7027461b8ea2846c17308d11 /src/Fl_Font.H
parenta3c0dac034c919c2714f3f129a9f5d9d26ae3de4 (diff)
Mark places that need to be refactored with // PORTME:
Searching for __APPLE, WIN32 or X11 did give me many false results. I instead marked most ifdef's that I would like to get rid of with the text // PORTME:, so they can be easily found by a global search. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11155 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Font.H')
-rw-r--r--src/Fl_Font.H14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Fl_Font.H b/src/Fl_Font.H
index a265d1aa4..a66d7fee9 100644
--- a/src/Fl_Font.H
+++ b/src/Fl_Font.H
@@ -26,7 +26,7 @@
#include <config.h>
-#if defined(WIN32) || defined(__APPLE__)
+#if defined(WIN32) || defined(__APPLE__) // PORTME: platform font stuff
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: implement font descriptor details here"
#else
@@ -36,7 +36,7 @@
#if USE_XFT
typedef struct _XftFont XftFont;
#elif defined(WIN32)
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) // PORTME: platform font stuff
#elif defined(FL_PORTING)
# pragma message "FL_PORTING: do you want to include Xutf8.h?"
#else
@@ -61,7 +61,7 @@ public:
TEXTMETRIC metr;
int angle;
FL_EXPORT Fl_Font_Descriptor(const char* fontname, Fl_Fontsize size);
-# elif defined(__APPLE_QUARTZ__)
+# elif defined(__APPLE_QUARTZ__) // PORTME: platform font stuff
FL_EXPORT Fl_Font_Descriptor(const char* fontname, Fl_Fontsize size);
ATSUTextLayout layout;
# if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
@@ -84,9 +84,9 @@ public:
# endif
# if HAVE_GL
unsigned int listbase;// base of display list, 0 = none
-#ifndef __APPLE_QUARTZ__
+#ifndef __APPLE_QUARTZ__ // PORTME: platform font stuff
char glok[64];
-#endif // __APPLE_QUARTZ__
+#endif // __APPLE_QUARTZ__ // PORTME: platform font stuff
# endif // HAVE_GL
FL_EXPORT ~Fl_Font_Descriptor();
@@ -101,7 +101,7 @@ struct Fl_Fontdesc {
char fontname[128]; // "Pretty" font name
Fl_Font_Descriptor *first; // linked list of sizes of this style
#ifdef WIN32
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) // PORTME: platform font stuff
char **xlist; // matched X font names
int n; // size of xlist, negative = don't free xlist!
#elif defined(FL_PORTING)
@@ -115,7 +115,7 @@ struct Fl_Fontdesc {
extern FL_EXPORT Fl_Fontdesc *fl_fonts; // the table
#ifdef WIN32
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) // PORTME: platform font stuff
// functions for parsing X font names:
FL_EXPORT const char* fl_font_word(const char *p, int n);
FL_EXPORT char *fl_find_fontsize(char *name);