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