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
ea323d13
Commit
ea323d13
authored
Nov 24, 2008
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipNewPrivateFontCollection and GdipDeletePrivateFontCollection.
parent
c04b7c5b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
font.c
dlls/gdiplus/font.c
+14
-4
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+2
-1
No files found.
dlls/gdiplus/font.c
View file @
ea323d13
...
...
@@ -789,12 +789,17 @@ GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamil
*/
GpStatus
WINGDIPAPI
GdipNewPrivateFontCollection
(
GpFontCollection
**
fontCollection
)
{
FIXME
(
"stub
%p
\n
"
,
fontCollection
);
TRACE
(
"
%p
\n
"
,
fontCollection
);
if
(
!
fontCollection
)
return
InvalidParameter
;
return
NotImplemented
;
*
fontCollection
=
GdipAlloc
(
sizeof
(
GpFontCollection
));
if
(
!*
fontCollection
)
return
OutOfMemory
;
(
*
fontCollection
)
->
FontFamilies
=
NULL
;
(
*
fontCollection
)
->
count
=
0
;
return
Ok
;
}
/*****************************************************************************
...
...
@@ -802,12 +807,17 @@ GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection** fontCollecti
*/
GpStatus
WINGDIPAPI
GdipDeletePrivateFontCollection
(
GpFontCollection
**
fontCollection
)
{
FIXME
(
"stub %p
\n
"
,
fontCollection
);
INT
i
;
TRACE
(
"%p
\n
"
,
fontCollection
);
if
(
!
fontCollection
)
return
InvalidParameter
;
return
NotImplemented
;
for
(
i
=
0
;
i
<
(
*
fontCollection
)
->
count
;
i
++
)
GdipFree
((
*
fontCollection
)
->
FontFamilies
[
i
]);
GdipFree
(
*
fontCollection
);
return
Ok
;
}
/*****************************************************************************
...
...
dlls/gdiplus/gdiplus_private.h
View file @
ea323d13
...
...
@@ -225,7 +225,8 @@ struct GpStringFormat{
};
struct
GpFontCollection
{
GpFontFamily
*
FontFamilies
;
GpFontFamily
**
FontFamilies
;
INT
count
;
};
struct
GpFontFamily
{
...
...
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