12 #ifndef hifi_TextRenderer3D_h
13 #define hifi_TextRenderer3D_h
16 #include <glm/glm.hpp>
18 #include "text/Font.h"
19 #include "TextEffect.h"
20 #include "TextAlignment.h"
21 #include "FontFamilies.h"
23 class TextRenderer3D {
25 static TextRenderer3D* getInstance(
const char* family);
27 glm::vec2 computeExtent(
const QString& str)
const;
28 float getFontHeight()
const;
30 void draw(gpu::Batch& batch,
const Font::DrawProps& props);
31 void draw(gpu::Batch& batch,
const QString& font,
const Font::DrawProps& props);
34 TextRenderer3D(
const char* family);
38 std::shared_ptr<Font> _font;
39 Font::DrawInfo _drawInfo;