Lines Matching full:font
125 IDWriteFont* font,
506 static SkTypeface::Style get_style(IDWriteFont* font) {
508 DWRITE_FONT_WEIGHT weight = font->GetWeight();
512 DWRITE_FONT_STYLE angle = font->GetStyle();
523 IDWriteFont* font,
531 , fDWriteFont(SkRefComPtr(font))
543 IDWriteFont* font,
547 SkTypeface::Style style = get_style(font);
550 fontFace, font, fontFamily,
1296 // Find the first non-simulated font which has the given ttc index.
1304 SkTScopedComPtr<IDWriteFont> font;
1305 HRN(fontFamily->GetFont(fontIndex, &font));
1306 if (font->GetSimulations() != DWRITE_FONT_SIMULATIONS_NONE) {
1311 HRN(font->CreateFontFace(&fontFace));
1315 return DWriteFontTypeface::Create(fontFace.get(), font.get(), fontFamily.get(),
1330 "Could not get number of font files.");
1336 HRNM(fDWriteFontFace->GetFiles(&numFiles, &fontFile), "Could not get font files.");
1341 "Could not get font file reference key.");
1344 HRNM(fontFile->GetLoader(&fontFileLoader), "Could not get font file loader.");
1349 "Could not create font file stream.");
1588 // This probably isn't very good with an italic font.
1604 // If Restricted, the font may not be embedded in a document.
1605 // If not Restricted, the font can be embedded.
1656 IDWriteFont* font,
1660 SkTypeface* face = FindByProcAndRef(FindByDWriteFont, font);
1662 face = DWriteFontTypeface::Create(fontFace, font, fontFamily,
1665 Add(face, get_style(font), fontCollectionLoader != NULL);
1759 "Could not create DWrite font family from LOGFONT.");
1776 HRNM(this->getDefaultFontFamily(&fontFamily), "Could not get default font family.");
1779 SkTScopedComPtr<IDWriteFont> font;
1787 HRNM(fontFamily->GetFirstMatchingFont(weight, stretch, italic, &font),
1788 "Could not get matching font.");
1791 HRNM(font->CreateFontFace(&fontFace), "Could not create font face.");
1793 return this->createTypefaceFromDWriteFont(fontFace.get(), font.get(), fontFamily.get());
1803 SkTScopedComPtr<IDWriteFont> font;
1804 HRNM(fFontFamily->GetFont(index, &font), "Could not get font.");
1807 HRNM(fontfont face.");
1809 return fFontMgr->createTypefaceFromDWriteFont(fontFace.get(), font.get(), fFontFamily.get());
1813 SkTScopedComPtr<IDWriteFont> font;
1814 HRVM(fFontFamily->GetFont(index, &font), "Could not get font.");
1817 switch (font->GetStyle()) {
1829 int weight = font->GetWeight();
1830 int width = font->GetStretch();
1835 if (SUCCEEDED(font->GetFaceNames(&faceNames))) {
1856 SkTScopedComPtr<IDWriteFont> font;
1858 HRNM(fFontFamily->GetFirstMatchingFont(weight, width, slant, &font),
1859 "Could not match font in family.");
1862 HRNM(font->CreateFontFace(&fontFace), "Could not create font face.");
1864 return fFontMgr->createTypefaceFromDWriteFont(fontFace.get(), font.get(),
1893 "Could not get system font collection.");