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
e531306f
Commit
e531306f
authored
Jun 20, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Put vertical font families after their horizontal counterpart in the font list.
parent
102b2785
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
freetype.c
dlls/gdi32/freetype.c
+34
-0
No files found.
dlls/gdi32/freetype.c
View file @
e531306f
...
...
@@ -1622,6 +1622,38 @@ static void load_face(HKEY hkey_face, WCHAR *face_name, Family *family, void *bu
}
}
/* move vertical fonts after their horizontal counterpart */
/* assumes that font_list is already sorted by family name */
static
void
reorder_vertical_fonts
(
void
)
{
Family
*
family
,
*
next
,
*
vert_family
;
struct
list
*
ptr
,
*
vptr
;
struct
list
vertical_families
=
LIST_INIT
(
vertical_families
);
LIST_FOR_EACH_ENTRY_SAFE
(
family
,
next
,
&
font_list
,
Family
,
entry
)
{
if
(
family
->
FamilyName
[
0
]
!=
'@'
)
continue
;
list_remove
(
&
family
->
entry
);
list_add_tail
(
&
vertical_families
,
&
family
->
entry
);
}
ptr
=
list_head
(
&
font_list
);
vptr
=
list_head
(
&
vertical_families
);
while
(
ptr
&&
vptr
)
{
family
=
LIST_ENTRY
(
ptr
,
Family
,
entry
);
vert_family
=
LIST_ENTRY
(
vptr
,
Family
,
entry
);
if
(
strcmpiW
(
family
->
FamilyName
,
vert_family
->
FamilyName
+
1
)
>
0
)
{
list_remove
(
vptr
);
list_add_before
(
ptr
,
vptr
);
vptr
=
list_head
(
&
vertical_families
);
}
else
ptr
=
list_next
(
&
font_list
,
ptr
);
}
list_move_tail
(
&
font_list
,
&
vertical_families
);
}
static
void
load_font_list_from_cache
(
HKEY
hkey_font_cache
)
{
DWORD
size
,
family_index
=
0
;
...
...
@@ -1672,6 +1704,8 @@ static void load_font_list_from_cache(HKEY hkey_font_cache)
release_family
(
family
);
size
=
sizeof
(
buffer
);
}
reorder_vertical_fonts
();
}
static
LONG
create_font_cache_key
(
HKEY
*
hkey
,
DWORD
*
disposition
)
...
...
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