のねのBlog

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

2015-01-06から1日間の記事一覧

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…