Home
last modified time | relevance | path

Searched defs:font (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/tools/fonts/
Dfontchain_linter.py77 def open_font(font): argument
86 def get_best_cmap(font): argument
103 def get_variation_sequences_cmap(font): argument
114 def get_emoji_map(font): argument
153 def assert_font_supports_any_of_chars(font, chars): argument
161 def assert_font_supports_all_of_chars(font, chars): argument
168 def assert_font_supports_none_of_chars(font, chars, fallbackName): argument
178 def assert_font_supports_all_sequences(font, sequences): argument
204 def __init__(self, name, psName, scripts, variant, weight, style, fallback_for, font): argument
706 def getPostScriptName(font): argument
Dupdate_font_metadata.py8 def update_font_revision(font, revisionSpec): argument
/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp34 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
63 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
81 auto font = buildFontCollection("Bbox.ttf"); in TEST() local
95 auto font = buildFontCollection("Bbox.ttf"); in TEST() local
109 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
134 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
152 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
177 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
256 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
342 auto font = buildFontCollection("Ascii.ttf"); in TEST() local
[all …]
DFontTest.cpp33 std::shared_ptr<Font> font = in TEST() local
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp53 static void releaseFont(jlong font) { in releaseFont()
113 std::shared_ptr<minikin::Font> font = in Font_Builder_build() local
125 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_Builder_clone() local
157 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontHandle); in Font_getGlyphBounds() local
177 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontHandle); in Font_getFontMetrics() local
194 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_getMinikinFontPtr() local
200 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_cloneFont() local
207 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_newByteBuffer() local
215 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_getBufferAddress() local
226 FontWrapper* font = reinterpret_cast<FontWrapper*>(fontPtr); in Font_getFontPath() local
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractTest.java82 FontInfo font = fonts[0]; in testGetFontFromProvider_resultOK() local
101 FontInfo font = fonts[0]; in testGetFontFromProvider_providerDoesntReturnAllFields() local
117 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontNotFound() local
131 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontUnavailable() local
151 FontInfo font = fonts[0]; in testGetFontFromProvider_resultMalformedQuery() local
178 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontNotFoundSecondRow() local
211 FontInfo font = fonts[0]; in testGetFontFromProvider_resultFontNotFoundOtherRow() local
/frameworks/base/native/android/
Dsystem_fonts.cpp230 xmlNode* font = firstElement(family, FONT_TAG); in findFirstFontNode() local
253 const minikin::Font* font = family->getFont(i); in ASystemFontIterator_open() local
332 const std::shared_ptr<minikin::Font>& font = in AFontMatcher_match() local
390 std::unique_ptr<AFont> font = std::make_unique<AFont>(); in ASystemFontIterator_next() local
405 std::unique_ptr<AFont> font = std::make_unique<AFont>(); in ASystemFontIterator_next() local
416 void AFont_close(AFont* font) { in AFont_close()
420 const char* AFont_getFontFilePath(const AFont* font) { in AFont_getFontFilePath()
425 uint16_t AFont_getWeight(const AFont* font) { in AFont_getWeight()
430 bool AFont_isItalic(const AFont* font) { in AFont_isItalic()
435 const char* AFont_getLocale(const AFont* font) { in AFont_getLocale()
[all …]
/frameworks/minikin/libs/minikin/
DFont.cpp42 HbFontUniquePtr font = prepareFont(mTypeface); in build() local
89 HbFontUniquePtr font(hb_font_create_sub_font(parent.get())); in prepareFont() local
100 FontStyle Font::analyzeStyle(const HbFontUniquePtr& font) { in analyzeStyle()
DFontFamily.cpp158 Font* font = mFonts[i].get(); in getClosestMatch() local
170 const std::shared_ptr<Font>& font = getClosestMatch(FontStyle()).font; in computeCoverage() local
229 for (const auto& font : mFonts) { in createFamilyWithVariation() local
DBoundsCache.cpp32 const FakedFont& font = layoutPiece.fontAt(i); in getBounds() local
DLayoutCore.cpp50 const MinikinFont* font; member
134 static bool isColorBitmapFont(const HbFontUniquePtr& font) { in isColorBitmapFont()
206 static inline hb_codepoint_t determineHyphenChar(hb_codepoint_t preferredHyphen, hb_font_t* font) { in determineHyphenChar()
231 static inline void addHyphenToHbBuffer(const HbBufferUniquePtr& buffer, const HbFontUniquePtr& font, in addHyphenToHbBuffer()
398 HbFontUniquePtr font(hb_font_create_sub_font(fakedFont.font->baseFont().get())); in LayoutPiece() local
DMinikinInternal.h63 HbBlob(const HbFontUniquePtr& font, uint32_t tag) in HbBlob()
/frameworks/base/graphics/java/android/graphics/fonts/
DFont.java239 public Builder(@NonNull Font font) { in Builder()
479 final Font font; in build() local
871 Font font = new Font(nativePtr); in getAvailableFonts() local
878 private static native long nGetMinikinFontPtr(long font); in nGetMinikinFontPtr()
881 private static native long nCloneFont(long font); in nCloneFont()
884 private static native ByteBuffer nNewByteBuffer(long font); in nNewByteBuffer()
887 private static native long nGetBufferAddress(long font); in nGetBufferAddress()
890 private static native int nGetSourceId(long font); in nGetSourceId()
896 private static native float nGetGlyphBounds(long font, int glyphId, long paint, RectF rect); in nGetGlyphBounds()
899 private static native float nGetFontMetrics(long font, long paint, Paint.FontMetrics metrics); in nGetFontMetrics()
DFontFamily.java81 public Builder(@NonNull Font font) { in Builder()
101 public @NonNull Builder addFont(@NonNull Font font) { in addFont()
133 private static int makeStyleIdentifier(@NonNull Font font) { in makeStyleIdentifier()
/frameworks/base/libs/hwui/hwui/
DMinikinSkia.cpp44 static void MinikinFontSkia_SetSkiaFont(const minikin::MinikinFont* font, SkFont* skFont, in MinikinFontSkia_SetSkiaFont()
150 uint32_t MinikinFontSkia::packFontFlags(const SkFont& font) { in packFontFlags()
161 void MinikinFontSkia::unpackFontFlags(SkFont* font, uint32_t flags) { in unpackFontFlags()
173 void MinikinFontSkia::populateSkFont(SkFont* skFont, const MinikinFont* font, in populateSkFont()
DPaintImpl.cpp140 static uint32_t fontToLegacyFlags(const SkFont& font) { in fontToLegacyFlags()
161 static void applyLegacyFlagsToFont(uint32_t flags, SkFont* font) { in applyLegacyFlagsToFont()
/frameworks/base/graphics/java/android/graphics/
DFontFamily.java164 public boolean addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, in addFontFromBuffer()
220 private static native boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex, in nAddFont()
222 private static native boolean nAddFontWeightStyle(long builderPtr, ByteBuffer font, in nAddFontWeightStyle()
/frameworks/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java54 private final Font font; field in BidiRenderer.ScriptRun
56 private ScriptRun(int start, int limit, @NonNull Font font) { in ScriptRun()
176 Font font = fontInfos.get(i).mFont; in renderScript() local
234 private void render(int start, int limit, Font font, int flag, float[] advances, in render()
/frameworks/minikin/tests/util/
DFontTestUtils.cpp126 auto font = std::make_shared<FreeTypeMinikinFontForTest>(getTestFontPath(filePath)); in buildFontFamily() local
134 auto font = std::make_shared<FreeTypeMinikinFontForTest>(getTestFontPath(filePath)); in buildFontFamily() local
/frameworks/minikin/tests/stresstest/
DFontFamilyTest.cpp38 auto font = std::make_shared<FreeTypeMinikinFontForTest>(fontPath); in TEST_P() local
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/android/layoutlib/test/myapplication/
DR$font.class ... android.layoutlib.test.myapplication.R$font extends java.lang.Object { public static final ...
/frameworks/base/libs/hwui/jni/
DFontUtils.h39 std::shared_ptr<minikin::Font> font; member
/frameworks/layoutlib/bridge/src/android/graphics/fonts/
DFontFamily_Builder_Delegate.java86 Font font; in nAddFont() local
/frameworks/base/core/java/android/webkit/
DWebSettings.java762 public abstract void setStandardFontFamily(String font); in setStandardFontFamily()
777 public abstract void setFixedFontFamily(String font); in setFixedFontFamily()
792 public abstract void setSansSerifFontFamily(String font); in setSansSerifFontFamily()
807 public abstract void setSerifFontFamily(String font); in setSerifFontFamily()
822 public abstract void setCursiveFontFamily(String font); in setCursiveFontFamily()
837 public abstract void setFantasyFontFamily(String font); in setFantasyFontFamily()
/frameworks/layoutlib/rename_font/
Dbuild_font.py183 def update_font_name(font): argument

123