Lines Matching refs:fontFamily
308 HRESULT getByFamilyName(const WCHAR familyName[], IDWriteFontFamily** fontFamily) const;
309 HRESULT getDefaultFontFamily(IDWriteFontFamily** fontFamily) const;
314 IDWriteFontFamily* fontFamily) const;
331 IDWriteFontFamily* fontFamily) in SkFontStyleSet_DirectWrite() argument
333 , fFontFamily(SkRefComPtr(fontFamily)) in SkFontStyleSet_DirectWrite()
460 IDWriteFontFamily* fontFamily) const { in makeTypefaceFromDWriteFont()
462 ProtoDWriteTypeface spec = { fontFace, font, fontFamily }; in makeTypefaceFromDWriteFont()
465 face = DWriteFontTypeface::Make(fFactory.get(), fontFace, font, fontFamily); in makeTypefaceFromDWriteFont()
478 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onGetFamilyName() local
479 HRVM(fFontCollection->GetFontFamily(index, &fontFamily), "Could not get requested family."); in onGetFamilyName()
482 HRVM(fontFamily->GetFamilyNames(&familyNames), "Could not get family names."); in onGetFamilyName()
488 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onCreateStyleSet() local
489 HRNM(fFontCollection->GetFontFamily(index, &fontFamily), "Could not get requested family."); in onCreateStyleSet()
491 return new SkFontStyleSet_DirectWrite(this, fontFamily.get()); in onCreateStyleSet()
548 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in DrawGlyphRun() local
549 HRM(font->GetFontFamily(&fontFamily), "Could not get family."); in DrawGlyphRun()
552 fontFamily.get()).release(); in DrawGlyphRun()
812 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onMatchFamilyStyleCharacter() local
813 HRNM(font->GetFontFamily(&fontFamily), "Could not get family from font."); in onMatchFamilyStyleCharacter()
814 … return this->makeTypefaceFromDWriteFont(fontFace.get(), font.get(), fontFamily.get()).release(); in onMatchFamilyStyleCharacter()
904 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onMakeFromStreamIndex() local
905 HRN(fontCollection->GetFontFamily(familyIndex, &fontFamily)); in onMakeFromStreamIndex()
907 UINT32 fontCount = fontFamily->GetFontCount(); in onMakeFromStreamIndex()
910 HRN(fontFamily->GetFont(fontIndex, &font)); in onMakeFromStreamIndex()
921 fontFace.get(), font.get(), fontFamily.get(), in onMakeFromStreamIndex()
953 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onMakeFromStreamArgs() local
954 HRN(fontCollection->GetFontFamily(familyIndex, &fontFamily)); in onMakeFromStreamArgs()
956 UINT32 fontCount = fontFamily->GetFontCount(); in onMakeFromStreamArgs()
959 HRN(fontFamily->GetFont(fontIndex, &font)); in onMakeFromStreamArgs()
1009 fFactory.get(), fontFace.get(), font.get(), fontFamily.get(), in onMakeFromStreamArgs()
1027 IDWriteFontFamily** fontFamily) const { in getByFamilyName()
1033 HR(fFontCollection->GetFontFamily(index, fontFamily)); in getByFamilyName()
1038 HRESULT SkFontMgr_DirectWrite::getDefaultFontFamily(IDWriteFontFamily** fontFamily) const { in getDefaultFontFamily()
1044 HRM(this->getByFamilyName(metrics.lfMessageFont.lfFaceName, fontFamily), in getDefaultFontFamily()
1051 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onLegacyMakeTypeface() local
1055 this->getByFamilyName(wideFamilyName, &fontFamily); in onLegacyMakeTypeface()
1059 if (nullptr == fontFamily.get()) { in onLegacyMakeTypeface()
1061 this->getDefaultFontFamily(&fontFamily); in onLegacyMakeTypeface()
1064 if (nullptr == fontFamily.get()) { in onLegacyMakeTypeface()
1066 HRNM(fFontCollection->GetFontFamily(0, &fontFamily), in onLegacyMakeTypeface()
1072 HRNM(fontFamily->GetFirstMatchingFont(dwStyle.fWeight, dwStyle.fWidth, dwStyle.fSlant, &font), in onLegacyMakeTypeface()
1078 return this->makeTypefaceFromDWriteFont(fontFace.get(), font.get(), fontFamily.get()); in onLegacyMakeTypeface()