15TEST(FXFontTest, UnicodeFromAdobeName) {
16 EXPECT_EQ(
static_cast<
wchar_t>(0x0000), UnicodeFromAdobeName(
"nonesuch"));
17 EXPECT_EQ(
static_cast<
wchar_t>(0x0000), UnicodeFromAdobeName(
""));
18 EXPECT_EQ(
static_cast<
wchar_t>(0x00b6), UnicodeFromAdobeName(
"paragraph"));
19 EXPECT_EQ(
static_cast<
wchar_t>(0x00d3), UnicodeFromAdobeName(
"Oacute"));
20 EXPECT_EQ(
static_cast<
wchar_t>(0x00fe), UnicodeFromAdobeName(
"thorn"));
21 EXPECT_EQ(
static_cast<
wchar_t>(0x0384), UnicodeFromAdobeName(
"tonos"));
22 EXPECT_EQ(
static_cast<
wchar_t>(0x2022), UnicodeFromAdobeName(
"bullet"));
25TEST(FXFontTest, AdobeNameFromUnicode) {
26 EXPECT_STREQ(
"", AdobeNameFromUnicode(0x0000).c_str());
27 EXPECT_STREQ(
"divide", AdobeNameFromUnicode(0x00f7).c_str());
28 EXPECT_STREQ(
"Lslash", AdobeNameFromUnicode(0x0141).c_str());
29 EXPECT_STREQ(
"tonos", AdobeNameFromUnicode(0x0384).c_str());
30 EXPECT_STREQ(
"afii57513", AdobeNameFromUnicode(0x0691).c_str());
31 EXPECT_STREQ(
"angkhankhuthai", AdobeNameFromUnicode(0x0e5a).c_str());
32 EXPECT_STREQ(
"Euro", AdobeNameFromUnicode(0x20ac).c_str());
36 std::string test_data_dir;
38 DCHECK(!test_data_dir.empty());
49 font_mapper.SetSystemFontInfo(
54 ASSERT_EQ(1u, font_mapper.GetFaceSize());
55 ASSERT_EQ(
"Test", font_mapper.GetFaceName(0));