Commit 97904fd1 authored by Qian Hong's avatar Qian Hong Committed by Alexandre Julliard

gdi32: Prepend at when create vertical font face.

parent 8f91b516
......@@ -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 );
......
......@@ -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);
......
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