のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2013-05-03から1日間の記事一覧

drawGlyphs

190 void Font::drawGlyphs(GraphicsContext* gc, const SimpleFontData* font, 191 const GlyphBuffer& glyphBuffer, int from, int numGlyphs, 192 const FloatPoint& point) const 193 { 194 // compile-time assert 195 SkASSERT(sizeof(GlyphBufferGlyp…

mesure_text

979 SkScalar SkPaint::measureText(const void* textData, size_t length, 980 SkRect* bounds, SkScalar zoom) const { 981 const char* text = (const char*)textData; 982 SkASSERT(text != NULL || length == 0); 983 984 SkScalar scale = 0; 985 SkAu…

MesureText

905 SkScalar SkPaint::measure_text(SkGlyphCache* cache, 906 const char* text, size_t byteLength, 907 int* count, SkRect* bounds) const { 908 SkASSERT(count); 909 if (byteLength == 0) { 910 *count = 0; 911 if (bounds) { 912 bounds->setEmpty…

sk_getAdvance

669 static const SkGlyph& sk_getAdvance_utf8_next(SkGlyphCache* cache, 670 const char** text) { 671 SkASSERT(cache != NULL); 672 SkASSERT(text != NULL); 673 674 return cache->getUnicharAdvance(SkUTF8_NextUnichar(text)); 675 } 676 677 stati…

getAdvanced

236 SkGlyph* SkGlyphCache::lookupMetrics(uint32_t id, MetricsType mtype) { 237 SkGlyph* glyph; 238 239 int hi = 0; 240 int count = fGlyphArray.count(); 241 242 if (count) { 243 SkGlyph** gptr = fGlyphArray.begin(); 244 int lo = 0; 245 246 …

NextLogicalFont

117 static SkScalerContext* allocNextContext(const SkScalerContext::Rec& rec) { 118 // fonthost will determine the next possible font to search, based 119 // on the current font in fRec. It will return NULL if ctx is our 120 // last font t…

fontFileElementHandler

83 /** 84 * Handler for font files. This processes the attributes for language and 85 * variants then lets textHandler handle the actual file name 86 */ 87 void fontFileElementHandler(FamilyData *familyData, const char **attributes) { 88 F…

paint:setLocale

public void setTextLocale (Locale locale)Added in API level 17 Set the text locale. The text locale affects how the text is drawn for some languages. For example, if the locale is CHINESE or CHINA, then the text renderer will prefer to dra…

fontVariant

675 enum FontVariant { 676 kDefault_Variant, // Currently setting yourself to Default gives you Compact Variant 677 kCompact_Variant, 678 kElegant_Variant, 679 kLast_Variant = kElegant_Variant, 680 };

error: Cannot fetch platform/external/libnfc-nci

repo syncがエラーになる。 $ repo sync -j1 Fetching projects: 0% (2/328) fatal: git fetch_pack: expected ACK/NAK, got 'error: Internal server error' fatal: The remote end hung up unexpectedly fatal: git fetch_pack: expected ACK/NAK, got '…