VR-Forces 4.1 Class Documentation
DtSharedFontDatabase.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSharedFontDatabase.h,v $ $Revision: 1.12 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrfGuiCore/vrfGuiCore.h>
18 
19 #include <map>
20 
21 namespace makVrf
22 {
23  const int TTS_FONT_BOLD = 0x00000001;
24  const int TTS_FONT_ITALIC = 0x00000002;
25 
28  {
29  public:
30 
31  public:
37 
41  static std::string className();
42 
44  virtual ~DtSharedFontDatabase();
45 
47  virtual std::string fontFileFor(const std::string& family, int flags = 0) const;
48 
50  virtual std::string fontFromFile(const std::string& file) const;
51 
53  virtual void addFont(const std::string& family, const std::string& fileName);
54 
55  protected:
57 
58  protected:
59  std::map<std::string, std::string> myFontFileMap;
60  };
61 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)