Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bf8a1006
Commit
bf8a1006
authored
Dec 13, 2011
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Dec 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't use preferred family name.
parent
ad58ca23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
freetype.c
dlls/gdi32/freetype.c
+16
-8
font.c
dlls/gdi32/tests/font.c
+0
-2
No files found.
dlls/gdi32/freetype.c
View file @
bf8a1006
...
...
@@ -1487,8 +1487,6 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
#endif
/* HAVE_CARBON_CARBON_H */
do
{
char
*
family_name
=
fake_family
;
if
(
file
)
{
TRACE
(
"Loading font file %s index %ld
\n
"
,
debugstr_a
(
file
),
face_index
);
...
...
@@ -1571,9 +1569,6 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
HeapFree
(
GetProcessHeap
(),
0
,
localised_family
);
}
if
(
!
family_name
)
family_name
=
ft_face
->
family_name
;
bitmap_num
=
0
;
do
{
My_FT_Bitmap_Size
*
size
=
NULL
;
...
...
@@ -1582,9 +1577,22 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
if
(
!
FT_IS_SCALABLE
(
ft_face
))
size
=
(
My_FT_Bitmap_Size
*
)
ft_face
->
available_sizes
+
bitmap_num
;
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
family_name
,
-
1
,
NULL
,
0
);
english_family
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
family_name
,
-
1
,
english_family
,
len
);
if
(
fake_family
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
fake_family
,
-
1
,
NULL
,
0
);
english_family
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
fake_family
,
-
1
,
english_family
,
len
);
}
else
{
english_family
=
get_face_name
(
ft_face
,
TT_NAME_ID_FONT_FAMILY
,
TT_MS_LANGID_ENGLISH_UNITED_STATES
);
if
(
!
english_family
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
ft_face
->
family_name
,
-
1
,
NULL
,
0
);
english_family
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
ft_face
->
family_name
,
-
1
,
english_family
,
len
);
}
}
localised_family
=
NULL
;
if
(
!
fake_family
)
{
...
...
dlls/gdi32/tests/font.c
View file @
bf8a1006
...
...
@@ -4125,8 +4125,6 @@ static void test_vertical_font(void)
ok
(
num
==
2
,
"AddFontResourceExA should add 2 fonts from vertical.ttf
\n
"
);
check_vertical_font
(
"@WineTestVertical"
,
&
installed
,
&
selected
,
&
gm
);
/* This test fails on wine if locale is not en-US. Disable for now. */
if
(
0
)
ok
(
installed
,
"@WineTestVertical is not installed
\n
"
);
todo_wine
ok
(
selected
,
"@WineTestVertical is not selected
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment