Home
last modified time | relevance | path

Searched refs:fontFile (Results 1 – 13 of 13) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTypefaceTest.java20 private File fontFile; field in ShadowTypefaceTest
24 fontFile = in setup()
55 Typeface typeface = Typeface.createFromFile(fontFile); in createFromFile_withFile_shouldCreateTypeface()
63 Typeface typeface = Typeface.createFromFile(fontFile.getPath()); in createFromFile_withPath_shouldCreateTypeface()
/external/skia/src/ports/
DSkFontMgr_android.cpp183 const FontFileInfo& fontFile = family.fFonts[i]; in SkFontStyleSet_Android() local
186 pathName.append(fontFile.fFileName); in SkFontStyleSet_Android()
195 const int ttcIndex = fontFile.fIndex; in SkFontStyleSet_Android()
208 int weight = fontFile.fWeight != 0 ? fontFile.fWeight : style.weight(); in SkFontStyleSet_Android()
210 switch (fontFile.fStyle) { in SkFontStyleSet_Android()
232 fontFile.fVariationDesignPosition.begin(), in SkFontStyleSet_Android()
233 fontFile.fVariationDesignPosition.count() in SkFontStyleSet_Android()
DSkRemotableFontMgr_win_dw.cpp106 SkTScopedComPtr<IDWriteFontFile> fontFile; in FontToIdentity() local
107 HR(fontFace->GetFiles(&numFiles, &fontFile)); in FontToIdentity()
110 HR(fontFile->GetLoader(&fontFileLoader)); in FontToIdentity()
114 HR(fontFile->GetReferenceKey(&refKey, &refKeySize)); in FontToIdentity()
DSkTypeface_win_dw.cpp373 SkTScopedComPtr<IDWriteFontFile> fontFile; in onOpenStream() local
374 HRNM(fDWriteFontFace->GetFiles(&numFiles, &fontFile), "Could not get font files."); in onOpenStream()
378 HRNM(fontFile->GetReferenceKey(&fontFileKey, &fontFileKeySize), in onOpenStream()
382 HRNM(fontFile->GetLoader(&fontFileLoader), "Could not get font file loader."); in onOpenStream()
DSkFontMgr_win_dw.cpp113 SK_STDMETHODIMP GetCurrentFontFile(IDWriteFontFile** fontFile) override;
186 SK_STDMETHODIMP StreamFontFileEnumerator::GetCurrentFontFile(IDWriteFontFile** fontFile) { in GetCurrentFontFile() argument
188 *fontFile = nullptr; in GetCurrentFontFile()
192 *fontFile = SkRefComPtr(fCurrentFile.get()); in GetCurrentFontFile()
/external/skqp/src/ports/
DSkFontMgr_android.cpp185 const FontFileInfo& fontFile = family.fFonts[i]; in SkFontStyleSet_Android() local
188 pathName.append(fontFile.fFileName); in SkFontStyleSet_Android()
197 const int ttcIndex = fontFile.fIndex; in SkFontStyleSet_Android()
210 int weight = fontFile.fWeight != 0 ? fontFile.fWeight : style.weight(); in SkFontStyleSet_Android()
212 switch (fontFile.fStyle) { in SkFontStyleSet_Android()
234 fontFile.fVariationDesignPosition.begin(), in SkFontStyleSet_Android()
235 fontFile.fVariationDesignPosition.count() in SkFontStyleSet_Android()
DSkRemotableFontMgr_win_dw.cpp105 SkTScopedComPtr<IDWriteFontFile> fontFile; in FontToIdentity() local
106 HR(fontFace->GetFiles(&numFiles, &fontFile)); in FontToIdentity()
109 HR(fontFile->GetLoader(&fontFileLoader)); in FontToIdentity()
113 HR(fontFile->GetReferenceKey(&refKey, &refKeySize)); in FontToIdentity()
DSkTypeface_win_dw.cpp383 SkTScopedComPtr<IDWriteFontFile> fontFile; in onOpenStream() local
384 HRNM(fDWriteFontFace->GetFiles(&numFiles, &fontFile), "Could not get font files."); in onOpenStream()
388 HRNM(fontFile->GetReferenceKey(&fontFileKey, &fontFileKeySize), in onOpenStream()
392 HRNM(fontFile->GetLoader(&fontFileLoader), "Could not get font file loader."); in onOpenStream()
DSkFontMgr_win_dw.cpp112 virtual HRESULT STDMETHODCALLTYPE GetCurrentFontFile(IDWriteFontFile** fontFile);
185 HRESULT StreamFontFileEnumerator::GetCurrentFontFile(IDWriteFontFile** fontFile) { in GetCurrentFontFile() argument
187 *fontFile = nullptr; in GetCurrentFontFile()
191 *fontFile = SkRefComPtr(fCurrentFile.get()); in GetCurrentFontFile()
/external/harfbuzz_ng/src/
Dhb-directwrite.cc150 IDWriteFontFile *fontFile; member
209 IDWriteFontFile *fontFile; in _hb_directwrite_shaper_face_data_create() local
212 fontFileLoader, &fontFile); in _hb_directwrite_shaper_face_data_create()
221 hr = fontFile->Analyze (&isSupported, &fileType, &faceType, &numberOfFaces); in _hb_directwrite_shaper_face_data_create()
228 dwriteFactory->CreateFontFace (faceType, 1, &fontFile, 0, in _hb_directwrite_shaper_face_data_create()
232 data->fontFile = fontFile; in _hb_directwrite_shaper_face_data_create()
246 if (data->fontFile) in _hb_directwrite_shaper_face_data_destroy()
247 data->fontFile->Release (); in _hb_directwrite_shaper_face_data_destroy()
/external/harfbuzz_ng/test/api/
Dtest-ot-math.c55 openFont(const char* fontFile) in openFont() argument
58 gchar* path = g_test_build_filename(G_TEST_DIST, fontFile, NULL); in openFont()
60 gchar* path = g_strdup(fontFile); in openFont()
/external/pdfium/fpdfsdk/
Dfpdf_edittext.cpp110 ByteString fontFile = font_type == FPDF_FONT_TYPE1 ? "FontFile" : "FontFile2"; in LoadFontDesc() local
111 pFontDesc->SetNewFor<CPDF_Reference>(fontFile, pDoc, pStream->GetObjNum()); in LoadFontDesc()
/external/fonttools/Lib/fontTools/subset/
D__init__.py2864 def load_font(fontFile, argument
2871 font = ttLib.TTFont(fontFile,