のねのBlog

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

Fonts

quick_settings_panel

SystemUI TypefaceFontFamily 860 // Set up the quick settings tile panel 861 mQSPanel = (QSPanel) mStatusBarWindow.findViewById(R.id.quick_settings_panel); 862 if (mQSPanel != null) { 863 final QSTileHost qsh = new QSTileHost(mContext, this…

Android Gerrit 検索方法

コミットメッセージ内の検索(message:) message:japanese message:font message:typeface message:FontFamily ファイル名での検索(f:) f:Typeface.java f:Typeface.cpp f:TypefaceImpl.h FontFamily.cpp f:Paint.cpp プロジェクト名での検索(project:) proje…

TypefaceImpl

29 struct TypefaceImpl { 30 FontCollection *fFontCollection; 31 32 // style used for constructing and querying Typeface objects 33 SkTypeface::Style fSkiaStyle; 34 // base weight in CSS-style units, 100..900 35 int fBaseWeight; 36 37 // re…

FontFamily

32 public FontFamily() { 33 mNativePtr = nCreateFamily(null, 0); 34 if (mNativePtr == 0) { 35 throw new IllegalStateException("error creating native FontFamily"); 36 } 37 } 39 public FontFamily(String lang, String variant) { 40 int varEnum…

harfbuzzGetGlyph

341 hb_font_funcs_t* getHbFontFuncs() { 342 static hb_font_funcs_t* hbFontFuncs = 0; 343 344 if (hbFontFuncs == 0) { 345 hbFontFuncs = hb_font_funcs_create(); 346 hb_font_funcs_set_glyph_func( hbFontFuncs, harfbuzzGetGlyph, 0, 0); 347 hb_f…

harfbuzz-ng

79 static hb_bool_t harfbuzzGetGlyph( hb_font_t* hbFont, void* fontData, hb_codepoint_t unicode, hb_codepoint_t variationSelector, hb_codepoint_t* glyph, void* userData) 80 { 81 HarfBuzzFontData* hbFontData = reinterpret_cast<HarfBuzzFontData*>(fontData); 82</harfbuzzfontdata*>…

hb_font_set_funcs

163 hb_font_t* createFont(hb_face_t* face, SkPaint* paint, float sizeX, float sizeY) { 164 hb_font_t* font = hb_font_create(face); 165 166 // Note: this needs to be reworked when we do subpixels 167 int x_ppem = floor(sizeX + 0.5); 168 int…

Typeface

/frameworks/base/graphics/java/android/graphics/Typeface.java/frameworks/base/core/jni/android/graphics/Typeface.cpp /frameworks/base/core/jni/android/graphics/TypefaceImpl.cpp /frameworks/base/core/jni/android/graphics/TypefaceImpl.h/fram…

MinikinFontSkia::populateSkPaint

118 void MinikinFontSkia::populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery) { 119 paint->setTypeface(reinterpret_cast<const MinikinFontSkia*>(font)->GetSkTypeface()); 120 paint->setFakeBoldText(paint->isFakeBoldText() || fakery.isFakeBol</const>…

MinikinFontSkia

50 static jboolean addSkTypeface(FontFamily* family, SkTypeface* face) { 51 MinikinFont* minikinFont = new MinikinFontSkia(face); 52 bool result = family->addFont(minikinFont); 53 minikinFont->Unref(); 54 return result; 55 } 27 MinikinFont…

android::MinikinFont Class

android::MinikinFont Class android::MinikinFontSkia Class /frameworks/base/core/jni/android/graphics/MinikinSkia.cpp http://tools.oesf.biz/android-5.0.1_r1.0/xref/frameworks/base/core/jni/android/graphics/MinikinSkia.cpp#35

Typeface.DEFAULT

335 static { 344 sDefaults = new Typeface[] { 338 create((String) null, 0); 339 create((String) null, Typeface.BOLD); 347 create((String) null, Typeface.ITALIC), 348 create((String) null, Typeface.BOLD_ITALIC), 349 }; 350 351 } familyName …

setDefault

84 private static void setDefault(Typeface t) { 85 sDefaultTypeface = t; 86 nativeSetDefault(t.native_instance); 87 } 65 static void Typeface_setDefault(JNIEnv *env, jobject, jlong faceHandle) { 66 TypefaceImpl* face = reinterpret_cast<TypefaceImpl*>(fac</typefaceimpl*>…

PurgeFontCache

129 void SkGraphics::Term() { 130 PurgeFontCache(); 131 SkPaint::Term(); 132 } 750 void SkGraphics::PurgeFontCache() { 751 getSharedGlobals().purgeAll(); 752 SkTypefaceCache::PurgeAll(); 753 }

Cache

4186 final void handleLowMemory() { 4187 ArrayList<ComponentCallbacks2> callbacks = collectComponentCallbacks(true, null); 4188 4189 final int N = callbacks.size(); 4190 for (int i=0; i</componentcallbacks2>

createFromFile

199 public static Typeface createFromFile(File path) { 200 return createFromFile(path.getAbsolutePath()); 201 } 374 public String getAbsolutePath() { 375 if (isAbsolute()) { 376 return path; 377 } 378 String userDir = System.getProperty("u…

makeFamilyFromParsed

262 private static FontFamily makeFamilyFromParsed(FontListParser.Family family) { 263 FontFamily fontFamily = new FontFamily(family.lang, family.variant); 264 for (FontListParser.Font font : family.fonts) { 265 fontFamily.addFontWeightSty…

addSkTypeface

50 static jboolean addSkTypeface(FontFamily* family, SkTypeface* face) { 51 MinikinFont* minikinFont = new MinikinFontSkia(face); 52 bool result = family->addFont(minikinFont); 53 minikinFont->Unref(); 54 return result; 55 } 27 MinikinFont…

nUnrefFamily(mNativePtr)

52 @Override 53 protected void finalize() throws Throwable { 54 try { 55 nUnrefFamily(mNativePtr); 56 } finally { 57 super.finalize(); 58 } 59 } 45 static void FontFamily_unref(JNIEnv* env, jobject clazz, jlong familyPtr) { 46 FontFamily* …

breakポイントのかけ方

(gdb) sharedlibrary libminikin.so warning: while parsing target library list: not well-formed (invalid token) Error reading attached process's symbol file. com.android.settings: No such file or directory. Reading symbols from /home/LP500_d…

SkTypefaceCache::purgeAll

104 void SkTypefaceCache::purgeAll() { 105 this->purge(fArray.count()); 106 } 750 void SkGraphics::PurgeFontCache() { 751 getSharedGlobals().purgeAll(); 752 SkTypefaceCache::PurgeAll(); 753 } 673 static void freeCaches(JNIEnv* env, jobject…

getInstanceForChar

588 void Layout::doLayoutRunCached(const uint16_t* buf, size_t start, size_t count, size_t bufSize, 589 bool isRtl, LayoutContext* ctx, size_t dstStart) { 590 if (!isRtl) { 591 // left to right 592 size_t wordstart = start == bufSize ? sta…

fontFamily.Name' は、型 'System.ArgumentException' の例外をスローしました。

base {System.MarshalByRefObject} = { Name = '((System.Drawing.Font)(((System.Drawing.Font)(fnt)))). fontFamily.Name' は、型 'System.ArgumentException' の例外をスローしました。 Size=100.0 } _message = "使用されたパラメーターが有効ではありま…

Raspberry Piで、Freetypeの出力をOpenVGで表示

static void MyRenderNative(NATIVE_FONT_INFO *nfi, NATIVE_OPENVG_INFO *nopvgi, NATIVE_VIEWER_INFO *nvi) { uint top_space = 1; uint bottom_space = 1; uint left_space = 1; uint right_space = 1; uint oneChar_width = 0; uint oneChar_height = 0;…

FreeTypeのmodules.cfg

# modules.cfg # # Copyright 2005-2007, 2009-2011, 2013 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType …

raspberry pi freetype make

pi@raspberrypi ~/freetype/freetype-2.5.3.tar/freetype-2.5.3 $ make FreeType build system -- automatic system detection The following settings are used: platform unix compiler cc configuration directory ./builds/unix configuration rules ./b…

ndk-buildが動かない。

パスは通してあるけど、エラーになる。 **** Build of configuration Default for project LsFontViewer **** D:\android-ndk-r9d\ndk-build V=1 NDK_DEBUG=1 Cannot run program "D:\android-ndk-r9d\ndk-build": Launching failed Error: Program "D:/andr…

CyanogenMod Theme

private Typeface loadTypeface(Family family, int style) { AssetManager assets = mThemeContext.getAssets(); String path = FONTS_DIR + family.fileset.get(style); return Typeface.createFromAsset(assets, path); } @Override public void onCreate…

windowsのopengl32.libのexport

opengl32.libのexport

getUniqueString

855 const char* name = ((FamilyTypeface*)face)->getUniqueString(); 856 857 stream->write8((uint8_t)face->style()); 858 859 if (NULL == name || 0 == *name) { 860 stream->writePackedUInt(0); 861 // SkDebugf("--- fonthost serialize null\n"); …