Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
808 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef VGUIFONT_H
  8. #define VGUIFONT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. // Structure passed to CWin32Font::GetCharsRGBA
  13. struct newChar_t
  14. {
  15. wchar_t wch; // A new character to generate texture data for
  16. int fontWide; // Texel width of the character
  17. int fontTall; // Texel height of the character
  18. int offset; // Offset into the buffer given to GetCharsRGBA
  19. };
  20. #ifdef WIN32
  21. #include "Win32Font.h"
  22. typedef CWin32Font font_t;
  23. #elif defined(OSX)
  24. #include "osxfont.h"
  25. typedef COSXFont font_t;
  26. #elif defined(LINUX)
  27. #include "linuxfont.h"
  28. typedef CLinuxFont font_t;
  29. #else
  30. #error
  31. #endif
  32. #endif //VGUIFONT_H