Horizon
text_data.hpp
1 #pragma once
2 #include "common/common.hpp"
3 #include <vector>
4 
5 
6 namespace horizon {
7 class TextData {
8 public:
9  enum class Font {
10  SMALL,
11  SMALL_ITALIC,
12  SIMPLEX,
13  COMPLEX_SMALL,
14  COMPLEX_SMALL_ITALIC,
15  DUPLEX,
16  COMPLEX,
17  COMPLEX_ITALIC,
18  TRIPLEX,
19  TRIPLEX_ITALIC,
20  SCRIPT_SIMPLEX,
21  SCRIPT_COMPLEX
22  };
23  TextData(const std::string &s, Font font = Font::SIMPLEX);
24  std::vector<std::pair<Coordi, Coordi>> lines;
25  int ymin = 0;
26  int ymax = 0;
27  int xmin = 100;
28  int xmax = 0;
29  int xright = 0;
30 };
31 } // namespace horizon