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

/frameworks/minikin/sample/
H A DMinikinSkia.cpp9 MinikinFontSkia::MinikinFontSkia(SkTypeface *typeface) : argument
10 MinikinFont(typeface->uniqueID()),
11 mTypeface(typeface) {
18 static void MinikinFontSkia_SetSkiaPaint(SkTypeface* typeface, SkPaint* skPaint, const MinikinPaint& paint) { argument
19 skPaint->setTypeface(typeface);
33 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id
/frameworks/minikin/tests/
H A DMinikinFontForTest.cpp29 MinikinFontForTest::MinikinFontForTest(const std::string& font_path, SkTypeface* typeface) : argument
30 MinikinFont(typeface->uniqueID()),
31 mTypeface(typeface),
/frameworks/base/libs/hwui/hwui/
H A DMinikinUtils.cpp28 const Paint* paint, Typeface* typeface) {
29 const Typeface* resolvedFace = Typeface::resolveDefault(typeface);
54 Typeface* typeface, const uint16_t* buf, size_t start, size_t count,
58 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface);
63 float MinikinUtils::measureText(const Paint* paint, int bidiFlags, Typeface* typeface, argument
67 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface);
72 bool MinikinUtils::hasVariationSelector(Typeface* typeface, uint32_t codepoint, uint32_t vs) { argument
73 const Typeface* resolvedFace = Typeface::resolveDefault(typeface);
27 prepareMinikinPaint(MinikinPaint* minikinPaint, FontCollection** pFont, const Paint* paint, Typeface* typeface) argument
53 doLayout(Layout* layout, const Paint* paint, int bidiFlags, Typeface* typeface, const uint16_t* buf, size_t start, size_t count, size_t bufSize) argument
H A DMinikinSkia.cpp25 MinikinFontSkia::MinikinFontSkia(SkTypeface* typeface, const void* fontData, size_t fontSize, argument
27 MinikinFont(typeface->uniqueID()), mTypeface(typeface), mFontData(fontData),
53 ALOGD("width for typeface %d glyph %d = %f", mTypeface->uniqueID(), glyph_id, skWidth);
H A DTypeface.cpp37 static void resolveStyle(Typeface* typeface) { argument
38 int weight = typeface->fBaseWeight / 100;
39 if (typeface->fSkiaStyle & SkTypeface::kBold) {
45 bool italic = (typeface->fSkiaStyle & SkTypeface::kItalic) != 0;
46 typeface->fStyle = FontStyle(weight, italic);
52 // This installs a default typeface (from a hardcoded path) that allows
54 // typeface is set.
89 // We expect the client to set a default typeface, but provide a
H A DCanvas.cpp150 float x, float y, int bidiFlags, const Paint& origPaint, Typeface* typeface) {
155 MinikinUtils::doLayout(&layout, &paint, bidiFlags, typeface, text, start, count, contextCount);
210 float hOffset, float vOffset, const Paint& paint, Typeface* typeface) {
213 MinikinUtils::doLayout(&layout, &paintCopy, bidiFlags, typeface, text, 0, count, count);
149 drawText(const uint16_t* text, int start, int count, int contextCount, float x, float y, int bidiFlags, const Paint& origPaint, Typeface* typeface) argument
209 drawTextOnPath(const uint16_t* text, int count, int bidiFlags, const SkPath& path, float hOffset, float vOffset, const Paint& paint, Typeface* typeface) argument
/frameworks/minikin/libs/minikin/
H A DMinikinFontFreeType.cpp32 MinikinFontFreeType::MinikinFontFreeType(FT_Face typeface) : argument
34 mTypeface(typeface) {
H A DFontFamily.cpp76 mFonts[i].typeface->UnrefLocked();
80 bool FontFamily::addFont(MinikinFont* typeface) { argument
83 HbBlob os2Table(getFontTable(typeface, os2Tag));
90 addFontLocked(typeface, style);
98 void FontFamily::addFont(MinikinFont* typeface, FontStyle style) { argument
100 addFontLocked(typeface, style);
103 void FontFamily::addFontLocked(MinikinFont* typeface, FontStyle style) { argument
104 typeface->RefLocked();
105 mFonts.push_back(Font(typeface, style));
144 result.font = bestFont->typeface;
175 MinikinFont* typeface = getClosestMatch(defaultStyle).font; local
[all...]
H A DFontCollection.cpp90 MinikinFont* typeface = family->getClosestMatch(defaultStyle).font; local
91 if (typeface == NULL) {
109 "Font collection must have at least one valid typeface");
H A DLineBreaker.cpp123 float LineBreaker::addStyleRun(MinikinPaint* paint, const FontCollection* typeface, argument
131 style, *paint, typeface, mCharWidths.data() + start);
194 *paint, typeface, nullptr);
200 typeface, nullptr);
/frameworks/base/core/java/com/android/internal/widget/
H A DSubtitleView.java196 public void setTypeface(Typeface typeface) { argument
197 if (mTextPaint.getTypeface() != typeface) {
198 mTextPaint.setTypeface(typeface);
284 final Typeface typeface = style.getTypeface();
285 setTypeface(typeface);
/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp141 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); local
143 const size_t tableSize = typeface->getTableSize(tag);
150 size_t actualSize = typeface->getTableData(tag, 0, tableSize, buffer);
H A DPaint.cpp298 // TODO: in Paint refactoring, set typeface on android Paint, not Paint
405 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
406 typeface = Typeface::resolveDefault(typeface);
407 FakedFont baseFont = typeface->fFontCollection->baseFontFaked(typeface->fStyle);
477 static jfloat doTextAdvances(JNIEnv *env, Paint *paint, Typeface* typeface, argument
500 const float advance = MinikinUtils::measureText(paint, bidiFlags, typeface, text,
513 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
515 jfloat result = doTextAdvances(env, paint, typeface, textArra
526 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
593 getTextPath(JNIEnv* env, Paint* paint, Typeface* typeface, const jchar* text, jint count, jint bidiFlags, jfloat x, jfloat y, SkPath* path) argument
616 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
627 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
651 breakText(JNIEnv* env, const Paint& paint, Typeface* typeface, const jchar text[], int count, float maxWidth, jint bidiFlags, jfloatArray jmeasured, const bool forwardScan) argument
688 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
717 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
726 doTextBounds(JNIEnv* env, const jchar* text, int count, jobject bounds, const Paint& paint, Typeface* typeface, jint bidiFlags) argument
746 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
755 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
790 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
863 doRunAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jint offset) argument
880 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
889 doOffsetForAdvance(const Paint* paint, Typeface* typeface, const jchar buf[], jint start, jint count, jint bufSize, jboolean isRtl, jfloat advance) argument
902 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
[all...]
/frameworks/base/core/jni/
H A Dandroid_text_StaticLayout.cpp159 Typeface* typeface = reinterpret_cast<Typeface*>(nativeTypeface); local
162 FontStyle style = MinikinUtils::prepareMinikinPaint(&minikinPaint, &font, paint, typeface);
H A Dandroid_graphics_Canvas.cpp481 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
484 bidiFlags, *paint, typeface);
492 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
496 bidiFlags, *paint, typeface);
504 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
509 contextCount, x, y, bidiFlags, *paint, typeface);
518 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
525 contextCount, x, y, bidiFlags, *paint, typeface);
535 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
540 hOffset, vOffset, *paint, typeface);
550 Typeface* typeface = reinterpret_cast<Typeface*>(typefaceHandle); local
[all...]
/frameworks/base/libs/hwui/
H A DTextDropShadowCache.h37 ShadowText(): glyphCount(0), radius(0.0f), textSize(0.0f), typeface(nullptr),
47 , typeface(paint->getTypeface())
83 SkTypeface* typeface; member in struct:android::uirenderer::ShadowText
/frameworks/minikin/include/minikin/
H A DFontFamily.h117 bool addFont(MinikinFont* typeface);
119 void addFont(MinikinFont* typeface, FontStyle style);
143 void addFontLocked(MinikinFont* typeface, FontStyle style);
147 Font(MinikinFont* typeface, FontStyle style) : argument
148 typeface(typeface), style(style) { }
149 MinikinFont* typeface; member in class:android::FontFamily::Font
/frameworks/support/design/src/android/support/design/widget/
H A DCollapsingTextHelper.java270 void setCollapsedTypeface(Typeface typeface) { argument
271 if (mCollapsedTypeface != typeface) {
272 mCollapsedTypeface = typeface;
277 void setExpandedTypeface(Typeface typeface) { argument
278 if (mExpandedTypeface != typeface) {
279 mExpandedTypeface = typeface;
284 void setTypefaces(Typeface typeface) { argument
285 mCollapsedTypeface = mExpandedTypeface = typeface;
H A DCollapsingToolbarLayout.java845 * Set the typeface to use for the collapsed title.
847 * @param typeface typeface to use, or {@code null} to use the default.
849 public void setCollapsedTitleTypeface(@Nullable Typeface typeface) { argument
850 mCollapsingTextHelper.setCollapsedTypeface(typeface);
854 * Returns the typeface used for the collapsed title.
862 * Set the typeface to use for the expanded title.
864 * @param typeface typeface to use, or {@code null} to use the default.
866 public void setExpandedTitleTypeface(@Nullable Typeface typeface) { argument
[all...]
H A DTextInputLayout.java206 * Set the typeface to use for both the expanded and floating hint.
208 * @param typeface typeface to use, or {@code null} to use the default.
210 public void setTypeface(@Nullable Typeface typeface) { argument
211 mCollapsingTextHelper.setTypefaces(typeface);
215 * Returns the typeface used for both the expanded and floating hint.
236 // Use the EditText's typeface, and it's text size for our expanded text
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/
H A DRadialTextsView.java268 private void drawTexts(Canvas canvas, float textSize, Typeface typeface, String[] texts, argument
271 mPaint.setTypeface(typeface);
/frameworks/base/core/java/android/widget/
H A DRadialTimePickerView.java867 private void drawTextElements(Canvas canvas, float textSize, Typeface typeface, argument
871 paint.setTypeface(typeface);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java940 float startX, float startY, int flags, long paint, long typeface) {
942 paint, typeface);
948 long typeface) {
953 native_drawText(nativeCanvas, buffer, 0, count, x, y, flags, paint, typeface);
959 float x, float y, boolean isRtl, long paint, long typeface) {
964 drawText(nativeCanvas, buffer, 0, count, x, y, isRtl, paint, typeface);
970 float x, float y, boolean isRtl, long paint, long typeface) {
971 drawText(nativeCanvas, text, start, count, x, y, isRtl, paint, typeface);
980 long paint, long typeface) {
992 long typeface) {
939 native_drawText(long nativeCanvas, char[] text, int index, int count, float startX, float startY, int flags, long paint, long typeface) argument
946 native_drawText(long nativeCanvas, String text, int start, int end, float x, float y, final int flags, long paint, long typeface) argument
957 native_drawTextRun(long nativeCanvas, String text, int start, int end, int contextStart, int contextEnd, float x, float y, boolean isRtl, long paint, long typeface) argument
968 native_drawTextRun(long nativeCanvas, char[] text, int start, int count, int contextStart, int contextCount, float x, float y, boolean isRtl, long paint, long typeface) argument
975 native_drawTextOnPath(long nativeCanvas, char[] text, int index, int count, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument
987 native_drawTextOnPath(long nativeCanvas, String text, long path, float hOffset, float vOffset, int bidiFlags, long paint, long typeface) argument
1051 drawText(long nativeCanvas, final char[] text, final int index, final int count, final float startX, final float startY, final boolean isRtl, long paint, final long typeface) argument
[all...]
H A DPaint_Delegate.java889 /*package*/ static long nSetTypeface(long native_object, long typeface) { argument
896 Typeface_Delegate typefaceDelegate = Typeface_Delegate.getDelegate(typeface);
897 if (delegate.mTypeface != typefaceDelegate || delegate.mNativeTypeface != typeface) {
898 delegate.mTypeface = Typeface_Delegate.getDelegate(typeface);
899 delegate.mNativeTypeface = typeface;
902 return typeface;
979 // typeface object associated with the Paint. Since, we follow the new framework way,
980 // we store the typeface with the paint and use it directly.
1051 // assert that the typeface passed is actually the one that we had stored.
1256 * Update the {@link Font} object from the typeface, tex
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DPaint.java1165 * Get the paint's typeface object.
1167 * The typeface object identifies which font to use when drawing or
1170 * @return the paint's typeface (or null)
1177 * Set or clear the typeface object.
1179 * Pass null to clear any previous typeface.
1182 * @param typeface May be null. The typeface to be installed in the paint
1183 * @return typeface
1185 public Typeface setTypeface(Typeface typeface) { argument
1187 if (typeface !
2667 nSetTypeface(long paintPtr, long typeface) argument
[all...]

Completed in 277 milliseconds