Lines Matching defs:font
95 HRESULT FontToIdentity(IDWriteFont* font, SkFontIdentity* fontId) const {
97 HRM(font->CreateFontFace(&fontFace), "Could not create font face.");
122 fontId->fFontStyle = get_style(font);
136 SkTScopedComPtr<IDWriteFont> font;
137 HRNM(fontFamily->GetFont(fontIndex, &font), "Could not get font.");
139 HRN(FontToIdentity(font.get(), &fontIds[fontIndex]));
155 SkTScopedComPtr<IDWriteFont> font;
157 dwStyle.fSlant, &font),
158 "Could not match font in family.",
161 HR_GENERAL(FontToIdentity(font.get(), &identity), nullptr, identity);
249 SkTScopedComPtr<IDWriteFont> font;
250 HRM(fOuter->fFontCollection->GetFontFromFontFace(glyphRun->fontFace, &font),
251 "Could not get font from font face.");
253 // It is possible that the font passed does not actually have the requested character,
254 // due to no font being found and getting the fallback font.
255 // Check that the font actually contains the requested character.
257 HRM(font->HasCharacter(fCharacter, &exists), "Could not find character.");
260 HR(fOuter->FontToIdentity(font.get(), &fIdentity));
432 "Could not create font file stream.");
452 "Could not get system font collection.");