• Home
  • Raw
  • Download

Lines Matching refs:FontStyle

646 const char* slantToString(FontStyle::Slant slant) {  in slantToString()
647 if (slant == FontStyle::Slant::ITALIC) { in slantToString()
654 std::string fontStyleToString(const FontStyle& style) { in fontStyleToString()
664 constexpr FontStyle::Weight THIN = FontStyle::Weight::THIN; in TEST_F()
665 constexpr FontStyle::Weight LIGHT = FontStyle::Weight::LIGHT; in TEST_F()
666 constexpr FontStyle::Weight NORMAL = FontStyle::Weight::NORMAL; in TEST_F()
667 constexpr FontStyle::Weight MEDIUM = FontStyle::Weight::MEDIUM; in TEST_F()
668 constexpr FontStyle::Weight BOLD = FontStyle::Weight::BOLD; in TEST_F()
669 constexpr FontStyle::Weight BLACK = FontStyle::Weight::BLACK; in TEST_F()
671 constexpr FontStyle::Slant UPRIGHT = FontStyle::Slant::UPRIGHT; in TEST_F()
672 constexpr FontStyle::Slant ITALIC = FontStyle::Slant::ITALIC; in TEST_F()
674 const std::vector<FontStyle> STANDARD_SET = { in TEST_F()
675 FontStyle(NORMAL, UPRIGHT), // 0 in TEST_F()
676 FontStyle(BOLD, UPRIGHT), // 1 in TEST_F()
677 FontStyle(NORMAL, ITALIC), // 2 in TEST_F()
678 FontStyle(BOLD, ITALIC), // 3 in TEST_F()
681 const std::vector<FontStyle> FULL_SET = { in TEST_F()
682 FontStyle(THIN, UPRIGHT), // 0 in TEST_F()
683 FontStyle(LIGHT, UPRIGHT), // 1 in TEST_F()
684 FontStyle(NORMAL, UPRIGHT), // 2 in TEST_F()
685 FontStyle(MEDIUM, UPRIGHT), // 3 in TEST_F()
686 FontStyle(BOLD, UPRIGHT), // 4 in TEST_F()
687 FontStyle(BLACK, UPRIGHT), // 5 in TEST_F()
688 FontStyle(THIN, ITALIC), // 6 in TEST_F()
689 FontStyle(LIGHT, ITALIC), // 7 in TEST_F()
690 FontStyle(NORMAL, ITALIC), // 8 in TEST_F()
691 FontStyle(MEDIUM, ITALIC), // 9 in TEST_F()
692 FontStyle(BOLD, ITALIC), // 10 in TEST_F()
693 FontStyle(BLACK, ITALIC), // 11 in TEST_F()
696 FontStyle wantedStyle; in TEST_F()
697 std::vector<FontStyle> familyStyles; in TEST_F()
700 {FontStyle(), {FontStyle()}, 0}, in TEST_F()
703 {FontStyle(BOLD), {FontStyle(NORMAL), FontStyle(BOLD)}, 1}, in TEST_F()
704 {FontStyle(BOLD), {FontStyle(LIGHT), FontStyle(BOLD)}, 1}, in TEST_F()
705 {FontStyle(LIGHT), {FontStyle(NORMAL), FontStyle(LIGHT)}, 1}, in TEST_F()
706 {FontStyle(LIGHT), {FontStyle(BOLD), FontStyle(LIGHT)}, 1}, in TEST_F()
707 {FontStyle(NORMAL), {FontStyle(NORMAL), FontStyle(LIGHT)}, 0}, in TEST_F()
708 {FontStyle(NORMAL), {FontStyle(NORMAL), FontStyle(BOLD)}, 0}, in TEST_F()
709 {FontStyle(LIGHT), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 0}, in TEST_F()
710 {FontStyle(NORMAL), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 1}, in TEST_F()
711 {FontStyle(BOLD), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 2}, in TEST_F()
713 {FontStyle(UPRIGHT), {FontStyle(UPRIGHT), FontStyle(ITALIC)}, 0}, in TEST_F()
714 {FontStyle(ITALIC), {FontStyle(UPRIGHT), FontStyle(ITALIC)}, 1}, in TEST_F()
716 {FontStyle(NORMAL, UPRIGHT), STANDARD_SET, 0}, in TEST_F()
717 {FontStyle(BOLD, UPRIGHT), STANDARD_SET, 1}, in TEST_F()
718 {FontStyle(NORMAL, ITALIC), STANDARD_SET, 2}, in TEST_F()
719 {FontStyle(BOLD, ITALIC), STANDARD_SET, 3}, in TEST_F()
721 {FontStyle(NORMAL, UPRIGHT), FULL_SET, 2}, in TEST_F()
722 {FontStyle(BOLD, UPRIGHT), FULL_SET, 4}, in TEST_F()
723 {FontStyle(NORMAL, ITALIC), FULL_SET, 8}, in TEST_F()
724 {FontStyle(BOLD, ITALIC), FULL_SET, 10}, in TEST_F()