Lines Matching refs:family

81     GpFontFamily *family;  in test_long_name()  local
98 stat = GdipGetFontCollectionFamilyList(fonts, num_families, &family, &num_families); in test_long_name()
101 stat = GdipGetFamilyName(family, family_name, LANG_NEUTRAL); in test_long_name()
104 stat = GdipCreateFont(family, 256.0, FontStyleRegular, UnitPixel, &font); in test_long_name()
175 GpFontFamily *family; in test_logfont() local
258 stat = GdipGetFamily(font, &family); in test_logfont()
260 stat = GdipGetEmHeight(family, FontStyleRegular, &em_height); in test_logfont()
263 stat = GdipGetLineSpacing(family, FontStyleRegular, &line_spacing); in test_logfont()
266 GdipDeleteFontFamily(family); in test_logfont()
291 stat = GdipGetFamily(font, &family); in test_logfont()
293 stat = GdipGetEmHeight(family, FontStyleRegular, &em_height); in test_logfont()
296 stat = GdipGetLineSpacing(family, FontStyleRegular, &line_spacing); in test_logfont()
299 GdipDeleteFontFamily(family); in test_logfont()
309 GpFontFamily *family, *clonedFontFamily; in test_fontfamily() local
320 stat = GdipCreateFontFamilyFromName (nonexistent, NULL, &family); in test_fontfamily()
324 stat = GdipCreateFontFamilyFromName (MSSansSerif, NULL, &family); in test_fontfamily()
326 if(stat == Ok) GdipDeleteFontFamily(family); in test_fontfamily()
328 stat = GdipCreateFontFamilyFromName (Tahoma, NULL, &family); in test_fontfamily()
331 stat = GdipGetFamilyName (family, itsName, LANG_NEUTRAL); in test_fontfamily()
338 stat = GdipGetFamilyName (family, NULL, LANG_NEUTRAL); in test_fontfamily()
344 stat = GdipCloneFontFamily(family, &clonedFontFamily); in test_fontfamily()
346 GdipDeleteFontFamily(family); in test_fontfamily()
405 static void check_family(const char* context, GpFontFamily *family, WCHAR *name) in check_family() argument
411 stat = GdipGetFamilyName(family, name, LANG_NEUTRAL); in check_family()
414 stat = GdipCreateFont(family, 12, FontStyleRegular, UnitPixel, &font); in check_family()
422 stat = GdipDeleteFontFamily(family); in check_family()
429 GpFontFamily *family; in test_getgenerics() local
433 stat = GdipGetGenericFontFamilySansSerif(&family); in test_getgenerics()
438 check_family("Sans Serif", family, sansname); in test_getgenerics()
440 stat = GdipGetGenericFontFamilySerif(&family); in test_getgenerics()
445 check_family("Serif", family, serifname); in test_getgenerics()
447 stat = GdipGetGenericFontFamilyMonospace(&family); in test_getgenerics()
452 check_family("Monospace", family, mononame); in test_getgenerics()
618 GpFontFamily *family; in gdip_get_font_metrics() local
637 stat = GdipGetFamily(font, &family); in gdip_get_font_metrics()
640 stat = GdipGetEmHeight(family, style, &fm->em_height); in gdip_get_font_metrics()
642 stat = GdipGetLineSpacing(family, style, &fm->line_spacing); in gdip_get_font_metrics()
644 stat = GdipGetCellAscent(family, style, &fm->ascent); in gdip_get_font_metrics()
646 stat = GdipGetCellDescent(family, style, &fm->descent); in gdip_get_font_metrics()
649 GdipDeleteFontFamily(family); in gdip_get_font_metrics()
671 GpFontFamily *family; in test_font_metrics() local
766 stat = GdipCreateFontFamilyFromName(Tahoma, NULL, &family); in test_font_metrics()
770 stat = GdipCreateFont(family, 13.0, FontStyleRegular, UnitPixel, &font); in test_font_metrics()
798 stat = GdipCreateFont(family, -13.0, FontStyleRegular, UnitPixel, &font); in test_font_metrics()
801 GdipDeleteFontFamily(family); in test_font_metrics()
817 GpFontFamily *family; in test_font_substitution() local
842 status = GdipCreateFontFamilyFromName(ms_shell_dlg, NULL, &family); in test_font_substitution()
844 status = GdipCreateFont(family, 12, FontStyleRegular, UnitPoint, &font); in test_font_substitution()
852 GdipDeleteFontFamily(family); in test_font_substitution()
854 status = GdipCreateFontFamilyFromName(nonexistent, NULL, &family); in test_font_substitution()
1190 GpFontFamily *family, *family2; in test_GdipGetFontCollectionFamilyList() local
1224 family = NULL; in test_GdipGetFontCollectionFamilyList()
1226 status = GdipGetFontCollectionFamilyList(collection, 1, &family, &found); in test_GdipGetFontCollectionFamilyList()
1229 ok(family != NULL, "Expected family instance.\n"); in test_GdipGetFontCollectionFamilyList()
1231 family = NULL; in test_GdipGetFontCollectionFamilyList()
1236 ok(family2 != family, "Unexpected family instance.\n"); in test_GdipGetFontCollectionFamilyList()
1238 GdipDeleteFontFamily(family); in test_GdipGetFontCollectionFamilyList()