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
42a99a8d
Commit
42a99a8d
authored
Sep 08, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Sep 08, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Track face styles added to a family.
parent
6dd9cdca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
font.c
dlls/dwrite/font.c
+12
-0
No files found.
dlls/dwrite/font.c
View file @
42a99a8d
...
...
@@ -107,6 +107,9 @@ struct dwrite_fontfamily_data {
struct
dwrite_font_data
**
fonts
;
UINT32
font_count
;
UINT32
font_alloc
;
BOOL
has_normal_face
:
1
;
BOOL
has_oblique_face
:
1
;
BOOL
has_italic_face
:
1
;
};
struct
dwrite_fontcollection
{
...
...
@@ -1936,6 +1939,12 @@ static HRESULT fontfamily_add_font(struct dwrite_fontfamily_data *family_data, s
family_data
->
fonts
[
family_data
->
font_count
]
=
font_data
;
family_data
->
font_count
++
;
if
(
font_data
->
style
==
DWRITE_FONT_STYLE_NORMAL
)
family_data
->
has_normal_face
=
TRUE
;
else
if
(
font_data
->
style
==
DWRITE_FONT_STYLE_OBLIQUE
)
family_data
->
has_oblique_face
=
TRUE
;
else
family_data
->
has_italic_face
=
TRUE
;
return
S_OK
;
}
...
...
@@ -2815,6 +2824,9 @@ static HRESULT init_fontfamily_data(IDWriteLocalizedStrings *familyname, struct
data
->
ref
=
1
;
data
->
font_count
=
0
;
data
->
font_alloc
=
2
;
data
->
has_normal_face
=
FALSE
;
data
->
has_oblique_face
=
FALSE
;
data
->
has_italic_face
=
FALSE
;
data
->
fonts
=
heap_alloc
(
sizeof
(
*
data
->
fonts
)
*
data
->
font_alloc
);
if
(
!
data
->
fonts
)
{
...
...
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