Forge: font.h Source File

Forge

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

font.h
Go to the documentation of this file.
1 /*******************************************************
2 * Copyright (c) 2015-2019, ArrayFire
3 * All rights reserved.
4 *
5 * This file is distributed under 3-clause BSD license.
6 * The complete license agreement can be obtained at:
7 * http://arrayfire.com/licenses/BSD-3-Clause
8 ********************************************************/
9
10 #pragma once
11 #include <fg/defines.h>
12
13 namespace internal
14 {
15 class _Font;
16 }
17
18 namespace fg
19 {
20
26 class Font {
27 private:
28 internal::_Font* value;
29
30 public:
34 FGAPI Font();
35
41 FGAPI Font(const Font& other);
42
46 FGAPI ~Font();
47
54 FGAPI void loadFont(const char* const pFile, int pFontSize);
55
62 FGAPI void loadSystemFont(const char* const pName, int pFontSize);
63
67 FGAPI internal::_Font* get() const;
68 };
69
70 }
fg
Definition: CPUCopy.hpp:13
fg::Font::loadSystemFont
FGAPI void loadSystemFont(const char *const pName, int pFontSize)
Load a system font based on the name.
FGAPI
#define FGAPI
Definition: defines.h:32
defines.h
fg::Font::loadFont
FGAPI void loadFont(const char *const pFile, int pFontSize)
Load a given font file.
internal
Definition: font.h:13
fg::Font::~Font
FGAPI ~Font()
Font Destructor.
fg::Font::Font
FGAPI Font()
Creates Font object.
fg::Font
Font object is essentially a resource handler for the specific font you want to use.
Definition: font.h:26