- Sync gdiplus with Wine head
[reactos.git] / reactos / dll / win32 / gdiplus / font.c
1 /*
2 * Copyright (C) 2007 Google (Evan Stade)
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19 #include <stdarg.h>
20
21 #include "windef.h"
22 #include "winbase.h"
23 #include "wingdi.h"
24 #include "winnls.h"
25 #include "winreg.h"
26 #include "wine/debug.h"
27 #include "wine/unicode.h"
28
29 WINE_DEFAULT_DEBUG_CHANNEL (gdiplus);
30
31 #include "objbase.h"
32
33 #include "gdiplus.h"
34 #include "gdiplus_private.h"
35
36 static const REAL mm_per_inch = 25.4;
37 static const REAL inch_per_point = 1.0/72.0;
38
39 static inline REAL get_dpi (void)
40 {
41 REAL dpi;
42 GpGraphics *graphics;
43 HDC hdc = GetDC(0);
44 GdipCreateFromHDC (hdc, &graphics);
45 GdipGetDpiX(graphics, &dpi);
46 GdipDeleteGraphics(graphics);
47 ReleaseDC (0, hdc);
48
49 return dpi;
50 }
51
52 static inline REAL point_to_pixel (REAL point)
53 {
54 return point * get_dpi() * inch_per_point;
55 }
56
57 static inline REAL inch_to_pixel (REAL inch)
58 {
59 return inch * get_dpi();
60 }
61
62 static inline REAL document_to_pixel (REAL doc)
63 {
64 return doc * (get_dpi() / 300.0); /* Per MSDN */
65 }
66
67 static inline REAL mm_to_pixel (REAL mm)
68 {
69 return mm * (get_dpi() / mm_per_inch);
70 }
71
72 /*******************************************************************************
73 * GdipCreateFont [GDIPLUS.@]
74 *
75 * Create a new font based off of a FontFamily
76 *
77 * PARAMS
78 * *fontFamily [I] Family to base the font off of
79 * emSize [I] Size of the font
80 * style [I] Bitwise OR of FontStyle enumeration
81 * unit [I] Unit emSize is measured in
82 * **font [I] the resulting Font object
83 *
84 * RETURNS
85 * SUCCESS: Ok
86 * FAILURE: InvalidParameter if fontfamily or font is NULL.
87 * FAILURE: FontFamilyNotFound if an invalid FontFamily is given
88 *
89 * NOTES
90 * UnitDisplay is unsupported.
91 * emSize is stored separately from lfHeight, to hold the fraction.
92 */
93 GpStatus WINGDIPAPI GdipCreateFont(GDIPCONST GpFontFamily *fontFamily,
94 REAL emSize, INT style, Unit unit, GpFont **font)
95 {
96 WCHAR facename[LF_FACESIZE];
97 LOGFONTW* lfw;
98 const NEWTEXTMETRICW* tmw;
99 GpStatus stat;
100
101 if (!fontFamily || !font)
102 return InvalidParameter;
103
104 TRACE("%p (%s), %f, %d, %d, %p\n", fontFamily,
105 debugstr_w(fontFamily->FamilyName), emSize, style, unit, font);
106
107 stat = GdipGetFamilyName (fontFamily, facename, 0);
108 if (stat != Ok) return stat;
109 *font = GdipAlloc(sizeof(GpFont));
110
111 tmw = &fontFamily->tmw;
112 lfw = &((*font)->lfw);
113 ZeroMemory(&(*lfw), sizeof(*lfw));
114
115 lfw->lfWeight = tmw->tmWeight;
116 lfw->lfItalic = tmw->tmItalic;
117 lfw->lfUnderline = tmw->tmUnderlined;
118 lfw->lfStrikeOut = tmw->tmStruckOut;
119 lfw->lfCharSet = tmw->tmCharSet;
120 lfw->lfPitchAndFamily = tmw->tmPitchAndFamily;
121 lstrcpynW(lfw->lfFaceName, facename, LF_FACESIZE);
122
123 switch (unit)
124 {
125 case UnitWorld:
126 /* FIXME: Figure out when World != Pixel */
127 lfw->lfHeight = emSize; break;
128 case UnitDisplay:
129 FIXME("Unknown behavior for UnitDisplay! Please report!\n");
130 /* FIXME: Figure out how this works...
131 * MSDN says that if "DISPLAY" is a monitor, then pixel should be
132 * used. That's not what I got. Tests on Windows revealed no output,
133 * and the tests in tests/font crash windows */
134 lfw->lfHeight = 0; break;
135 case UnitPixel:
136 lfw->lfHeight = emSize; break;
137 case UnitPoint:
138 lfw->lfHeight = point_to_pixel(emSize); break;
139 case UnitInch:
140 lfw->lfHeight = inch_to_pixel(emSize); break;
141 case UnitDocument:
142 lfw->lfHeight = document_to_pixel(emSize); break;
143 case UnitMillimeter:
144 lfw->lfHeight = mm_to_pixel(emSize); break;
145 }
146
147 lfw->lfHeight *= -1;
148
149 lfw->lfWeight = style & FontStyleBold ? 700 : 400;
150 lfw->lfItalic = style & FontStyleItalic;
151 lfw->lfUnderline = style & FontStyleUnderline;
152 lfw->lfStrikeOut = style & FontStyleStrikeout;
153
154 (*font)->unit = unit;
155 (*font)->emSize = emSize;
156
157 return Ok;
158 }
159
160 /*******************************************************************************
161 * GdipCreateFontFromLogfontW [GDIPLUS.@]
162 */
163 GpStatus WINGDIPAPI GdipCreateFontFromLogfontW(HDC hdc,
164 GDIPCONST LOGFONTW *logfont, GpFont **font)
165 {
166 HFONT hfont, oldfont;
167 TEXTMETRICW textmet;
168
169 if(!logfont || !font)
170 return InvalidParameter;
171
172 *font = GdipAlloc(sizeof(GpFont));
173 if(!*font) return OutOfMemory;
174
175 memcpy((*font)->lfw.lfFaceName, logfont->lfFaceName, LF_FACESIZE *
176 sizeof(WCHAR));
177 (*font)->lfw.lfHeight = logfont->lfHeight;
178 (*font)->lfw.lfItalic = logfont->lfItalic;
179 (*font)->lfw.lfUnderline = logfont->lfUnderline;
180 (*font)->lfw.lfStrikeOut = logfont->lfStrikeOut;
181
182 (*font)->emSize = logfont->lfHeight;
183 (*font)->unit = UnitPixel;
184
185 hfont = CreateFontIndirectW(&(*font)->lfw);
186 oldfont = SelectObject(hdc, hfont);
187 GetTextMetricsW(hdc, &textmet);
188
189 (*font)->lfw.lfHeight = -textmet.tmHeight;
190 (*font)->lfw.lfWeight = textmet.tmWeight;
191
192 SelectObject(hdc, oldfont);
193 DeleteObject(hfont);
194
195 return Ok;
196 }
197
198 /*******************************************************************************
199 * GdipCreateFontFromLogfontA [GDIPLUS.@]
200 */
201 GpStatus WINGDIPAPI GdipCreateFontFromLogfontA(HDC hdc,
202 GDIPCONST LOGFONTA *lfa, GpFont **font)
203 {
204 LOGFONTW lfw;
205
206 if(!lfa || !font)
207 return InvalidParameter;
208
209 memcpy(&lfw, lfa, FIELD_OFFSET(LOGFONTA,lfFaceName) );
210
211 if(!MultiByteToWideChar(CP_ACP, 0, lfa->lfFaceName, -1, lfw.lfFaceName, LF_FACESIZE))
212 return GenericError;
213
214 GdipCreateFontFromLogfontW(hdc, &lfw, font);
215
216 return Ok;
217 }
218
219 /*******************************************************************************
220 * GdipDeleteFont [GDIPLUS.@]
221 */
222 GpStatus WINGDIPAPI GdipDeleteFont(GpFont* font)
223 {
224 if(!font)
225 return InvalidParameter;
226
227 GdipFree(font);
228
229 return Ok;
230 }
231
232 /*******************************************************************************
233 * GdipCreateFontFromDC [GDIPLUS.@]
234 */
235 GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font)
236 {
237 HFONT hfont;
238 LOGFONTW lfw;
239
240 if(!font)
241 return InvalidParameter;
242
243 hfont = (HFONT)GetCurrentObject(hdc, OBJ_FONT);
244 if(!hfont)
245 return GenericError;
246
247 if(!GetObjectW(hfont, sizeof(LOGFONTW), &lfw))
248 return GenericError;
249
250 return GdipCreateFontFromLogfontW(hdc, &lfw, font);
251 }
252
253 /******************************************************************************
254 * GdipGetFontSize [GDIPLUS.@]
255 *
256 * Returns the size of the font in Units
257 *
258 * PARAMS
259 * *font [I] The font to retrieve size from
260 * *size [O] Pointer to hold retrieved value
261 *
262 * RETURNS
263 * SUCCESS: Ok
264 * FAILURE: InvalidParamter (font or size was NULL)
265 *
266 * NOTES
267 * Size returned is actually emSize -- not internal size used for drawing.
268 */
269 GpStatus WINGDIPAPI GdipGetFontSize(GpFont *font, REAL *size)
270 {
271 if (!(font && size)) return InvalidParameter;
272
273 *size = font->emSize;
274
275 return Ok;
276 }
277
278 /*******************************************************************************
279 * GdipGetFontUnit [GDIPLUS.@]
280 *
281 * PARAMS
282 * font [I] Font to retrieve from
283 * unit [O] Return value
284 *
285 * RETURNS
286 * FAILURE: font or unit was NULL
287 * OK: otherwise
288 */
289 GpStatus WINGDIPAPI GdipGetFontUnit(GpFont *font, Unit *unit)
290 {
291 if (!(font && unit)) return InvalidParameter;
292
293 *unit = font->unit;
294
295 return Ok;
296 }
297
298 /*******************************************************************************
299 * GdipGetLogFontW [GDIPLUS.@]
300 */
301 GpStatus WINGDIPAPI GdipGetLogFontW(GpFont *font, GpGraphics *graphics,
302 LOGFONTW *lfw)
303 {
304 /* FIXME: use graphics */
305 if(!font || !graphics || !lfw)
306 return InvalidParameter;
307
308 *lfw = font->lfw;
309
310 return Ok;
311 }
312
313 /*******************************************************************************
314 * GdipCloneFont [GDIPLUS.@]
315 */
316 GpStatus WINGDIPAPI GdipCloneFont(GpFont *font, GpFont **cloneFont)
317 {
318 if(!font || !cloneFont)
319 return InvalidParameter;
320
321 *cloneFont = GdipAlloc(sizeof(GpFont));
322 if(!*cloneFont) return OutOfMemory;
323
324 **cloneFont = *font;
325
326 return Ok;
327 }
328
329 /*******************************************************************************
330 * GdipGetFontHeightGivenDPI [GDIPLUS.@]
331 * PARAMS
332 * font [I] Font to retrieve DPI from
333 * dpi [I] DPI to assume
334 * height [O] Return value
335 *
336 * RETURNS
337 * SUCCESS: Ok
338 * FAILURE: InvalidParameter if font or height is NULL
339 *
340 * NOTES
341 * According to MSDN, the result is (lineSpacing)*(fontSize / emHeight)*dpi
342 * (for anything other than unit Pixel)
343 */
344 GpStatus WINGDIPAPI GdipGetFontHeightGivenDPI(GDIPCONST GpFont *font, REAL dpi, REAL *height)
345 {
346 if (!(font && height)) return InvalidParameter;
347
348 FIXME("%p (%s), %f, %p\n", font,
349 debugstr_w(font->lfw.lfFaceName), dpi, height);
350
351 return NotImplemented;
352 }
353
354 /***********************************************************************
355 * Borrowed from GDI32:
356 *
357 * Elf is really an ENUMLOGFONTEXW, and ntm is a NEWTEXTMETRICEXW.
358 * We have to use other types because of the FONTENUMPROCW definition.
359 */
360 static INT CALLBACK is_font_installed_proc(const LOGFONTW *elf,
361 const TEXTMETRICW *ntm, DWORD type, LPARAM lParam)
362 {
363 if (!ntm)
364 {
365 return 1;
366 }
367
368 *(NEWTEXTMETRICW*)lParam = *(const NEWTEXTMETRICW*)ntm;
369
370 return 0;
371 }
372
373 static BOOL find_installed_font(const WCHAR *name, NEWTEXTMETRICW *ntm)
374 {
375 HDC hdc = GetDC(0);
376 BOOL ret = FALSE;
377
378 if(!EnumFontFamiliesW(hdc, name, is_font_installed_proc, (LPARAM)ntm))
379 ret = TRUE;
380
381 ReleaseDC(0, hdc);
382 return ret;
383 }
384
385 /*******************************************************************************
386 * GdipCreateFontFamilyFromName [GDIPLUS.@]
387 *
388 * Creates a font family object based on a supplied name
389 *
390 * PARAMS
391 * name [I] Name of the font
392 * fontCollection [I] What font collection (if any) the font belongs to (may be NULL)
393 * FontFamily [O] Pointer to the resulting FontFamily object
394 *
395 * RETURNS
396 * SUCCESS: Ok
397 * FAILURE: FamilyNotFound if the requested FontFamily does not exist on the system
398 * FAILURE: Invalid parameter if FontFamily or name is NULL
399 *
400 * NOTES
401 * If fontCollection is NULL then the object is not part of any collection
402 *
403 */
404
405 GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
406 GpFontCollection *fontCollection,
407 GpFontFamily **FontFamily)
408 {
409 GpFontFamily* ffamily;
410 NEWTEXTMETRICW ntm;
411
412 TRACE("%s, %p %p\n", debugstr_w(name), fontCollection, FontFamily);
413
414 if (!(name && FontFamily))
415 return InvalidParameter;
416 if (fontCollection)
417 FIXME("No support for FontCollections yet!\n");
418
419 if (!find_installed_font(name, &ntm))
420 return FontFamilyNotFound;
421
422 ffamily = GdipAlloc(sizeof (GpFontFamily));
423 if (!ffamily) return OutOfMemory;
424
425 ffamily->tmw = ntm;
426 lstrcpynW(ffamily->FamilyName, name, LF_FACESIZE);
427
428 *FontFamily = ffamily;
429
430 return Ok;
431 }
432
433 /*******************************************************************************
434 * GdipCloneFontFamily [GDIPLUS.@]
435 *
436 * Creates a deep copy of a Font Family object
437 *
438 * PARAMS
439 * FontFamily [I] Font to clone
440 * clonedFontFamily [O] The resulting cloned font
441 *
442 * RETURNS
443 * SUCCESS: Ok
444 */
445 GpStatus WINGDIPAPI GdipCloneFontFamily(GpFontFamily* FontFamily, GpFontFamily** clonedFontFamily)
446 {
447 if (!(FontFamily && clonedFontFamily)) return InvalidParameter;
448
449 TRACE("stub: %p (%s), %p\n", FontFamily,
450 debugstr_w(FontFamily->FamilyName), clonedFontFamily);
451
452 *clonedFontFamily = GdipAlloc(sizeof(GpFontFamily));
453 if (!*clonedFontFamily) return OutOfMemory;
454
455 (*clonedFontFamily)->tmw = FontFamily->tmw;
456 lstrcpyW((*clonedFontFamily)->FamilyName, FontFamily->FamilyName);
457
458 return Ok;
459 }
460
461 /*******************************************************************************
462 * GdipGetFamilyName [GDIPLUS.@]
463 *
464 * Returns the family name into name
465 *
466 * PARAMS
467 * *family [I] Family to retrieve from
468 * *name [O] WCHARS of the family name
469 * LANGID [I] charset
470 *
471 * RETURNS
472 * SUCCESS: Ok
473 * FAILURE: InvalidParameter if family is NULL
474 *
475 * NOTES
476 * If name is a NULL ptr, then both XP and Vista will crash (so we do as well)
477 */
478 GpStatus WINGDIPAPI GdipGetFamilyName (GDIPCONST GpFontFamily *family,
479 WCHAR *name, LANGID language)
480 {
481 if (family == NULL)
482 return InvalidParameter;
483
484 TRACE("%p, %p, %d\n", family, name, language);
485
486 if (language != LANG_NEUTRAL)
487 FIXME("No support for handling of multiple languages!\n");
488
489 lstrcpynW (name, family->FamilyName, LF_FACESIZE);
490
491 return Ok;
492 }
493
494
495 /*****************************************************************************
496 * GdipDeleteFontFamily [GDIPLUS.@]
497 *
498 * Removes the specified FontFamily
499 *
500 * PARAMS
501 * *FontFamily [I] The family to delete
502 *
503 * RETURNS
504 * SUCCESS: Ok
505 * FAILURE: InvalidParameter if FontFamily is NULL.
506 *
507 */
508 GpStatus WINGDIPAPI GdipDeleteFontFamily(GpFontFamily *FontFamily)
509 {
510 if (!FontFamily)
511 return InvalidParameter;
512 TRACE("Deleting %p (%s)\n", FontFamily, debugstr_w(FontFamily->FamilyName));
513
514 GdipFree (FontFamily);
515
516 return Ok;
517 }
518
519 GpStatus WINGDIPAPI GdipGetCellAscent(GDIPCONST GpFontFamily *family,
520 INT style, UINT16* CellAscent)
521 {
522 if (!(family && CellAscent)) return InvalidParameter;
523
524 *CellAscent = family->tmw.tmAscent;
525
526 return Ok;
527 }
528
529 GpStatus WINGDIPAPI GdipGetCellDescent(GDIPCONST GpFontFamily *family,
530 INT style, UINT16* CellDescent)
531 {
532 if (!(family && CellDescent)) return InvalidParameter;
533
534 *CellDescent = family->tmw.tmDescent;
535
536 return Ok;
537 }
538
539 /*******************************************************************************
540 * GdipGetEmHeight [GDIPLUS.@]
541 *
542 * Gets the height of the specified family in EmHeights
543 *
544 * PARAMS
545 * family [I] Family to retrieve from
546 * style [I] (optional) style
547 * EmHeight [O] return value
548 *
549 * RETURNS
550 * SUCCESS: Ok
551 * FAILURE: InvalidParameter
552 */
553 GpStatus WINGDIPAPI GdipGetEmHeight(GDIPCONST GpFontFamily *family, INT style, UINT16* EmHeight)
554 {
555 if (!(family && EmHeight)) return InvalidParameter;
556
557 TRACE("%p (%s), %d, %p, stub!\n", family,
558 debugstr_w(family->FamilyName), style, EmHeight);
559
560 *EmHeight = family->tmw.ntmSizeEM;
561
562 return Ok;
563 }
564
565
566 /*******************************************************************************
567 * GdipGetLineSpacing [GDIPLUS.@]
568 *
569 * Returns the line spacing in design units
570 *
571 * PARAMS
572 * family [I] Family to retrieve from
573 * style [I] (Optional) font style
574 * LineSpacing [O] Return value
575 *
576 * RETURNS
577 * SUCCESS: Ok
578 * FAILURE: InvalidParameter (family or LineSpacing was NULL)
579 */
580 GpStatus WINGDIPAPI GdipGetLineSpacing(GDIPCONST GpFontFamily *family,
581 INT style, UINT16* LineSpacing)
582 {
583 if (!(family && LineSpacing)) return InvalidParameter;
584
585 FIXME("stub!\n");
586
587 return NotImplemented;
588 }
589
590 GpStatus WINGDIPAPI GdipIsStyleAvailable(GDIPCONST GpFontFamily* family,
591 INT style, BOOL* IsStyleAvailable)
592 {
593 FIXME("%p %d %p stub!\n", family, style, IsStyleAvailable);
594
595 if (!(family && IsStyleAvailable))
596 return InvalidParameter;
597
598 return NotImplemented;
599 }
600
601 /*****************************************************************************
602 * GdipGetGenericFontFamilyMonospace [GDIPLUS.@]
603 *
604 * Obtains a serif family (Courier New on Windows)
605 *
606 * PARAMS
607 * **nativeFamily [I] Where the font will be stored
608 *
609 * RETURNS
610 * InvalidParameter if nativeFamily is NULL.
611 * Ok otherwise.
612 */
613 GpStatus WINGDIPAPI GdipGetGenericFontFamilyMonospace(GpFontFamily **nativeFamily)
614 {
615 static const WCHAR CourierNew[] = {'C','o','u','r','i','e','r',' ','N','e','w','\0'};
616
617 if (nativeFamily == NULL) return InvalidParameter;
618
619 return GdipCreateFontFamilyFromName(CourierNew, NULL, nativeFamily);
620 }
621
622 /*****************************************************************************
623 * GdipGetGenericFontFamilySerif [GDIPLUS.@]
624 *
625 * Obtains a serif family (Times New Roman on Windows)
626 *
627 * PARAMS
628 * **nativeFamily [I] Where the font will be stored
629 *
630 * RETURNS
631 * InvalidParameter if nativeFamily is NULL.
632 * Ok otherwise.
633 */
634 GpStatus WINGDIPAPI GdipGetGenericFontFamilySerif(GpFontFamily **nativeFamily)
635 {
636 static const WCHAR TimesNewRoman[] = {'T','i','m','e','s',' ','N','e','w',' ','R','o','m','a','n','\0'};
637
638 if (nativeFamily == NULL) return InvalidParameter;
639
640 return GdipCreateFontFamilyFromName(TimesNewRoman, NULL, nativeFamily);
641 }
642
643 /*****************************************************************************
644 * GdipGetGenericFontFamilySansSerif [GDIPLUS.@]
645 *
646 * Obtains a serif family (Microsoft Sans Serif on Windows)
647 *
648 * PARAMS
649 * **nativeFamily [I] Where the font will be stored
650 *
651 * RETURNS
652 * InvalidParameter if nativeFamily is NULL.
653 * Ok otherwise.
654 */
655 GpStatus WINGDIPAPI GdipGetGenericFontFamilySansSerif(GpFontFamily **nativeFamily)
656 {
657 /* FIXME: On Windows this is called Microsoft Sans Serif, this shouldn't
658 * affect anything */
659 static const WCHAR MSSansSerif[] = {'M','S',' ','S','a','n','s',' ','S','e','r','i','f','\0'};
660
661 if (nativeFamily == NULL) return InvalidParameter;
662
663 return GdipCreateFontFamilyFromName(MSSansSerif, NULL, nativeFamily);
664 }
665
666 /*****************************************************************************
667 * GdipGetGenericFontFamilySansSerif [GDIPLUS.@]
668 */
669 GpStatus WINGDIPAPI GdipNewPrivateFontCollection(GpFontCollection** fontCollection)
670 {
671 FIXME("stub %p\n", fontCollection);
672
673 if (!fontCollection)
674 return InvalidParameter;
675
676 return NotImplemented;
677 }
678
679 /*****************************************************************************
680 * GdipDeletePrivateFontCollection [GDIPLUS.@]
681 */
682 GpStatus WINGDIPAPI GdipDeletePrivateFontCollection(GpFontCollection **fontCollection)
683 {
684 FIXME("stub %p\n", fontCollection);
685
686 if (!fontCollection)
687 return InvalidParameter;
688
689 return NotImplemented;
690 }
691
692 /*****************************************************************************
693 * GdipPrivateAddFontFile [GDIPLUS.@]
694 */
695 GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection* fontCollection,
696 GDIPCONST WCHAR* filename)
697 {
698 FIXME("stub: %p, %s\n", fontCollection, debugstr_w(filename));
699
700 if (!(fontCollection && filename))
701 return InvalidParameter;
702
703 return NotImplemented;
704 }
705
706 /*****************************************************************************
707 * GdipGetFontCollectionFamilyCount [GDIPLUS.@]
708 */
709 GpStatus WINGDIPAPI GdipGetFontCollectionFamilyCount(
710 GpFontCollection* fontCollection, INT* numFound)
711 {
712 FIXME("stub: %p, %p\n", fontCollection, numFound);
713
714 if (!(fontCollection && numFound))
715 return InvalidParameter;
716
717 return NotImplemented;
718 }
719
720 /*****************************************************************************
721 * GdipGetFontCollectionFamilyList [GDIPLUS.@]
722 */
723 GpStatus WINGDIPAPI GdipGetFontCollectionFamilyList(
724 GpFontCollection* fontCollection, INT numSought,
725 GpFontFamily* gpfamilies[], INT* numFound)
726 {
727 FIXME("stub: %p, %d, %p, %p\n", fontCollection, numSought, gpfamilies,
728 numFound);
729
730 if (!(fontCollection && gpfamilies && numFound))
731 return InvalidParameter;
732
733 return NotImplemented;
734 }