/external/skqp/src/core/ |
H A D | SkGlyphCache.h | 27 This class represents a strike: a specific combination of typeface, size, matrix, etc., and 136 static SkGlyphCache* DetachCache(SkTypeface* typeface, const SkScalerContextEffects& effects, argument 138 return VisitCache(typeface, effects, desc, DetachProc, nullptr); 262 SkAutoGlyphCache(SkTypeface* typeface, const SkScalerContextEffects& effects, argument 264 : INHERITED(SkGlyphCache::DetachCache(typeface, effects, desc))
|
H A D | SkScalerContext.cpp | 69 SkScalerContext::SkScalerContext(sk_sp<SkTypeface> typeface, const SkScalerContextEffects& effects, argument 73 , fTypeface(std::move(typeface)) 804 SkScalerContext_Empty(sk_sp<SkTypeface> typeface, const SkScalerContextEffects& effects, 806 : SkScalerContext(std::move(typeface), effects, desc) {} 907 SkTypeface* typeface = paint.getTypeface(); 908 if (nullptr == typeface) { 909 typeface = SkTypeface::GetDefaultTypeface(); 911 rec->fFontID = typeface->uniqueID(); 1061 typeface->onFilterRec(rec);
|
H A D | SkGlyphCache.cpp | 394 msg.printf("cache typeface:%x %25s:(%d,%d,%d) size:%2g [%g %g %g %g] lum:%02X devG:%d pntG:%d cntr:%d glyphs:%3d", 482 SkGlyphCache* SkGlyphCache::VisitCache(SkTypeface* typeface, argument 487 if (!typeface) { 488 typeface = SkTypeface::GetDefaultTypeface(); 492 // Precondition: the typeface id must be the fFontID in the descriptor 499 SkASSERT(typeface->uniqueID() == rec->fFontID); 528 std::unique_ptr<SkScalerContext> ctx = typeface->createScalerContext(effects, desc, true); 531 ctx = typeface->createScalerContext(effects, desc, false);
|
/external/skqp/src/ports/ |
H A D | SkFontMgr_FontConfigInterface.cpp | 105 Result(Request* request, SkTypeface* typeface) argument 107 , fFace(SkSafeRef(typeface)) {} 286 // Check if a typeface with this FontIdentity is already in the FontIdentity cache.
|
H A D | SkFontHost_FreeType.cpp | 330 static SkFaceRec* ref_ft_face(const SkTypeface* typeface) { argument 333 const SkFontID fontID = typeface->uniqueID(); 344 std::unique_ptr<SkFontData> data = typeface->makeFontData(); 751 SkScalerContext_FreeType::SkScalerContext_FreeType(sk_sp<SkTypeface> typeface, 754 : SkScalerContext_FreeType_Base(std::move(typeface), effects, desc)
|
H A D | SkScalerContext_win_dw.cpp | 49 static bool is_hinted(DWriteFontTypeface* typeface) { argument 51 AutoTDWriteTable<SkOTTableMaximumProfile> maxp(typeface->fDWriteFontFace.get()); 75 bool get_gasp_range(DWriteFontTypeface* typeface, int size, GaspRange* range) { argument 76 AutoTDWriteTable<SkOTTableGridAndScanProcedure> gasp(typeface->fDWriteFontFace.get()); 120 static bool has_bitmap_strike(DWriteFontTypeface* typeface, GaspRange range) { argument 123 AutoTDWriteTable<SkOTTableEmbeddedBitmapLocation> eblc(typeface->fDWriteFontFace.get()); 162 AutoTDWriteTable<SkOTTableEmbeddedBitmapScaling> ebsc(typeface->fDWriteFontFace.get()); 212 DWriteFontTypeface* typeface = this->getDWriteTypeface(); local 213 fIsColorFont = typeface->fFactory2 && 214 typeface [all...] |
H A D | SkFontHost_win.cpp | 621 LogFontTypeface* typeface = static_cast<LogFontTypeface*>(this->getTypeface()); local 664 LOGFONT lf = typeface->fLogFont; 1678 // Get the actual name of the typeface. The logfont may not know this. 1904 // Create the typeface.
|
/external/skqp/src/sfnt/ |
H A D | SkOTUtils.cpp | 167 SkOTUtils::LocalizedStrings_NameTable::CreateForFamilyNames(const SkTypeface& typeface) { argument 169 size_t nameTableSize = typeface.getTableSize(nameTag); 174 size_t copied = typeface.getTableData(nameTag, 0, nameTableSize, nameTableData.get());
|
/external/skqp/tools/debugger/ |
H A D | SkJsonWriteBuffer.cpp | 153 void SkJsonWriteBuffer::writeTypeface(SkTypeface* typeface) { argument 155 this->append("typeface", Json::Value());
|
/external/skqp/tools/shape/ |
H A D | using_skia_and_harfbuzz.cpp | 207 sk_sp<SkTypeface> typeface; local 209 typeface = SkTypeface::MakeFromFile(font_file.c_str(), 0 /* index */); 211 SkShaper shaper(typeface);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
H A D | ShadowPaint.java | 39 private Typeface typeface; field in class:ShadowPaint 169 return typeface; 173 public Typeface setTypeface(Typeface typeface) { argument 174 this.typeface = typeface; 175 return typeface;
|
H A D | ShadowTextView.java | 51 private Typeface typeface; field in class:ShadowTextView
|
/external/skia/src/core/ |
H A D | SkScalerContext.cpp | 69 SkScalerContext::SkScalerContext(sk_sp<SkTypeface> typeface, const SkScalerContextEffects& effects, argument 73 , fTypeface(std::move(typeface)) 798 SkScalerContext_Empty(sk_sp<SkTypeface> typeface, const SkScalerContextEffects& effects, 800 : SkScalerContext(std::move(typeface), effects, desc) {} 901 SkTypeface* typeface = paint.getTypeface(); 902 if (nullptr == typeface) { 903 typeface = SkTypeface::GetDefaultTypeface(); 905 rec->fFontID = typeface->uniqueID(); 1053 typeface->onFilterRec(rec);
|
H A D | SkGlyphCache.cpp | 394 msg.printf("cache typeface:%x %25s:(%d,%d,%d)\n %s glyphs:%3d", 478 SkGlyphCache* SkGlyphCache::VisitCache(SkTypeface* typeface, argument 483 if (!typeface) { 484 typeface = SkTypeface::GetDefaultTypeface(); 488 // Precondition: the typeface id must be the fFontID in the descriptor 495 SkASSERT(typeface->uniqueID() == rec->fFontID); 524 std::unique_ptr<SkScalerContext> ctx = typeface->createScalerContext(effects, desc, true); 527 ctx = typeface->createScalerContext(effects, desc, false);
|
/external/skia/src/ports/ |
H A D | SkFontHost_FreeType.cpp | 330 static SkFaceRec* ref_ft_face(const SkTypeface* typeface) { argument 333 const SkFontID fontID = typeface->uniqueID(); 344 std::unique_ptr<SkFontData> data = typeface->makeFontData(); 751 SkScalerContext_FreeType::SkScalerContext_FreeType(sk_sp<SkTypeface> typeface, 754 : SkScalerContext_FreeType_Base(std::move(typeface), effects, desc)
|
H A D | SkScalerContext_win_dw.cpp | 49 static bool is_hinted(DWriteFontTypeface* typeface) { argument 51 AutoTDWriteTable<SkOTTableMaximumProfile> maxp(typeface->fDWriteFontFace.get()); 75 bool get_gasp_range(DWriteFontTypeface* typeface, int size, GaspRange* range) { argument 76 AutoTDWriteTable<SkOTTableGridAndScanProcedure> gasp(typeface->fDWriteFontFace.get()); 120 static bool has_bitmap_strike(DWriteFontTypeface* typeface, GaspRange range) { argument 123 AutoTDWriteTable<SkOTTableEmbeddedBitmapLocation> eblc(typeface->fDWriteFontFace.get()); 162 AutoTDWriteTable<SkOTTableEmbeddedBitmapScaling> ebsc(typeface->fDWriteFontFace.get()); 212 DWriteFontTypeface* typeface = this->getDWriteTypeface(); local 213 fIsColorFont = typeface->fFactory2 && 214 typeface [all...] |
H A D | SkFontHost_win.cpp | 621 LogFontTypeface* typeface = static_cast<LogFontTypeface*>(this->getTypeface()); local 664 LOGFONT lf = typeface->fLogFont; 1678 // Get the actual name of the typeface. The logfont may not know this. 1904 // Create the typeface.
|
/external/skia/tests/ |
H A D | SerializationTest.cpp | 327 static void serialize_and_compare_typeface(sk_sp<SkTypeface> typeface, const char* text, argument 330 // Create a paint with the typeface. 334 paint.setTypeface(std::move(typeface)); 360 // Load typeface from file to test CreateFromFile with index. 362 auto typeface = SkTypeface::MakeFromStream(new SkMemoryStream(std::move(data)), 1); local 363 if (!typeface) { 366 serialize_and_compare_typeface(std::move(typeface), "A!", reporter); 371 // Load typeface as stream to create with axis settings. 377 sk_sp<SkTypeface> typeface(SkTypeface::MakeFromFontData( 379 if (!typeface) { [all...] |
/external/skqp/src/gpu/text/ |
H A D | GrStencilAndCoverTextContext.cpp | 380 const SkTypeface* typeface = fFont.getTypeface(); local 382 reinterpret_cast<uint32_t&>(builder[0]) = typeface ? typeface->uniqueID() : 0; 390 const SkTypeface* typeface = fFont.getTypeface(); local 392 reinterpret_cast<uint32_t&>(builder[0]) = typeface ? typeface->uniqueID() : 0; 399 const SkTypeface* typeface = glyphCache->getScalerContext()->getTypeface(); local 404 reinterpret_cast<uint32_t&>(builder[0]) = typeface ? typeface->uniqueID() : 0;
|
/external/skqp/tests/ |
H A D | SerializationTest.cpp | 327 static void serialize_and_compare_typeface(sk_sp<SkTypeface> typeface, const char* text, argument 330 // Create a paint with the typeface. 334 paint.setTypeface(std::move(typeface)); 360 // Load typeface from file to test CreateFromFile with index. 362 auto typeface = SkTypeface::MakeFromStream(new SkMemoryStream(std::move(data)), 1); local 363 if (!typeface) { 366 serialize_and_compare_typeface(std::move(typeface), "A!", reporter); 371 // Load typeface as stream to create with axis settings. 377 sk_sp<SkTypeface> typeface(SkTypeface::MakeFromFontData( 379 if (!typeface) { [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowTextView.java | 51 private Typeface typeface; field in class:ShadowTextView 141 return typeface; 145 public void setTypeface(Typeface typeface) { argument 146 this.typeface = typeface;
|
/external/skia/src/pdf/ |
H A D | SkPDFFont.cpp | 142 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(SkTypeface* typeface, argument 144 SkASSERT(typeface); 145 SkFontID id = typeface->uniqueID(); 149 int count = typeface->countGlyphs(); 155 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); 163 tmpPaint.setTypeface(sk_ref_sp(typeface)); 209 SkASSERT(fontMetrics); // SkPDFDevice::internalDrawText ensures the typeface is good. 210 // GetMetrics only returns null to signify a bad typeface. 223 sk_sp<SkTypeface> typeface(sk_ref_sp(face)); 224 SkASSERT(typeface); 497 make_type1_font_descriptor( SkTypeface* typeface, const SkAdvancedTypefaceMetrics& info) argument 523 populate_type_1_font(SkPDFDict* font, const SkAdvancedTypefaceMetrics& info, SkTypeface* typeface, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID) argument 619 add_type3_font_info(SkPDFCanon* canon, SkPDFDict* font, SkTypeface* typeface, const SkBitSet& subset, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID) argument 748 CanEmbedTypeface(SkTypeface* typeface, SkPDFCanon* canon) argument [all...] |
/external/skia/src/pipe/ |
H A D | SkPipeCanvas.cpp | 864 int SkPipeDeduper::findOrDefineTypeface(SkTypeface* typeface) { argument 865 if (!typeface) { 869 int index = fTypefaces.find(typeface->uniqueID()); 878 sk_sp<SkData> data = encode(fProcs, typeface); 880 index = fTypefaces.add(typeface->uniqueID()); 894 SkDebugf("+++ failed to encode typeface %d\n", typeface->uniqueID());
|
/external/skqp/src/pdf/ |
H A D | SkPDFFont.cpp | 142 const SkAdvancedTypefaceMetrics* SkPDFFont::GetMetrics(SkTypeface* typeface, argument 144 SkASSERT(typeface); 145 SkFontID id = typeface->uniqueID(); 149 int count = typeface->countGlyphs(); 155 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); 163 tmpPaint.setTypeface(sk_ref_sp(typeface)); 209 SkASSERT(fontMetrics); // SkPDFDevice::internalDrawText ensures the typeface is good. 210 // GetMetrics only returns null to signify a bad typeface. 223 sk_sp<SkTypeface> typeface(sk_ref_sp(face)); 224 SkASSERT(typeface); 497 make_type1_font_descriptor( SkTypeface* typeface, const SkAdvancedTypefaceMetrics& info) argument 523 populate_type_1_font(SkPDFDict* font, const SkAdvancedTypefaceMetrics& info, SkTypeface* typeface, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID) argument 619 add_type3_font_info(SkPDFCanon* canon, SkPDFDict* font, SkTypeface* typeface, const SkBitSet& subset, SkGlyphID firstGlyphID, SkGlyphID lastGlyphID) argument 748 CanEmbedTypeface(SkTypeface* typeface, SkPDFCanon* canon) argument [all...] |
/external/skqp/src/pipe/ |
H A D | SkPipeCanvas.cpp | 864 int SkPipeDeduper::findOrDefineTypeface(SkTypeface* typeface) { argument 865 if (!typeface) { 869 int index = fTypefaces.find(typeface->uniqueID()); 878 sk_sp<SkData> data = encode(fProcs, typeface); 880 index = fTypefaces.add(typeface->uniqueID()); 894 SkDebugf("+++ failed to encode typeface %d\n", typeface->uniqueID());
|