Searched defs:font (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/minikin/tests/
H A DHbFontCacheTest.cpp54 // Must return same object if same font object is passed.
68 hb_font_t* font = getHbFontLocked(&minikinFont); local
69 ASSERT_NE(nullptr, font);
71 // Set user data to identify the font object.
74 hb_font_set_user_data(font, &key, data, NULL, false);
75 ASSERT_EQ(data, hb_font_get_user_data(font, &key));
82 font = getHbFontLocked(&minikinFont);
83 EXPECT_EQ(nullptr, hb_font_get_user_data(font, &key));
/frameworks/base/data/fonts/
H A DAndroid.mk21 # create symlink for given font
22 # $(1): new font $(2): link target
24 define create-font-symlink
38 $(eval $(call create-font-symlink,DroidSans.ttf,Roboto-Regular.ttf))
39 $(eval $(call create-font-symlink,DroidSans-Bold.ttf,Roboto-Bold.ttf))
40 $(eval $(call create-font-symlink,DroidSerif-Regular.ttf,NotoSerif-Regular.ttf))
41 $(eval $(call create-font-symlink,DroidSerif-Bold.ttf,NotoSerif-Bold.ttf))
42 $(eval $(call create-font-symlink,DroidSerif-Italic.ttf,NotoSerif-Italic.ttf))
43 $(eval $(call create-font-symlink,DroidSerif-BoldItalic.ttf,NotoSerif-BoldItalic.ttf))
77 # Build the rest of font file
[all...]
/frameworks/minikin/libs/minikin/
H A DMinikinInternal.cpp84 hb_font_t* font = getHbFontLocked(minikinFont); local
85 hb_face_t* face = hb_font_get_face(font);
87 hb_font_destroy(font);
H A DHbFontCache.cpp32 MinikinFont* font = reinterpret_cast<MinikinFont*>(userData); local
35 const void* buffer = font->GetTable(tag, &size, &destroy);
62 void put(int32_t fontId, hb_font_t* font) { argument
63 mCache.put(fontId, font);
115 hb_font_t* font = fontCache->get(fontId); local
116 if (font != nullptr) {
117 return hb_font_reference(font);
137 font = hb_font_create_sub_font(parent_font);
140 fontCache->put(fontId, font);
141 return hb_font_reference(font);
[all...]
H A DFontFamily.cpp133 const Font& font = mFonts[i]; local
134 int match = computeMatch(font.style, style);
136 bestFont = &font;
142 result.font = NULL;
144 result.font = bestFont->typeface;
175 MinikinFont* typeface = getClosestMatch(defaultStyle).font;
187 ALOGD("font coverage length=%d, first ch=%x\n", mCoverage.length(),
198 // Early exit if the variation selector is specified but the font doesn't have a cmap format
204 MinikinFont* minikinFont = getClosestMatch(defaultStyle).font;
205 hb_font_t* font local
[all...]
H A DLayout.cpp149 uint32_t mId; // for the font collection
291 MinikinFont* font = paint->font; local
292 float advance = font->GetHorizontalAdvance(glyph, *paint);
336 if (mFaces[ix].font == face.font) {
344 hb_font_t* font = getHbFontLocked(face.font); local
345 hb_font_set_funcs(font, getHbFontFuncs(), &ctx->paint, 0);
346 ctx->hbFonts.push_back(font);
[all...]
/frameworks/minikin/sample/
H A Dexample.cpp59 MinikinFont *font = new MinikinFontFreeType(face); local
60 family->addFont(font);
68 MinikinFont *font = new MinikinFontFreeType(face); local
69 family->addFont(font);
H A Dexample_skia.cpp61 MinikinFont *font = new MinikinFontSkia(skFace); local
62 family->addFont(font);
70 MinikinFont *font = new MinikinFontSkia(skFace); local
71 family->addFont(font);
/frameworks/base/graphics/java/android/graphics/
H A DFontFamily.java78 Log.e(TAG, "Error mapping font file " + path);
83 public boolean addFontWeightStyle(ByteBuffer font, int ttcIndex, List<FontListParser.Axis> axes, argument
85 return nAddFontWeightStyle(mNativePtr, font, ttcIndex, axes, weight, style);
94 private static native boolean nAddFont(long nativeFamily, ByteBuffer font, int ttcIndex); argument
95 private static native boolean nAddFontWeightStyle(long nativeFamily, ByteBuffer font, argument
/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp56 FontCollection *font; local
58 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface);
59 layout->setFontCollection(font);
65 FontCollection *font; local
67 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface);
69 font, advances);
H A DMinikinSkia.cpp35 static void MinikinFontSkia_SetSkiaPaint(const MinikinFont* font, SkPaint* skPaint, const MinikinPaint& paint) { argument
41 // Apply font fakery on top of user-supplied flags.
42 MinikinFontSkia::populateSkPaint(skPaint, font, paint.fakery);
72 // we don't have a buffer to the font data, copy to own buffer
120 void MinikinFontSkia::populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery) { argument
121 paint->setTypeface(reinterpret_cast<const MinikinFontSkia*>(font)->GetSkTypeface());
H A DTypeface.cpp69 // TODO: might be a nice optimization to get access to the underlying font
72 MinikinFont *font = new MinikinFontSkia(skFace, NULL, 0, 0); local
73 family->addFont(font);
74 font->Unref();
76 ALOGE("failed to create font %s", fn);
143 MinikinFont* mf = firstFamily->getClosestMatch(defaultStyle).font;
/frameworks/base/core/jni/android/graphics/
H A DFontFamily.cpp92 ALOGE("addFont failed to create font, buffer invalid");
97 ALOGE("addFont failed to create font, buffer size invalid");
111 ALOGE("addFont failed to create font");
129 jobject font, jint ttcIndex, jobject listOfAxis, jint weight, jboolean isItalic) {
130 NPE_CHECK_RETURN_ZERO(env, font);
155 const void* fontPtr = env->GetDirectBufferAddress(font);
157 ALOGE("addFont failed to create font, buffer invalid");
160 jlong fontSize = env->GetDirectBufferCapacity(font);
162 ALOGE("addFont failed to create font, buffer size invalid");
165 jobject fontRef = MakeGlobalRefOrDie(env, font);
128 FontFamily_addFontWeightStyle(JNIEnv* env, jobject clazz, jlong familyPtr, jobject font, jint ttcIndex, jobject listOfAxis, jint weight, jboolean isItalic) argument
[all...]
H A DHarfBuzzNGFaceSkia.cpp165 hb_font_t* font = hb_font_create(face); local
170 hb_font_set_ppem(font, x_ppem, y_ppem);
171 hb_font_set_scale(font, HBFloatToFixed(sizeX), HBFloatToFixed(sizeY));
174 hb_font_set_funcs(font, harfbuzzSkiaGetFontFuncs(), data, destroyHarfBuzzFontData);
176 return font;
/frameworks/base/core/jni/
H A Dandroid_text_StaticLayout.cpp160 FontCollection *font; local
162 FontStyle style = MinikinUtils::prepareMinikinPaint(&minikinPaint, &font, paint, typeface);
163 return b->addStyleRun(&minikinPaint, font, style, start, end, isRtl);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java31 import java.awt.font.FontRenderContext;
32 import java.awt.font.GlyphVector;
39 * Render the text by breaking it into various scripts and using the right font for each script.
50 Font font; field in class:BidiRenderer.ScriptRun
63 // This List can contain nulls. A null font implies that the we weren't able to load the font
64 // properly. So, if we encounter a situation where we try to use that font, log a warning.
139 // We break the text into scripts and then select font based on it and then render each of
144 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw);
151 * Render a script run to the right of the bounds passed. Use the preferred font t
216 render(int start, int limit, Font font, int flag, float[] advances, int advancesIndex, boolean draw) argument
[all...]
H A DFontFamily_Delegate.java71 // The cache has a drawback that if the font file changed after the font object was created,
153 // Skip font configuration files.
183 FontInfo font = mFonts.get(i);
184 int match = computeMatch(font, desiredStyle);
187 bestFont = font;
196 // Derive the font as required and add it to the list of Fonts.
225 // If we aren't able to load an Open Type font, don't log a warning just yet.
226 // We wait for a case where font is being used. Only then we try to log the
231 String.format("Unable to load font
280 nAddFont(long nativeFamily, ByteBuffer font, int ttcIndex) argument
286 nAddFontWeightStyle(long nativeFamily, ByteBuffer font, int ttcIndex, List<FontListParser.Axis> listOfAxis, int weight, boolean isItalic) argument
[all...]
/frameworks/minikin/include/minikin/
H A DFontFamily.h33 // FontStyle represents all style information needed to select an actual font
97 MinikinFont* font; member in struct:android::FakedFont
116 // Add font to family, extracting style information from the font
135 // Returns true if the font has a glyph for the code point and variation selector pair.
139 // Returns true if this font family has a variaion sequence table (cmap format 14 subtable).
H A DMinikinFont.h48 MinikinPaint() : font(0), size(0), scaleX(0), skewX(0), letterSpacing(0), paintFlags(0),
55 MinikinFont *font; member in struct:android::MinikinPaint
114 // Override if font can provide access to raw data
119 // Override if font can provide access to raw data
124 // Override if font can provide access to raw data.
/frameworks/rs/
H A DrsScriptC_LibGL.cpp264 void rsrBindFont(Context *rsc, Font *font) { argument
265 CHECK_OBJ(font);
266 rsi_ContextBindFont(rsc, font);
H A DrsContext.cpp834 Font *font = static_cast<Font *>(vfont); local
835 rsc->setFont(font);
H A DrsFont.cpp57 ALOGE("Unable to initialize font %s", name);
67 ALOGE("Unable to set font size on %s", name);
258 // Let the font state figure out where to put the bitmap
732 void FontState::precacheLatin(Font *font) { argument
738 font->getCachedUTFChar((int32_t)mLatinPrecache[precacheIdx]);
/frameworks/base/libs/hwui/font/
H A DFont.cpp59 ALOGW("Could not query the inverse lookup transform for this font");
481 Font* font = state->mActiveFonts.get(description); local
483 if (!font) {
484 font = new Font(state, description);
485 state->mActiveFonts.put(description, font);
487 font->mIdentityTransform = matrix.isIdentity();
489 return font;
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp648 Font* font = Font::create(this, paint, matrix); local
649 font->precache(paint, glyphs, numGlyphs);
660 ALOGE("No font set");
678 ALOGE("No font set");
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java49 * <li>TEXT_AUTOSIZING boosts font size of paragraphs based on heuristics to make
670 * Sets the standard font family name. The default is "sans-serif".
672 * @param font a font family name
674 public abstract void setStandardFontFamily(String font); argument
677 * Gets the standard font family name.
679 * @return the standard font family name as a string
685 * Sets the fixed font family name. The default is "monospace".
687 * @param font a font famil
689 setFixedFontFamily(String font) argument
704 setSansSerifFontFamily(String font) argument
719 setSerifFontFamily(String font) argument
734 setCursiveFontFamily(String font) argument
749 setFantasyFontFamily(String font) argument
[all...]

Completed in 330 milliseconds

12