Home
last modified time | relevance | path

Searched refs:numGlyphs (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DHarfbuzzSkia.cpp57 int numGlyphs = paint->textToGlyphs(characters, length * sizeof(uint16_t), skiaGlyphs); in stringToGlyphs() local
61 for (int i = numGlyphs - 1; i >= 0; --i) { in stringToGlyphs()
65 *glyphsSize = numGlyphs; in stringToGlyphs()
69 static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, hb_uint32 numGlyphs, in glyphsToAdvances() argument
75 uint16_t* glyphs16 = new uint16_t[numGlyphs]; in glyphsToAdvances()
78 for (unsigned i = 0; i < numGlyphs; ++i) in glyphsToAdvances()
81 paint->getTextWidths(glyphs16, numGlyphs * sizeof(uint16_t), scalarAdvances); in glyphsToAdvances()
86 for (unsigned i = 0; i < numGlyphs; ++i) { in glyphsToAdvances()
101 int numGlyphs = paint->textToGlyphs(characters, length * sizeof(uint16_t), glyphs16); in canRender() local
104 for (int i = 0; i < numGlyphs; ++i) { in canRender()
/frameworks/base/libs/hwui/font/
DFont.h55 int numGlyphs, int x, int y, uint8_t *bitmap = NULL,
59 int numGlyphs, int x, int y, const float* positions);
62 int numGlyphs, SkPath* path, float hOffset, float vOffset);
82 void precache(SkPaint* paint, const char* text, int numGlyphs);
85 int numGlyphs, int x, int y, RenderMode mode, uint8_t *bitmap,
89 int numGlyphs, Rect *bounds, const float* positions);
DFont.cpp187 int numGlyphs, int x, int y, uint8_t *bitmap, uint32_t bitmapW, uint32_t bitmapH) { in render() argument
189 render(paint, text, start, len, numGlyphs, x, y, BITMAP, bitmap, in render()
192 render(paint, text, start, len, numGlyphs, x, y, FRAMEBUFFER, NULL, in render()
198 int numGlyphs, int x, int y, const float* positions) { in render() argument
199 render(paint, text, start, len, numGlyphs, x, y, FRAMEBUFFER, NULL, in render()
204 int numGlyphs, SkPath* path, float hOffset, float vOffset) { in render() argument
205 if (numGlyphs == 0 || text == NULL || len == 0) { in render()
232 while (glyphsCount < numGlyphs && penX < pathLength) { in render()
254 int numGlyphs, Rect *bounds, const float* positions) { in measure() argument
260 render(paint, text, start, len, numGlyphs, 0, 0, MEASURE, NULL, 0, 0, bounds, positions); in measure()
[all …]
/frameworks/base/libs/hwui/
DFontRenderer.h52 void precache(SkPaint* paint, const char* text, int numGlyphs);
56 uint32_t len, int numGlyphs, int x, int y, Rect* bounds);
59 uint32_t len, int numGlyphs, int x, int y, const float* positions, Rect* bounds);
62 uint32_t len, int numGlyphs, SkPath* path, float hOffset, float vOffset, Rect* bounds);
83 uint32_t len, int numGlyphs, uint32_t radius, const float* positions);
DFontRenderer.cpp488 uint32_t startIndex, uint32_t len, int numGlyphs, uint32_t radius, const float* positions) { in renderDropShadow() argument
506 mCurrentFont->measure(paint, text, startIndex, len, numGlyphs, &bounds, positions); in renderDropShadow()
519 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, penX, penY, in renderDropShadow()
551 void FontRenderer::precache(SkPaint* paint, const char* text, int numGlyphs) { in precache() argument
567 font->precache(paint, text, numGlyphs); in precache()
571 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, Rect* bounds) { in renderText() argument
578 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y); in renderText()
585 uint32_t startIndex, uint32_t len, int numGlyphs, int x, int y, in renderPosText() argument
593 mCurrentFont->render(paint, text, startIndex, len, numGlyphs, x, y, positions); in renderPosText()
600 uint32_t startIndex, uint32_t len, int numGlyphs, SkPath* path, in renderTextOnPath() argument
[all …]
DTextDropShadowCache.cpp105 int numGlyphs, uint32_t radius, const float* positions) { in get() argument
113 len, numGlyphs, radius, positions); in get()
DTextDropShadowCache.h133 int numGlyphs, uint32_t radius, const float* positions);
/frameworks/rs/
DrsFont.cpp160 uint32_t start, int32_t numGlyphs, in renderUTF() argument
163 if (!mInitialized || numGlyphs == 0 || text == NULL || len == 0) { in renderUTF()
178 if (numGlyphs > 0) { in renderUTF()
179 glyphsLeft = numGlyphs; in renderUTF()
217 if (numGlyphs > 0) { in renderUTF()
746 uint32_t startIndex, int32_t numGlyphs, in renderText() argument
773 currentFont->renderUTF(text, len, x, y, startIndex, numGlyphs, in renderText()
DrsFont.h87 uint32_t start, int32_t numGlyphs,
150 uint32_t startIndex = 0, int numGlyphs = -1,