Cobbletext  0.2.0
Complex text layout and rendering engine
FontInfo.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <ostream>
5 
6 #include "common.hpp"
7 #include "macros.h"
8 
9 namespace cobbletext {
10 
12 public:
13  FontID id = 0;
14  std::string familyName;
15  std::string styleName;
16  uint16_t unitsPerEM = 0;
17  int16_t ascender = 0;
18  int16_t descender = 0;
19  int16_t height = 0;
20  int16_t underlinePosition = 0;
21  int16_t underlineThickness = 0;
22 
23 private:
24  friend std::ostream & operator<<(std::ostream & stream,
25  const FontInfo & fontInfo);
26 };
27 
28 }
cobbletext::FontInfo::styleName
std::string styleName
Definition: FontInfo.hpp:15
cobbletext::FontInfo::familyName
std::string familyName
Definition: FontInfo.hpp:14
common.hpp
macros.h
COBBLETEXT_CPP_API
#define COBBLETEXT_CPP_API
Macro for Windows C++ symbol import and export.
Definition: macros.h:33
cobbletext::FontID
uint32_t FontID
Definition: common.hpp:7
cobbletext
Definition: AdvanceInfo.hpp:8
cobbletext::FontInfo
Definition: FontInfo.hpp:11