Logo
Font.h
1#pragma once
2
3#include "Types.h"
4#include "gfx/Font.h"
5
6namespace SharpKmyGfx
7{
8 ref class Texture;
9
10 public ref class Font
11 {
12 public:
13 kmyGfx::Font * obj = nullptr;
14
15 Font();
16 Font(System::String ^path, int height, float scale);
17 void Release();
18 SharpKmyMath::Vector2 measureString(cli::array<byte> ^text);
19
20 static Font^ newSystemFont(cli::array<byte> ^faceName, u32 height, bool bold);
21 static Font^ newSystemFont(cli::array<byte> ^faceName, u32 height);
22 static Font^ newSystemFontGdi(cli::array<byte> ^faceName, u32 height);
23
25
26 private:
27 kmyIO::StreamBase *m_stream;
28 u32 m_fileSize;
29 u8* m_buffer;
30 };
31}
Definition: Font.h:11
Texture getTexture()
Definition: Font.cpp:164
SharpKmyMath::Vector2 measureString(cli::array< byte > ^text)
Definition: Font.cpp:156
static Font newSystemFont(cli::array< byte > ^faceName, u32 height, bool bold)
Definition: Font.cpp:62
static Font newSystemFontGdi(cli::array< byte > ^faceName, u32 height)
Definition: Font.cpp:41
kmyGfx::Font * obj
Definition: Font.h:13
Font()
Definition: Font.cpp:9
void Release()
Definition: Font.cpp:147
Definition: Texture.h:72
Definition: Billboard.cpp:4
Definition: Vector3.h:186