gdi32: Prepend at when create vertical font face.

This commit is contained in:
Qian Hong 2012-09-12 21:51:24 +08:00 committed by Alexandre Julliard
parent 8f91b51674
commit 97904fd1ff
2 changed files with 4 additions and 5 deletions

View File

@ -1724,6 +1724,9 @@ static Face *create_face( FT_Face ft_face, FT_Long face_index, const char *file,
face->FullName = get_face_name( ft_face, TT_NAME_ID_FULL_NAME, GetSystemDefaultLangID() );
if (!face->FullName)
face->FullName = get_face_name( ft_face, TT_NAME_ID_FULL_NAME, TT_MS_LANGID_ENGLISH_UNITED_STATES );
if (vertical)
face->FullName = prepend_at( face->FullName );
if (file)
{
face->file = strdupA( file );

View File

@ -4087,11 +4087,7 @@ static void test_fullname2_helper(const char *Family)
trace("Checking font %s:\nFamilyName: %s; FaceName: %s; StyleName: %s\n", Family, FamilyName, FaceName, StyleName);
get_vertical = ( FamilyName[0] == '@' );
if (get_vertical)
{
todo_wine ok(get_vertical == want_vertical, "Vertical flags don't match: %s %s\n", Family, FamilyName);
continue;
}
ok(get_vertical == want_vertical, "Vertical flags don't match: %s %s\n", Family, FamilyName);
lstrcpyA(lf.lfFaceName, FaceName);
hfont = CreateFontIndirectA(&lf);