diff options
Diffstat (limited to 'gm/verttext.cpp')
-rw-r--r-- | gm/verttext.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gm/verttext.cpp b/gm/verttext.cpp index 37cf37cbad..700fb25e41 100644 --- a/gm/verttext.cpp +++ b/gm/verttext.cpp @@ -13,17 +13,17 @@ namespace skiagm { #define TEXT_SIZE 48 -static const char gText[] = "Hello"; +constexpr char gText[] = "Hello"; //Before shaping -//static const char gText[] = "「テスト。」"; -//static const char gText[] = {0xE3,0x80,0x8C, 0xE3,0x83,0x86, 0xE3,0x82,0xB9, 0xE3,0x83,0x88, 0xE3,0x80,0x82, 0xE3,0x80,0x8D, 0x0}; +//constexpr char gText[] = "「テスト。」"; +//constexpr char gText[] = {0xE3,0x80,0x8C, 0xE3,0x83,0x86, 0xE3,0x82,0xB9, 0xE3,0x83,0x88, 0xE3,0x80,0x82, 0xE3,0x80,0x8D, 0x0}; //After shaping -//static const char gText[] = "﹁テスト︒﹂"; -//static const char gText[] = {0xEF,0xB9,0x81, 0xE3,0x83,0x86, 0xE3,0x82,0xB9, 0xE3,0x83,0x88, 0xEF,0xB8,0x92, 0xEF,0xB9,0x82, 0x0}; +//constexpr char gText[] = "﹁テスト︒﹂"; +//constexpr char gText[] = {0xEF,0xB9,0x81, 0xE3,0x83,0x86, 0xE3,0x82,0xB9, 0xE3,0x83,0x88, 0xEF,0xB8,0x92, 0xEF,0xB9,0x82, 0x0}; -static const size_t gLen = sizeof(gText) - sizeof(gText[0]); +constexpr size_t gLen = sizeof(gText) - sizeof(gText[0]); class VertTextGM : public GM { public: |