summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/font/font_dwrite.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-10-03 23:20:25 -0400
committer Nathan Woods <npwoods@mess.org>2016-10-03 23:20:25 -0400
commit85ba2fde280fdf9782b2e0ebc358113b75a7bce1 (patch)
tree6a054f26e338b4cc5b4e48c9d9dc8820820c38da /src/osd/modules/font/font_dwrite.cpp
parent8e67c061b50b2098e713ded110ad360d379678d9 (diff)
Bulk renaming of Windows string conversion functions
utf8_from_[a|w|t]string ==> osd::text::from_[a|w|t]string [a|w|t]string_from_utf8 ==> osd::text::to_[a|w|t]string
Diffstat (limited to 'src/osd/modules/font/font_dwrite.cpp')
-rw-r--r--src/osd/modules/font/font_dwrite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/modules/font/font_dwrite.cpp b/src/osd/modules/font/font_dwrite.cpp
index ca0ac21bbd3..af9f83bdf89 100644
--- a/src/osd/modules/font/font_dwrite.cpp
+++ b/src/osd/modules/font/font_dwrite.cpp
@@ -362,7 +362,7 @@ public:
bool italic = (strreplace(name, "[I]", "") + strreplace(name, "[i]", "") > 0);
// convert the face name
- std::wstring familyName = wstring_from_utf8(name.c_str());
+ std::wstring familyName = osd::text::to_wstring(name.c_str());
// find the font
HR_RET0(find_font(
@@ -757,7 +757,7 @@ public:
std::unique_ptr<WCHAR[]> name = nullptr;
HR_RET0(get_localized_familyname(names, name));
- std::string utf8_name = utf8_from_wstring(name.get());
+ std::string utf8_name = osd::text::from_wstring(name.get());
name.reset();
// Review: should the config name, be unlocalized?