Lines Matching refs:rFSD

839 bool ImplFontData::IsBetterMatch( const ImplFontSelectData& rFSD, FontMatchStatus& rStatus ) const  in IsBetterMatch()  argument
843 const String& rFontName = rFSD.maTargetName; in IsBetterMatch()
851 if( (rFSD.mePitch != PITCH_DONTKNOW) && (rFSD.mePitch == mePitch) ) in IsBetterMatch()
861 if( rFSD.meWeight != WEIGHT_DONTKNOW ) in IsBetterMatch()
864 int nReqWeight = (int)rFSD.meWeight; in IsBetterMatch()
865 if ( rFSD.meWeight > WEIGHT_MEDIUM ) in IsBetterMatch()
895 if ( rFSD.meItalic == ITALIC_NONE ) in IsBetterMatch()
902 if( rFSD.meItalic == meItalic ) in IsBetterMatch()
916 if( rFSD.mnOrientation != 0 ) in IsBetterMatch()
918 else if( rFSD.mnWidth != 0 ) in IsBetterMatch()
925 if( rFSD.mnHeight == mnHeight ) in IsBetterMatch()
928 if( rFSD.mnWidth == mnWidth ) in IsBetterMatch()
935 int nHeightDiff = (rFSD.mnHeight - mnHeight) * 1000; in IsBetterMatch()
937 if( rFSD.mnHeight ) in IsBetterMatch()
938 nHeightMatch /= rFSD.mnHeight; in IsBetterMatch()
940 if( (rFSD.mnWidth != 0) && (mnWidth != 0) && (rFSD.mnWidth != mnWidth) ) in IsBetterMatch()
942 int nWidthDiff = (rFSD.mnWidth - mnWidth) * 100; in IsBetterMatch()
1191 ImplFontData* ImplDevFontListData::FindBestFontFace( const ImplFontSelectData& rFSD ) const in FindBestFontFace()
1199 const String& rSearchName = rFSD.maTargetName; in FindBestFontFace()
1210 if( pFontFace->IsBetterMatch( rFSD, aFontMatchStatus ) ) in FindBestFontFace()
2234 size_t ImplFontCache::IFSD_Hash::operator()( const ImplFontSelectData& rFSD ) const in operator ()()
2238 size_t nHash = aFontNameHash( rFSD.maSearchName ); in operator ()()
2241 if (rFSD.maTargetName.Search(grutils::GrFeatureParser::FEAT_PREFIX) in operator ()()
2244 nHash = aFontNameHash( rFSD.maTargetName ); in operator ()()
2247 nHash += 11 * rFSD.mnHeight; in operator ()()
2248 nHash += 19 * rFSD.meWeight; in operator ()()
2249 nHash += 29 * rFSD.meItalic; in operator ()()
2250 nHash += 37 * rFSD.mnOrientation; in operator ()()
2251 nHash += 41 * rFSD.meLanguage; in operator ()()
2252 if( rFSD.mbVertical ) in operator ()()
2434 ImplDevFontListData* ImplDevFontList::ImplFindByFont( ImplFontSelectData& rFSD, in ImplFindByFont() argument
2449 String& aSearchName = rFSD.maSearchName; // TODO: get rid of reference in ImplFindByFont()
2452 rFSD.maTargetName = GetNextFontToken( rFSD.maName, nTokenPos ); in ImplFindByFont()
2453 aSearchName = rFSD.maTargetName; in ImplFindByFont()
2459 String aOrigName = rFSD.maTargetName; in ImplFindByFont()
2465 rFSD.maTargetName = aBaseFontName; in ImplFindByFont()
2474 if( (rFSD.meWeight > WEIGHT_MEDIUM) in ImplFindByFont()
2496 rFSD.meWeight = WEIGHT_DONTKNOW; in ImplFindByFont()
2502 rFSD.maTargetName = aOrigName; in ImplFindByFont()
2514 rFSD.maTargetName = aBaseFontName; in ImplFindByFont()
2517 if( mpPreMatchHook->FindFontSubstitute( rFSD ) ) in ImplFindByFont()
2522 rFSD.maTargetName = aOrigName; in ImplFindByFont()
2543 rFSD.maTargetName = GetNextFontToken( rFSD.maName, nTokenPos ); in ImplFindByFont()
2544 aSearchName = rFSD.maTargetName; in ImplFindByFont()
2550 if( mpPreMatchHook->FindFontSubstitute( rFSD ) ) in ImplFindByFont()
2563 rFSD.maTargetName = GetNextFontToken( rFSD.maName, nTokenPos ); in ImplFindByFont()
2564 aSearchName = rFSD.maTargetName; in ImplFindByFont()
2570 FontWeight eSearchWeight = rFSD.meWeight; in ImplFindByFont()
2571 FontWidth eSearchWidth = rFSD.meWidthType; in ImplFindByFont()
2623 if( rFSD.IsSymbolFont() ) in ImplFindByFont()
2635 rFSD.maTargetName = GetNextFontToken( rFSD.maName, nTokenPos ); in ImplFindByFont()
2636 if( !rFSD.maTargetName.Len() ) in ImplFindByFont()
2639 aSearchName = rFSD.maTargetName; in ImplFindByFont()
2645 FontWeight eTempWeight = rFSD.meWeight; in ImplFindByFont()
2683 … ImplDevFontListData* pFoundData = ImplFindByAliasName( rFSD.maTargetName, aSearchShortName ); in ImplFindByFont()
2689 switch( rFSD.meLanguage ) in ImplFindByFont()
2709 nSearchType |= ImplIsCJKFont( rFSD.maName ); in ImplFindByFont()
2710 if( rFSD.IsSymbolFont() ) in ImplFindByFont()
2715 ImplCalcType( nSearchType, eSearchWeight, eSearchWidth, rFSD.meFamily, pFontAttr ); in ImplFindByFont()
2717 eSearchWeight, eSearchWidth, rFSD.meFamily, rFSD.meItalic, aSearchFamilyName ); in ImplFindByFont()
2723 && (eSearchWeight > rFSD.meWeight) in ImplFindByFont()
2725 rFSD.meWeight = eSearchWeight; in ImplFindByFont()
2727 && (eSearchWeight < rFSD.meWeight) in ImplFindByFont()
2730 rFSD.meWeight = eSearchWeight; in ImplFindByFont()
2733 && ((rFSD.meItalic == ITALIC_DONTKNOW) || (rFSD.meItalic == ITALIC_NONE)) in ImplFindByFont()
2735 rFSD.meItalic = ITALIC_NORMAL; in ImplFindByFont()