aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/cairo/PangoFont.h
blob: 75e139afe04776856acfc664b1a9e758f385031d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "../Font.h"
#include "CairoResource.h"

namespace cru::platform::graphics::cairo {
class PangoFont : public CairoResource, public virtual IFont {
 public:
  PangoFont(CairoGraphicsFactory* factory, String font_family, float font_size);

  ~PangoFont() override;

 public:
  String GetFontName() override;
  float GetFontSize() override;

 private:
  String font_family_;
  float font_size_;
};
}  // namespace cru::platform::graphics::cairo