示例#1
0
FontSettings
Fonts::GetDefaults()
{
  FontSettings settings;
  InitialiseLogFonts(settings);
  return settings;
}
示例#2
0
文件: Fonts.cpp 项目: hnpilot/XCSoar
void
Fonts::Initialize()
{
  InitialiseLogFonts();

  InfoBoxSmall.set(LogInfoBoxSmall);
  Title.set(LogTitle);
  CDI.set(LogCDI);
  MapLabel.set(LogMapLabel);
  Map.set(LogMap);
  MapBold.set(LogMapBold);
}
示例#3
0
bool
Fonts::Initialize()
{
  InitialiseLogFonts();

  title.Load(log_title);
  cdi.Load(log_cdi);
  map_label.Load(log_map_label);
  map_label_important.Load(log_map_label_important);
  map.Load(log_map);
  map_bold.Load(log_map_bold);
  monospace.Load(log_monospace);

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