bool Profile::GetFont(const char *key, LOGFONT* lplf) { assert(key != NULL); assert(key[0] != '\0'); assert(lplf != NULL); const char *value = Get(key); return value != NULL && GetFontFromString(value, lplf); }
bool Profile::GetFont(const TCHAR *key, LOGFONT* lplf) { TCHAR Buffer[128]; assert(key != NULL); assert(key[0] != '\0'); assert(lplf != NULL); if (Get(key, Buffer, sizeof(Buffer) / sizeof(TCHAR))) return GetFontFromString(Buffer, lplf); return false; }