2 * psychlops_g_font_Win32_GL.h
3 * Psychlops Standard Library (Universal)
5 * Last Modified 2008/09/12 by Kenchi HOSOKAWA
6 * (C) 2008 Kenchi HOSOKAWA, Kazushi MARUYA and Takao SATO
9 #include "../../core/graphic/psychlops_g_font.h"
15 Font Font::default_font(20, normal_weight, normal_style, L"MS UI Gothic");
17 std::wstring LocalEncodingtoWCHAR(const char* s, int length) {
19 result.resize( MultiByteToWideChar( CP_ACP, 0, (LPCSTR)s, length, (LPWSTR)result.data(), 0 ) );
20 MultiByteToWideChar( CP_ACP, 0, (LPCSTR)s, length, (LPWSTR)result.data(), length*2 );
23 std::wstring LocalEncodingtoWCHAR(const char* c) {
27 return LocalEncodingtoWCHAR(c, i);
30 } /* <- namespace Psycholops */