summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/font/font_dwrite.cpp
diff options
context:
space:
mode:
author Brad Hughes <bradhugh@outlook.com>2016-11-14 20:44:38 -0500
committer Brad Hughes <bradhugh@outlook.com>2016-11-14 20:44:38 -0500
commit00cb2804918480d288e7ca02961698d5a15e76bb (patch)
tree801921c6334ac69b7f991216e6e12133a72a3375 /src/osd/modules/font/font_dwrite.cpp
parent6b390947c7599b1fbad414cbcb7d9bcdbfe5bb35 (diff)
UWP: Different default font. Tahoma not available on XBOX (nw)
Diffstat (limited to 'src/osd/modules/font/font_dwrite.cpp')
-rw-r--r--src/osd/modules/font/font_dwrite.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/osd/modules/font/font_dwrite.cpp b/src/osd/modules/font/font_dwrite.cpp
index 57b25d87329..884f2bed5f3 100644
--- a/src/osd/modules/font/font_dwrite.cpp
+++ b/src/osd/modules/font/font_dwrite.cpp
@@ -359,7 +359,12 @@ public:
// accept qualifiers from the name
std::string name(_name);
- if (name.compare("default") == 0) name = "Tahoma";
+ if (name.compare("default") == 0)
+#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
+ name = "Tahoma";
+#else
+ name = "Segoe UI";
+#endif
bool bold = (strreplace(name, "[B]", "") + strreplace(name, "[b]", "") > 0);
bool italic = (strreplace(name, "[I]", "") + strreplace(name, "[i]", "") > 0);