void
Fonts::LoadCustom()
{
  LoadCustomFont(&InfoBox, szProfileFontInfoWindowFont);
  LoadCustomFont(&InfoBoxSmall, szProfileFontTitleSmallWindowFont);
  LoadCustomFont(&Title, szProfileFontTitleWindowFont);
  LoadCustomFont(&CDI, szProfileFontCDIWindowFont);
  LoadCustomFont(&MapLabel, szProfileFontMapLabelFont);
  LoadCustomFont(&MapLabelImportant, szProfileFontMapLabelImportantFont);
  LoadCustomFont(&Map, szProfileFontMapWindowFont);
  LoadCustomFont(&MapBold, szProfileFontMapWindowBoldFont);
}
Beispiel #2
0
bool
Fonts::LoadCustom()
{
  LoadCustomFont(&infobox, ProfileKeys::FontInfoWindowFont);
  LoadCustomFont(&infobox_small, ProfileKeys::FontTitleSmallWindowFont);
  LoadCustomFont(&title, ProfileKeys::FontTitleWindowFont);
  LoadCustomFont(&cdi, ProfileKeys::FontCDIWindowFont);
  LoadCustomFont(&map_label, ProfileKeys::FontMapLabelFont);
  LoadCustomFont(&map_label_important, ProfileKeys::FontMapLabelImportantFont);
  LoadCustomFont(&map, ProfileKeys::FontMapWindowFont);
  LoadCustomFont(&map_bold, ProfileKeys::FontMapWindowBoldFont);

  return title.IsDefined() && cdi.IsDefined() &&
    map_label.IsDefined() && map_label_important.IsDefined() &&
    map.IsDefined() && map_bold.IsDefined();
}