Lines Matching refs:fontFamily

300     HRESULT getByFamilyName(const WCHAR familyName[], IDWriteFontFamily** fontFamily) const;
301 HRESULT getDefaultFontFamily(IDWriteFontFamily** fontFamily) const;
306 IDWriteFontFamily* fontFamily) const;
323 IDWriteFontFamily* fontFamily) in SkFontStyleSet_DirectWrite() argument
325 , fFontFamily(SkRefComPtr(fontFamily)) in SkFontStyleSet_DirectWrite()
452 IDWriteFontFamily* fontFamily) const { in createTypefaceFromDWriteFont()
454 ProtoDWriteTypeface spec = { fontFace, font, fontFamily }; in createTypefaceFromDWriteFont()
457 face = DWriteFontTypeface::Create(fFactory.get(), fontFace, font, fontFamily); in createTypefaceFromDWriteFont()
470 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onGetFamilyName() local
471 HRVM(fFontCollection->GetFontFamily(index, &fontFamily), "Could not get requested family."); in onGetFamilyName()
474 HRVM(fontFamily->GetFamilyNames(&familyNames), "Could not get family names."); in onGetFamilyName()
480 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onCreateStyleSet() local
481 HRNM(fFontCollection->GetFontFamily(index, &fontFamily), "Could not get requested family."); in onCreateStyleSet()
483 return new SkFontStyleSet_DirectWrite(this, fontFamily.get()); in onCreateStyleSet()
536 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in DrawGlyphRun() local
537 HRM(font->GetFontFamily(&fontFamily), "Could not get family."); in DrawGlyphRun()
540 fontFamily.get()); in DrawGlyphRun()
800 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onMatchFamilyStyleCharacter() local
801 HRNM(font->GetFontFamily(&fontFamily), "Could not get family from font."); in onMatchFamilyStyleCharacter()
802 return this->createTypefaceFromDWriteFont(fontFace.get(), font.get(), fontFamily.get()); in onMatchFamilyStyleCharacter()
891 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onCreateFromStream() local
892 HRN(fontCollection->GetFontFamily(familyIndex, &fontFamily)); in onCreateFromStream()
894 UINT32 fontCount = fontFamily->GetFontCount(); in onCreateFromStream()
897 HRN(fontFamily->GetFont(fontIndex, &font)); in onCreateFromStream()
908 fontFace.get(), font.get(), fontFamily.get(), in onCreateFromStream()
927 IDWriteFontFamily** fontFamily) const { in getByFamilyName()
933 HR(fFontCollection->GetFontFamily(index, fontFamily)); in getByFamilyName()
938 HRESULT SkFontMgr_DirectWrite::getDefaultFontFamily(IDWriteFontFamily** fontFamily) const { in getDefaultFontFamily()
944 HRM(this->getByFamilyName(metrics.lfMessageFont.lfFaceName, fontFamily), in getDefaultFontFamily()
951 SkTScopedComPtr<IDWriteFontFamily> fontFamily; in onLegacyCreateTypeface() local
955 this->getByFamilyName(wideFamilyName, &fontFamily); in onLegacyCreateTypeface()
959 if (nullptr == fontFamily.get()) { in onLegacyCreateTypeface()
961 this->getDefaultFontFamily(&fontFamily); in onLegacyCreateTypeface()
964 if (nullptr == fontFamily.get()) { in onLegacyCreateTypeface()
966 HRNM(fFontCollection->GetFontFamily(0, &fontFamily), in onLegacyCreateTypeface()
972 HRNM(fontFamily->GetFirstMatchingFont(dwStyle.fWeight, dwStyle.fWidth, dwStyle.fSlant, &font), in onLegacyCreateTypeface()
978 return this->createTypefaceFromDWriteFont(fontFace.get(), font.get(), fontFamily.get()); in onLegacyCreateTypeface()