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

12

/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 DMinikinUtils.h38 const Paint* paint, Typeface* typeface);
41 Typeface* typeface, const uint16_t* buf, size_t start, size_t count,
44 ANDROID_API static float measureText(const Paint* paint, int bidiFlags, Typeface* typeface,
47 ANDROID_API static bool hasVariationSelector(Typeface* typeface, uint32_t codepoint, uint32_t vs);
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 DMinikinSkia.h31 explicit MinikinFontSkia(SkTypeface *typeface, const void* fontData, size_t fontSize,
54 // set typeface and fake bold/italic parameters
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 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/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
H A DMinikinFontFreeType.h41 explicit MinikinFontFreeType(FT_Face typeface);
/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
H A DMinikinSkia.h5 explicit MinikinFontSkia(SkTypeface *typeface);
/frameworks/minikin/libs/minikin/
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 DMinikinFontFreeType.cpp32 MinikinFontFreeType::MinikinFontFreeType(FT_Face typeface) : argument
34 mTypeface(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/minikin/tests/
H A DMinikinFontForTest.cpp29 MinikinFontForTest::MinikinFontForTest(const std::string& font_path, SkTypeface* typeface) : argument
30 MinikinFont(typeface->uniqueID()),
31 mTypeface(typeface),
H A DMinikinFontForTest.h27 MinikinFontForTest(const std::string& font_path, SkTypeface* typeface);
/frameworks/base/graphics/java/android/graphics/
H A DTypeface.java39 * The Typeface class specifies the typeface and intrinsic style of a font.
48 /** The default NORMAL typeface object */
51 * The default BOLD typeface object. Note: this may be not actually be
56 /** The NORMAL style of the default sans serif typeface. */
58 /** The NORMAL style of the default serif typeface. */
60 /** The NORMAL style of the default monospace typeface. */
96 /** Returns the typeface's intrinsic style attributes */
112 * Create a typeface object given a family name, and option style information.
114 * The resulting typeface object can be queried (getStyle()) to discover what
118 * @param style The style (normal, bold, italic) of the typeface
[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
H A DTextDropShadowCache.cpp36 hash = JenkinsHashMix(hash, android::hash_type(typeface));
62 if (lhs.typeface < rhs.typeface) return -1;
63 if (lhs.typeface > rhs.typeface) return +1;
/frameworks/base/core/jni/android/graphics/
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...]
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);
/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/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;
/frameworks/base/core/jni/
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...]
H A Dandroid_text_StaticLayout.cpp159 Typeface* typeface = reinterpret_cast<Typeface*>(nativeTypeface); local
162 FontStyle style = MinikinUtils::prepareMinikinPaint(&minikinPaint, &font, paint, 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...]

Completed in 677 milliseconds

12