Lines Matching refs:FontStyle

771 const char* slantToString(FontStyle::Slant slant) {  in slantToString()
772 if (slant == FontStyle::Slant::ITALIC) { in slantToString()
779 std::string fontStyleToString(const FontStyle& style) { in fontStyleToString()
789 constexpr FontStyle::Weight THIN = FontStyle::Weight::THIN; in TEST_F()
790 constexpr FontStyle::Weight LIGHT = FontStyle::Weight::LIGHT; in TEST_F()
791 constexpr FontStyle::Weight NORMAL = FontStyle::Weight::NORMAL; in TEST_F()
792 constexpr FontStyle::Weight MEDIUM = FontStyle::Weight::MEDIUM; in TEST_F()
793 constexpr FontStyle::Weight BOLD = FontStyle::Weight::BOLD; in TEST_F()
794 constexpr FontStyle::Weight BLACK = FontStyle::Weight::BLACK; in TEST_F()
796 constexpr FontStyle::Slant UPRIGHT = FontStyle::Slant::UPRIGHT; in TEST_F()
797 constexpr FontStyle::Slant ITALIC = FontStyle::Slant::ITALIC; in TEST_F()
799 const std::vector<FontStyle> STANDARD_SET = { in TEST_F()
800 FontStyle(NORMAL, UPRIGHT), // 0 in TEST_F()
801 FontStyle(BOLD, UPRIGHT), // 1 in TEST_F()
802 FontStyle(NORMAL, ITALIC), // 2 in TEST_F()
803 FontStyle(BOLD, ITALIC), // 3 in TEST_F()
806 const std::vector<FontStyle> FULL_SET = { in TEST_F()
807 FontStyle(THIN, UPRIGHT), // 0 in TEST_F()
808 FontStyle(LIGHT, UPRIGHT), // 1 in TEST_F()
809 FontStyle(NORMAL, UPRIGHT), // 2 in TEST_F()
810 FontStyle(MEDIUM, UPRIGHT), // 3 in TEST_F()
811 FontStyle(BOLD, UPRIGHT), // 4 in TEST_F()
812 FontStyle(BLACK, UPRIGHT), // 5 in TEST_F()
813 FontStyle(THIN, ITALIC), // 6 in TEST_F()
814 FontStyle(LIGHT, ITALIC), // 7 in TEST_F()
815 FontStyle(NORMAL, ITALIC), // 8 in TEST_F()
816 FontStyle(MEDIUM, ITALIC), // 9 in TEST_F()
817 FontStyle(BOLD, ITALIC), // 10 in TEST_F()
818 FontStyle(BLACK, ITALIC), // 11 in TEST_F()
821 FontStyle wantedStyle; in TEST_F()
822 std::vector<FontStyle> familyStyles; in TEST_F()
825 {FontStyle(), {FontStyle()}, 0}, in TEST_F()
828 {FontStyle(BOLD), {FontStyle(NORMAL), FontStyle(BOLD)}, 1}, in TEST_F()
829 {FontStyle(BOLD), {FontStyle(LIGHT), FontStyle(BOLD)}, 1}, in TEST_F()
830 {FontStyle(LIGHT), {FontStyle(NORMAL), FontStyle(LIGHT)}, 1}, in TEST_F()
831 {FontStyle(LIGHT), {FontStyle(BOLD), FontStyle(LIGHT)}, 1}, in TEST_F()
832 {FontStyle(NORMAL), {FontStyle(NORMAL), FontStyle(LIGHT)}, 0}, in TEST_F()
833 {FontStyle(NORMAL), {FontStyle(NORMAL), FontStyle(BOLD)}, 0}, in TEST_F()
834 {FontStyle(LIGHT), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 0}, in TEST_F()
835 {FontStyle(NORMAL), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 1}, in TEST_F()
836 {FontStyle(BOLD), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 2}, in TEST_F()
838 {FontStyle(UPRIGHT), {FontStyle(UPRIGHT), FontStyle(ITALIC)}, 0}, in TEST_F()
839 {FontStyle(ITALIC), {FontStyle(UPRIGHT), FontStyle(ITALIC)}, 1}, in TEST_F()
841 {FontStyle(NORMAL, UPRIGHT), STANDARD_SET, 0}, in TEST_F()
842 {FontStyle(BOLD, UPRIGHT), STANDARD_SET, 1}, in TEST_F()
843 {FontStyle(NORMAL, ITALIC), STANDARD_SET, 2}, in TEST_F()
844 {FontStyle(BOLD, ITALIC), STANDARD_SET, 3}, in TEST_F()
846 {FontStyle(NORMAL, UPRIGHT), FULL_SET, 2}, in TEST_F()
847 {FontStyle(BOLD, UPRIGHT), FULL_SET, 4}, in TEST_F()
848 {FontStyle(NORMAL, ITALIC), FULL_SET, 8}, in TEST_F()
849 {FontStyle(BOLD, ITALIC), FULL_SET, 10}, in TEST_F()