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:176
SharpKmyMath::Vector2 measureString(cli::array< byte > ^text)
Definition: Font.cpp:166
static Font newSystemFont(cli::array< byte > ^faceName, u32 height, bool bold)
Definition: Font.cpp:68
static Font newSystemFontGdi(cli::array< byte > ^faceName, u32 height)
Definition: Font.cpp:43
kmyGfx::Font * obj
Definition: Font.h:13
Font()
Definition: Font.cpp:9
void Release()
Definition: Font.cpp:155
Definition: Texture.h:12
Definition: Asset.h:4
Definition: Vector2.h:5