예제 #1
0
파일: FontConfig.cpp 프로젝트: DRIZO/xcsoar
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);
}
예제 #2
0
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;
}