のねのBlog

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

2015-02-23から1日間の記事一覧

weight bold

41 42 // Resolve the 1..9 weight based on base weight and bold flag 43 static void resolveStyle(TypefaceImpl* typeface) { 44 int weight = typeface->fBaseWeight / 100; 45 if (typeface->fSkiaStyle & SkTypeface::kBold) { 46 weight += 3; 47 } …

aggregation composition

aggregationは、元がなくなっても単体で残ることができます。 たとえば車とエンジンの関係で、車がなくなったとしてもエンジンはエンジンとして残ることができます。compositionは、元がなくなると一緒に消滅します。 たとえばタクシーと運転手の関係で、車…