VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sharedFontDatabase.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() override;
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 }
a read settings lock on a setting object. The object can only get read access aka const functions...
Definition: DtReadSettingsLock.h:48
The shared settings manager, is the global object responsible for managing any shared settings object...
Definition: DtSharedSettingsManager.h:42
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
std::map< std::string, std::string > myFontFileMap
Definition: sharedFontDatabase.h:59
The base class for all shared settings. Actual settings class should have the following members/decla...
Definition: DtSharedSettings.h:45
Contains the DtSharedSettings class declaration.
Shared access to font file information.
Definition: sharedFontDatabase.h:27
const int TTS_FONT_ITALIC
Definition: sharedFontDatabase.h:24
a write settings lock on a setting object. The object can be read and modified, but no other threads ...
Definition: DtWriteSettingsLock.h:47
const int TTS_FONT_BOLD
Definition: sharedFontDatabase.h:23

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)