summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/windows.c b/windows.c
index a4fe1e2c2..386b52eb1 100644
--- a/windows.c
+++ b/windows.c
@@ -15,7 +15,7 @@
const char non_standard_system_divelist_default_font[] = "Calibri";
const char current_system_divelist_default_font[] = "Segoe UI";
const char *system_divelist_default_font = non_standard_system_divelist_default_font;
-const int system_divelist_default_font_size = 9;
+double system_divelist_default_font_size = -1;
void subsurface_user(struct user_info *user)
{ /* Encourage use of at least libgit2-0.20 */ }
@@ -28,6 +28,15 @@ void subsurface_OS_pref_setup(void)
system_divelist_default_font = current_system_divelist_default_font;
}
+bool subsurface_ignore_font(const char *font)
+{
+ // if this is running on a recent enough version of Windows and the font
+ // passed in is the pre 4.3 default font, ignore it
+ if (isWin7Or8() && strcmp(font, non_standard_system_divelist_default_font) == 0)
+ return true;
+ return false;
+}
+
const char *system_default_filename(void)
{
char datapath[MAX_PATH];