のねのBlog

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

Scala

Eclipse シンタックスハイライトで色がつかない

Window>Preferences>Editor>Scalabilityの設定で、Scalability Mode SettingsがEnableになっていた。 そのため、HighlightがDisableになるようになっていた。 There is also a scalability mode which disable syntax highlighting if the file has more th…

brew doctor

mbp01:~ m_fujii$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. T…

GLES20Canvas>jni>android_viewGLES20Canvas>hwui>

GLES20Canvas>jni>android_viewGLES20Canvas>hwuiまでの流れ

skia cmapその1

skia cmapその1

SkPictureRecord

この辺とおるのかな? external/skia/src/core/SkPictureRecord.cpp 564 void SkPictureRecord::drawPosText(const void* text, size_t byteLength, 565 const SkPoint pos[], const SkPaint& paint) { 566 size_t points = paint.countText(text, byteLengt…

JB43R11 saveViewState その3

その3

paintのlanguageが使われる場所

1805 void SkPaint::descriptorProc(const SkDeviceProperties* deviceProperties, 1806 const SkMatrix* deviceMatrix, 1807 void (*proc)(const SkDescriptor*, void*), 1808 void* context, bool ignoreGamma) const { 1809 SkScalerContext::Rec rec; 18…

IS_IN_BMP

400 already_AddRefed<gfxFont> 401 gfxFT2FontGroup::WhichSystemFontSupportsChar(PRUint32 aCh, PRInt32 aRunScript) 402 { 404 FontEntry *fe = static_cast<FontEntry*> 405 (gfxPlatformFontList::PlatformFontList()-> 406 SystemFindFontForChar(aCh, aRunScript, &mStyle</fontentry*></gfxfont>…

readTypeface

1875 void SkPaint::unflatten(SkFlattenableReadBuffer& buffer) { 1876 SkASSERT(SkAlign4(kPODPaintSize) == kPODPaintSize); 1877 const void* podData = buffer.skip(kPODPaintSize); 1878 const uint32_t* pod = reinterpret_cast<const uint32_t*>(podData); 1879 1880</const>…

error: 'class SkFlattenableReadBuffer' has no member named 'readPtr'

デバッグ(SK_DEBUG_DUMP)を有効にしたところ #define SK_DEBUG_DUMP #define DUMP_BUFFER_SIZE 65536 //#include "SkBuffer.h" // readPtr <=関係ないみたいだ。エラーが発生。 error: 'class SkFlattenableReadBuffer' has no member named 'readPtr' 117…

floatWidthForComplexText > setupPaint

341 float Font::floatWidthForComplexText(const TextRun& run, HashSet<const SimpleFontData*>*, GlyphOverflow*) const 342 { 343 SkPaint paint; 344 345 primaryFont()->platformData().setupPaint(&paint); 346 347 //printf("--------- complext measure %d chars\n", run.t</const>…

complextext

323 void Font::drawComplexText(GraphicsContext* gc, TextRun const& run, 324 FloatPoint const& point, int, int) const 325 { 326 SkCanvas* canvas = gc->platformContext()->mCanvas; 327 SkPaint paint; 328 329 if (!setupForText(&paint, gc, prim…

Console: Viewport argument value

334 static const char* viewportErrorMessageTemplate(ViewportErrorCode errorCode) 335 { 336 static const char* const errors[] = { 337 "Viewport argument key \"%replacement1\" not recognized and ignored.", 338 "Viewport argument value \"%rep…

SkScalerContext

164 class SkScalerContext { 165 public: 207 322 protected: 323 Rec fRec; 324 unsigned fBaseGlyphCount; 325 339 private: 342 SkPathEffect* fPathEffect; 343 SkMaskFilter* fMaskFilter; 344 SkRasterizer* fRasterizer; 345 SkScalar fDevFrameWidt…

platformWidthForGlyph

127 float SimpleFontData::platformWidthForGlyph(Glyph glyph) const 128 { 129 SkASSERT(sizeof(glyph) == 2); // compile-time assert 130 131 SkPaint paint; 132 133 m_platformData.setupPaint(&paint); 134 135 float advanceWidth; 136 if (EmojiFo…

getUnicharMetrics

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…

platformWidthForGlyph

127 float SimpleFontData::platformWidthForGlyph(Glyph glyph) const 128 { 129 SkASSERT(sizeof(glyph) == 2); // compile-time assert 130 131 SkPaint paint; 132 133 m_platformData.setupPaint(&paint); 134 135 float advanceWidth; 136 if (EmojiFo…

SkMeasureCacheProc

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…

widthForGlyph>platformWidthForGlyph

/external/webkit/Source/WebCore/platform/graphics/SimpleFontData.cpp" 50 SimpleFontData::SimpleFontData(const FontPlatformData& platformData, bool isCustomFont, bool isLoading, bool isTextOrientationFallback) 51 : m_maxCharWidth(-1) 52 , m…

skcanvas->drawText

968 void LayerAndroid::onDraw(SkCanvas* canvas, SkScalar opacity, 969 android::DrawExtra* extra, PaintStyle style) 970 { 971 if (m_haveClip) { 972 SkRect r; 973 r.set(0, 0, getSize().width(), getSize().height()); 974 canvas->clipRect(r); 9…