Home
last modified time | relevance | path

Searched refs:font_path (Results 1 – 3 of 3) sorted by relevance

/aosp12/frameworks/minikin/tests/util/
H A DFreeTypeMinikinFontForTest.cpp62 FreeTypeMinikinFontForTest::FreeTypeMinikinFontForTest(const std::string& font_path, int index) in FreeTypeMinikinFontForTest() argument
63 : mFontPath(font_path), mFontIndex(index) { in FreeTypeMinikinFontForTest()
64 int fd = open(font_path.c_str(), O_RDONLY); in FreeTypeMinikinFontForTest()
65 LOG_ALWAYS_FATAL_IF(fd == -1, "Open failed: %s", font_path.c_str()); in FreeTypeMinikinFontForTest()
H A DFreeTypeMinikinFontForTest.h35 FreeTypeMinikinFontForTest(const std::string& font_path, int index);
36 FreeTypeMinikinFontForTest(const std::string& font_path) in FreeTypeMinikinFontForTest() argument
37 : FreeTypeMinikinFontForTest(font_path, 0) {} in FreeTypeMinikinFontForTest()
/aosp12/frameworks/base/tools/fonts/
H A Dfontchain_linter.py79 font_path = path.join(_fonts_dir, font_file)
81 return ttLib.TTFont(font_path, fontNumber=index)
83 return ttLib.TTFont(font_path)
708 font_path = path.join(_fonts_dir, font_file)
711 ttf = ttLib.TTFont(font_path, fontNumber=0)
713 ttf = ttLib.TTFont(font_path)