Lines Matching refs:cf
60 Font cf("Arial", 16);
61 NativeFont native = cf.GetNativeFont();
63 ASSERT_EQ(cf.GetStyle(), Font::NORMAL);
64 ASSERT_EQ(cf.GetFontSize(), 16);
65 ASSERT_EQ(cf.GetFontName(), "Arial");
70 Font cf("Arial", 16);
71 Font bold(cf.DeriveFont(0, Font::BOLD));
79 Font cf("Arial", 16);
80 ASSERT_GT(cf.GetBaseline(), 2);
81 ASSERT_LE(cf.GetBaseline(), 22);
85 Font cf("Arial", 16);
86 ASSERT_GE(cf.GetHeight(), 16);
88 ASSERT_LE(cf.GetHeight(), 26);
92 Font cf("Arial", 16);
93 ASSERT_EQ(cf.GetExpectedTextWidth(0), 0);
94 ASSERT_GT(cf.GetExpectedTextWidth(1), cf.GetExpectedTextWidth(0));
95 ASSERT_GT(cf.GetExpectedTextWidth(2), cf.GetExpectedTextWidth(1));
96 ASSERT_GT(cf.GetExpectedTextWidth(3), cf.GetExpectedTextWidth(2));
100 Font cf("Arial", 16);
101 ASSERT_GT(cf.GetAverageCharacterWidth(), 0);
105 Font cf("Arial", 16);
106 ASSERT_EQ(cf.GetStringWidth(base::string16()), 0);
107 ASSERT_GT(cf.GetStringWidth(ASCIIToUTF16("a")),
108 cf.GetStringWidth(base::string16()));
109 ASSERT_GT(cf.GetStringWidth(ASCIIToUTF16("ab")),
110 cf.GetStringWidth(ASCIIToUTF16("a")));
111 ASSERT_GT(cf.GetStringWidth(ASCIIToUTF16("abc")),
112 cf.GetStringWidth(ASCIIToUTF16("ab")));
117 Font cf("Arial", 8);
121 Font derived_font = cf.DeriveFont(-4);
126 Font cf("Arial", 8);
130 Font derived_font = cf.DeriveFont(-2);