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/harfbuzz_ng/src/
Dhb-directwrite.cc135 IDWriteFontFile *fontFile; member
163 IDWriteFontFile *fontFile; in _hb_directwrite_shaper_face_data_create() local
166 fontFileLoader, &fontFile); in _hb_directwrite_shaper_face_data_create()
181 hr = fontFile->Analyze (&isSupported, &fileType, &faceType, &numberOfFaces); in _hb_directwrite_shaper_face_data_create()
188 dwriteFactory->CreateFontFace (faceType, 1, &fontFile, 0, in _hb_directwrite_shaper_face_data_create()
192 data->fontFile = fontFile; in _hb_directwrite_shaper_face_data_create()
206 if (data->fontFile) in _hb_directwrite_shaper_face_data_destroy()
207 data->fontFile->Release (); in _hb_directwrite_shaper_face_data_destroy()
/external/skia/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/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/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/
Dfpdfedittext.cpp79 ByteString fontFile = font_type == FPDF_FONT_TYPE1 ? "FontFile" : "FontFile2"; in LoadFontDesc() local
80 fontDesc->SetNewFor<CPDF_Reference>(fontFile, pDoc, pStream->GetObjNum()); in LoadFontDesc()
/external/fonttools/Lib/fontTools/subset/
D__init__.py2638 def load_font(fontFile, argument
2645 font = ttLib.TTFont(fontFile,