Cobbletext  0.2.0
Complex text layout and rendering engine
GlyphInfo.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <ostream>
5 
6 #include "common.hpp"
7 #include "macros.h"
8 
9 namespace cobbletext {
10 
12 public:
13  GlyphID id = 0;
14  std::vector<uint8_t> image;
15  uint32_t imageWidth = 0;
16  uint32_t imageHeight = 0;
17  int32_t imageOffsetX = 0;
18  int32_t imageOffsetY = 0;
19 
20 private:
21  friend std::ostream & operator<<(std::ostream & stream,
22  const GlyphInfo & glyphInfo);
23 };
24 
25 }
common.hpp
macros.h
COBBLETEXT_CPP_API
#define COBBLETEXT_CPP_API
Macro for Windows C++ symbol import and export.
Definition: macros.h:33
cobbletext::GlyphInfo::image
std::vector< uint8_t > image
Definition: GlyphInfo.hpp:14
cobbletext::GlyphInfo
Definition: GlyphInfo.hpp:11
cobbletext::GlyphID
uint32_t GlyphID
Definition: common.hpp:8
cobbletext
Definition: AdvanceInfo.hpp:8