summaryrefslogtreecommitdiff
path: root/common/vgui_surfacelib/vguifont.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/vgui_surfacelib/vguifont.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/vgui_surfacelib/vguifont.h')
-rw-r--r--common/vgui_surfacelib/vguifont.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/common/vgui_surfacelib/vguifont.h b/common/vgui_surfacelib/vguifont.h
new file mode 100644
index 0000000..34ee32c
--- /dev/null
+++ b/common/vgui_surfacelib/vguifont.h
@@ -0,0 +1,37 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef VGUIFONT_H
+#define VGUIFONT_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+// Structure passed to CWin32Font::GetCharsRGBA
+struct newChar_t
+{
+ wchar_t wch; // A new character to generate texture data for
+ int fontWide; // Texel width of the character
+ int fontTall; // Texel height of the character
+ int offset; // Offset into the buffer given to GetCharsRGBA
+};
+
+#ifdef WIN32
+#include "Win32Font.h"
+typedef CWin32Font font_t;
+#elif defined(OSX)
+#include "osxfont.h"
+typedef COSXFont font_t;
+#elif defined(LINUX)
+#include "linuxfont.h"
+typedef CLinuxFont font_t;
+#else
+#error
+#endif
+
+
+#endif //VGUIFONT_H \ No newline at end of file