Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Text
ShapedTextBuilder.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Text.h"
6
#include "Fonts.h"
7
#include "ShapedText.h"
8
9
#include <string>
10
#include <vector>
11
12
namespace
Eegeo
13
{
14
namespace
Text
15
{
16
namespace
Helpers
17
{
18
ShapedGlyph MakeShapedGlyph(u32 codepointUtf32,
const
v2& position,
float
textSize,
const
Fonts::FontInstance& fontInstance);
19
}
20
21
class
ShapedTextBuilder
:
private
Eegeo::NonCopyable
22
{
23
public
:
24
ShapedTextBuilder
();
25
26
ShapedText
Build(
const
std::string& textUtf8,
const
Fonts::FontInstance
& fontInstance,
float
textSize);
27
28
private
:
29
std::vector<u32> m_glyphCodepoints;
30
std::vector<ShapedGlyph> m_shapedGlyphs;
31
};
32
}
33
}
Generated on Sat Jun 10 2023 02:00:34 for eeGeo Platform SDK by
1.8.3.1