All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LabelTextStyleFactory.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 
6 #include "Labels.h"
7 #include "ILabelTextStyleFactory.h"
8 #include "Fonts.h"
9 #include "Types.h"
10 
11 #include <string>
12 
13 namespace Eegeo
14 {
15  namespace Labels
16  {
18  {
19  public:
20  LabelTextStyleFactory(ILabelResourceFontBindingRepository& labelResourceFontBindingRepository,
21  Fonts::IFontInstanceService& fontInstanceService,
22  float sizeScaleForProjection,
23  float sizeScaleForPixelDensity);
24 
26  private:
27  const Fonts::FontInstance* GetFontInstance(const std::string& fontName);
28 
29  ILabelResourceFontBindingRepository& m_labelResourceFontBindingRepository;
30  Fonts::IFontInstanceService& m_fontInstanceService;
31  const float m_sizeScaleForProjection;
32  const float m_sizeScaleForPixelDensity;
33  };
34  }
35 }