Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ce4b4148
Commit
ce4b4148
authored
Jun 21, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Implement GdipGetFamilyName.
parent
d5b8c9d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
font.c
dlls/gdiplus/font.c
+33
-0
gdiplus.spec
dlls/gdiplus/gdiplus.spec
+1
-1
gdiplusflat.h
include/gdiplusflat.h
+1
-0
No files found.
dlls/gdiplus/font.c
View file @
ce4b4148
...
...
@@ -219,6 +219,39 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
return
Ok
;
}
/*******************************************************************************
* GdipGetFamilyName [GDIPLUS.@]
*
* Returns the family name into name
*
* PARAMS
* *family [I] Family to retrieve from
* *name [O] WCHARS of the family name
* LANGID [I] charset
*
* RETURNS
* SUCCESS: Ok
* FAILURE: InvalidParameter if family is NULL
*
* NOTES
* If name is a NULL ptr, then both XP and Vista will crash (so we do as well)
*/
GpStatus
WINGDIPAPI
GdipGetFamilyName
(
GDIPCONST
GpFontFamily
*
family
,
WCHAR
*
name
,
LANGID
language
)
{
if
(
family
==
NULL
)
return
InvalidParameter
;
TRACE
(
"%p, %p, %d
\n
"
,
family
,
name
,
language
);
if
(
language
!=
LANG_NEUTRAL
)
FIXME
(
"No support for handling of multiple languages!
\n
"
);
lstrcpynW
(
name
,
family
->
FamilyName
,
LF_FACESIZE
);
return
Ok
;
}
/*****************************************************************************
* GdipDeleteFontFamily [GDIPLUS.@]
...
...
dlls/gdiplus/gdiplus.spec
View file @
ce4b4148
...
...
@@ -264,7 +264,7 @@
@ stub GdipGetEncoderParameterList
@ stub GdipGetEncoderParameterListSize
@ stub GdipGetFamily
@ st
ub GdipGetFamilyName
@ st
dcall GdipGetFamilyName(ptr ptr long)
@ stub GdipGetFontCollectionFamilyCount
@ stub GdipGetFontCollectionFamilyList
@ stub GdipGetFontHeight
...
...
include/gdiplusflat.h
View file @
ce4b4148
...
...
@@ -351,6 +351,7 @@ GpStatus WINGDIPAPI GdipCloneFont(GpFont*,GpFont**);
GpStatus
WINGDIPAPI
GdipCreateFontFamilyFromName
(
GDIPCONST
WCHAR
*
,
GpFontCollection
*
,
GpFontFamily
**
);
GpStatus
WINGDIPAPI
GdipDeleteFontFamily
(
GpFontFamily
*
);
GpStatus
WINGDIPAPI
GdipGetFamilyName
(
GDIPCONST
GpFontFamily
*
,
WCHAR
*
,
LANGID
);
GpStatus
WINGDIPAPI
GdipCreateStringFormat
(
INT
,
LANGID
,
GpStringFormat
**
);
GpStatus
WINGDIPAPI
GdipDeleteStringFormat
(
GpStringFormat
*
);
...
...
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