Forge
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 }
Definition: CPUCopy.hpp:13
#define FGAPI
Definition: defines.h:32
Definition: font.h:13
Font object is essentially a resource handler for the specific font you want to use.
Definition: font.h:26