Home | History | Annotate | Download | only in sample

Lines Matching refs:layout

17 // This is a test program that uses Minikin to layout and draw some text.
28 #include <minikin/Layout.h>
82 void drawToSkia(SkCanvas *canvas, SkPaint *paint, Layout *layout, float x, float y) {
83 size_t nGlyphs = layout->nGlyphs();
92 MinikinFontSkia *mfs = static_cast<MinikinFontSkia *>(layout->getFont(i));
94 glyphs[i] = layout->getGlyphId(i);
95 pos[i].fX = x + layout->getX(i);
96 pos[i].fY = y + layout->getY(i);
115 Layout::init();
118 Layout layout;
119 layout.setFontCollection(collection);
127 layout.doLayout(icuText.getBuffer(), 0, icuText.length(), icuText.length(), bidiFlags, fontStyle, minikinPaint);
128 layout.dump();
143 canvas.drawLine(10, 300, 10 + layout.getAdvance(), 300, paint);
145 drawToSkia(&canvas, &paint, &layout, 10, 300);