Kaydet (Commit) 376830eb authored tarafından Caolán McNamara's avatar Caolán McNamara

Generalize the check for a recode table

I think we can distill this down to a "if the source or target
is a symbol font check for a recode table"

Change-Id: I6c674f10d9f1ab7fbe7274abfafb9082bae88218
üst e94c8521
......@@ -2287,8 +2287,9 @@ ImplFontEntry* ImplFontCache::GetFontEntry( ImplDevFontList* pFontList,
// create a new logical font instance from this physical font face
pEntry = pFontData->CreateFontInstance( aFontSelData );
// if we found a different symbol font we need a symbol conversion table
if( pFontData->IsSymbolFont() )
// if we're subtituting from or to a symbol font we may need a symbol
// conversion table
if( pFontData->IsSymbolFont() || aFontSelData.IsSymbolFont() )
{
if( aFontSelData.maTargetName != aFontSelData.maSearchName )
pEntry->mpConversion = ConvertChar::GetRecodeData( aFontSelData.maTargetName, aFontSelData.maSearchName );
......@@ -2309,13 +2310,6 @@ ImplFontEntry* ImplFontCache::GetFontEntry( ImplDevFontList* pFontList,
maFontInstanceList[ aFontSelData ] = pEntry;
}
// We might have selected a non-symbol font as a fallback for a
// symbol font. Ensure that conversion is done
if (aFontSelData.IsSymbolFont() && !pEntry->maMetric.IsSymbolFont() && !pEntry->mpConversion)
{
pEntry->mpConversion = ConvertChar::GetRecodeData( aFontSelData.maTargetName, aFontSelData.maSearchName );
}
mpFirstEntry = pEntry;
return pEntry;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment