Lines Matching refs:weight
637 weight::type convertWeight(int weight) in convertWeight() argument
640 if( weight <= FC_WEIGHT_THIN ) in convertWeight()
641 return weight::Thin; in convertWeight()
642 else if( weight <= FC_WEIGHT_ULTRALIGHT ) in convertWeight()
643 return weight::UltraLight; in convertWeight()
644 else if( weight <= FC_WEIGHT_LIGHT ) in convertWeight()
645 return weight::Light; in convertWeight()
646 else if( weight <= FC_WEIGHT_BOOK ) in convertWeight()
647 return weight::SemiLight; in convertWeight()
648 else if( weight <= FC_WEIGHT_NORMAL ) in convertWeight()
649 return weight::Normal; in convertWeight()
650 else if( weight <= FC_WEIGHT_MEDIUM ) in convertWeight()
651 return weight::Medium; in convertWeight()
652 else if( weight <= FC_WEIGHT_SEMIBOLD ) in convertWeight()
653 return weight::SemiBold; in convertWeight()
654 else if( weight <= FC_WEIGHT_BOLD ) in convertWeight()
655 return weight::Bold; in convertWeight()
656 else if( weight <= FC_WEIGHT_ULTRABOLD ) in convertWeight()
657 return weight::UltraBold; in convertWeight()
658 return weight::Black; in convertWeight()
721 int weight = 0; in countFontconfigFonts() local
730 …FcResult eWeightRes = rWrapper.FcPatternGetInteger( pFSet->fonts[i], FC_WEIGHT, 0, &weight ); in countFontconfigFonts()
743 , eWeightRes == FcResultMatch ? weight : -1 in countFontconfigFonts()
838 pUpdate->m_eWeight = convertWeight(weight); in countFontconfigFonts()
926 italic::type eItalic, weight::type eWeight, width::type eWidth, pitch::type ePitch) in addtopattern()
940 if( eWeight != weight::Unknown ) in addtopattern()
945 case weight::Thin: nWeight = FC_WEIGHT_THIN;break; in addtopattern()
946 case weight::UltraLight: nWeight = FC_WEIGHT_ULTRALIGHT;break; in addtopattern()
947 case weight::Light: nWeight = FC_WEIGHT_LIGHT;break; in addtopattern()
948 case weight::SemiLight: nWeight = FC_WEIGHT_BOOK;break; in addtopattern()
949 case weight::Normal: nWeight = FC_WEIGHT_NORMAL;break; in addtopattern()
950 case weight::Medium: nWeight = FC_WEIGHT_MEDIUM;break; in addtopattern()
951 case weight::SemiBold: nWeight = FC_WEIGHT_SEMIBOLD;break; in addtopattern()
952 case weight::Bold: nWeight = FC_WEIGHT_BOLD;break; in addtopattern()
953 case weight::UltraBold: nWeight = FC_WEIGHT_ULTRABOLD;break; in addtopattern()
954 case weight::Black: nWeight = FC_WEIGHT_BLACK;break; in addtopattern()
997 italic::type &rItalic, weight::type &rWeight, in Substitute()
1291 rtl::OUString&, const rtl::OString&, italic::type, weight::type, width::type, pitch::type) const in Substitute()