Torque3D Documentation / _generateds / platformFont.cpp

platformFont.cpp

Engine/source/platform/platformFont.cpp

More...

Public Functions

const char *

Detailed Description

Public Functions

getCharSetName(const U32 charSet)

 1
 2//-----------------------------------------------------------------------------
 3// Copyright (c) 2012 GarageGames, LLC
 4//
 5// Permission is hereby granted, free of charge, to any person obtaining a copy
 6// of this software and associated documentation files (the "Software"), to
 7// deal in the Software without restriction, including without limitation the
 8// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 9// sell copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in
13// all copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21// IN THE SOFTWARE.
22//-----------------------------------------------------------------------------
23
24#include "platform/platform.h"
25#include "platform/platformFont.h"
26
27
28const char *getCharSetName(const U32 charSet)
29{
30   switch(charSet)
31   {
32   case TGE_ANSI_CHARSET:        return "ansi";
33   case TGE_SYMBOL_CHARSET:      return "symbol";
34   case TGE_SHIFTJIS_CHARSET:    return "shiftjis";
35   case TGE_HANGEUL_CHARSET:     return "hangeul";
36   case TGE_HANGUL_CHARSET:      return "hangul";
37   case TGE_GB2312_CHARSET:      return "gb2312";
38   case TGE_CHINESEBIG5_CHARSET: return "chinesebig5";
39   case TGE_OEM_CHARSET:         return "oem";
40   case TGE_JOHAB_CHARSET:       return "johab";
41   case TGE_HEBREW_CHARSET:      return "hebrew";
42   case TGE_ARABIC_CHARSET:      return "arabic";
43   case TGE_GREEK_CHARSET:       return "greek";
44   case TGE_TURKISH_CHARSET:     return "turkish";
45   case TGE_VIETNAMESE_CHARSET:  return "vietnamese";
46   case TGE_THAI_CHARSET:        return "thai";
47   case TGE_EASTEUROPE_CHARSET:  return "easteurope";
48   case TGE_RUSSIAN_CHARSET:     return "russian";
49   case TGE_MAC_CHARSET:         return "mac";
50   case TGE_BALTIC_CHARSET:      return "baltic";
51   }
52
53   AssertISV(false, "getCharSetName - unknown charset! Update table in platformString.cc!");
54   return "";
55}
56