If both full name and family are available, use the former in inexact match warning.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26691 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2008-05-08 13:53:58 +00:00
parent 4805407960
commit 263c691380
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ static char* _select_font(fc_instance_t* priv, const char* family, unsigned bold
if (!(r_family && strcasecmp((const char*)r_family, family) == 0) &&
!(r_fullname && strcasecmp((const char*)r_fullname, family) == 0))
mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_SelectedFontFamilyIsNotTheRequestedOne,
(const char*)(r_family ? r_family : r_fullname), family);
(const char*)(r_fullname ? r_fullname : r_family), family);
result = FcPatternGetString(rpat, FC_STYLE, 0, &r_style);
if (result != FcResultMatch)