Searched refs:glyphs (Results 1 - 25 of 84) sorted by relevance

1234

/external/webkit/Source/WebCore/svg/
H A DSVGGlyphMap.h38 Vector<SVGGlyphIdentifier> glyphs; member in struct:WebCore::GlyphMapNode
65 node->glyphs.append(glyph);
66 node->glyphs.last().priority = m_currentPriority++;
67 node->glyphs.last().nameLength = len;
68 node->glyphs.last().isValid = true;
77 void get(const String& string, Vector<SVGGlyphIdentifier>& glyphs) argument
86 glyphs.append(node->glyphs);
89 std::sort(glyphs.begin(), glyphs
[all...]
/external/webkit/Source/WebCore/platform/graphics/pango/
H A DGlyphPageTreeNodePango.cpp55 PangoGlyphString* glyphs = pango_glyph_string_new(); local
56 pango_shape(buffer, length, &item->analysis, glyphs);
60 if (glyphs->num_glyphs == 1)
61 result = glyphs->glyphs[0].glyph;
63 g_warning("didn't get 1 glyph but %d", glyphs->num_glyphs);
65 pango_glyph_string_free(glyphs);
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DGlyphPageTreeNodeSkia.cpp44 static int substituteWithVerticalGlyphs(const SimpleFontData* fontData, uint16_t* glyphs, unsigned bufferLength) argument
55 hb_buffer_add_glyph(buffer, glyphs[i], 0, i);
69 glyphs[i] = static_cast<Glyph>(buffer->out_string[i].gindex);
86 uint16_t* glyphs = glyphStorage.get(); local
88 unsigned count = paint.textToGlyphs(buffer, bufferLength * 2, glyphs);
103 substituteWithVerticalGlyphs(fontData, glyphs, bufferLength);
108 setGlyphDataForIndex(offset + i, glyphs[i], glyphs[i] ? fontData : NULL);
109 allGlyphs |= glyphs[i];
H A DSkiaFontWin.h49 // Removes any cached glyphs from the outline cache corresponding to the
91 const WORD* glyphs,
/external/icu4c/samples/layout/
H A Drsurface.cpp16 void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count, argument
21 rs->drawGlyphs((const LEFontInstance *) font, glyphs, count, positions, x, y, width, height);
H A DRenderingSurface.h26 virtual void drawGlyphs(const LEFontInstance *font, const LEGlyphID *glyphs, le_int32 count,
H A DSurface.h12 void drawGlyphs(RenderingFontInstance *font, const LEGlyphID *glyphs, le_int32 count, const le_int32 *dx,
H A Drsurface.h16 void rs_drawGlyphs(rs_surface *surface, const le_font *font, const LEGlyphID *glyphs, le_int32 count,
H A DSurface.cpp15 void GDISurface::drawGlyphs(RenderingFontInstance *font, const LEGlyphID *glyphs, le_int32 count, const le_int32 *dx, argument
28 glyphs, count, (INT *) dx);
H A DGnomeFontInstance.cpp41 void GnomeSurface::drawGlyphs(const LEFontInstance *font, const LEGlyphID *glyphs, le_int32 count, argument
46 gFont->rasterizeGlyphs(fCairo, glyphs, count, positions, x, y);
178 void GnomeFontInstance::rasterizeGlyphs(cairo_t *cairo, const LEGlyphID *glyphs, le_int32 glyphCount, const float *positions, argument
185 TTGlyphID glyph = LE_GET_GLYPH(glyphs[in]);
/external/webkit/Source/WebCore/platform/wx/wxcode/gtk/
H A Dnon-kerned-drawing.cpp165 PangoGlyphString* glyphs = pango_glyph_string_new(); local
166 pango_shape(buffer, length, &item->analysis, glyphs);
170 if (glyphs->num_glyphs == 1)
171 result = glyphs->glyphs[0].glyph;
173 g_warning("didn't get 1 glyph but %d", glyphs->num_glyphs);
175 pango_glyph_string_free(glyphs);
201 cairo_glyph_t* glyphs = NULL; local
202 glyphs = static_cast<cairo_glyph_t*>(malloc(sizeof(cairo_glyph_t) * numGlyphs));
207 glyphs[
[all...]
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
H A DGlyphMapAndroid.cpp47 static HB_Error substituteWithVerticalGlyphs(const FontPlatformData& platformData, uint16_t* glyphs, unsigned bufferLength) argument
58 hb_buffer_add_glyph(buffer, glyphs[i], 0, i);
78 glyphs[i] = static_cast<Glyph>(buffer->out_string[i].gindex);
103 uint16_t* glyphs = glyphStorage.get(); local
108 // Convert to vertical form if there is no vertical glyphs.
113 unsigned count = paint.textToGlyphs(textBuffer, bufferLength << 1, glyphs);
128 if (substituteWithVerticalGlyphs(fontData->platformData(), glyphs, bufferLength)) {
133 unsigned count = paint.textToGlyphs(textBuffer, bufferLength << 1, glyphs);
150 uint16_t glyphID = glyphs[i];
159 uint16_t glyphID = glyphs[
[all...]
H A DHarfbuzzSkia.cpp54 static HB_Bool stringToGlyphs(HB_Font hbFont, const HB_UChar16* characters, hb_uint32 length, HB_Glyph* glyphs, hb_uint32* glyphsSize, HB_Bool isRTL) argument
61 int numGlyphs = paint.textToGlyphs(characters, length * sizeof(uint16_t), reinterpret_cast<uint16_t*>(glyphs));
64 // |glyphs| array needs to be converted.
68 memcpy(&value, reinterpret_cast<char*>(glyphs) + sizeof(uint16_t) * i, sizeof(value));
69 glyphs[i] = value;
76 static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, hb_uint32 numGlyphs, HB_Fixed* advances, int flags) argument
88 glyphs16[i] = glyphs[i];
/external/webkit/Source/WebCore/platform/graphics/mac/
H A DGlyphPageTreeNodeMac.cpp60 Vector<CGGlyph, 512> glyphs(bufferLength);
61 wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength);
63 if (!glyphs[i])
66 setGlyphDataForIndex(offset + i, glyphs[i], fontData);
71 // We ask CoreText for possible vertical variant glyphs
102 // This run uses the font we want. Extract glyphs.
104 const CGGlyph* glyphs = CTRunGetGlyphsPtr(ctRun); local
105 if (!glyphs) {
108 glyphs = glyphVector.data();
122 if (glyphs[
[all...]
H A DFontMac.mm81 static void showGlyphsWithAdvances(const FloatPoint& point, const SimpleFontData* font, CGContextRef context, const CGGlyph* glyphs, const CGSize* advances, size_t count)
105 CTFontGetVerticalTranslationsForGlyphs(platformData.ctFont(), glyphs, translations.data(), count);
117 CGContextShowGlyphsAtPositions(context, glyphs, positions.data(), count);
120 CGContextShowGlyphsWithAdvances(context, glyphs, advances, count);
135 CTFontDrawGlyphs(platformData.ctFont(), glyphs, positions.data(), count, context);
235 showGlyphsWithAdvances(FloatPoint(shadowTextX, shadowTextY), font, cgContext, glyphBuffer.glyphs(from), glyphBuffer.advances(from), numGlyphs);
237 showGlyphsWithAdvances(FloatPoint(shadowTextX + font->syntheticBoldOffset(), shadowTextY), font, cgContext, glyphBuffer.glyphs(from), glyphBuffer.advances(from), numGlyphs);
241 showGlyphsWithAdvances(point, font, cgContext, glyphBuffer.glyphs(from), glyphBuffer.advances(from), numGlyphs);
243 showGlyphsWithAdvances(FloatPoint(point.x() + font->syntheticBoldOffset(), point.y()), font, cgContext, glyphBuffer.glyphs(from), glyphBuffer.advances(from), numGlyphs);
/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DFontCairo.cpp57 static void drawGlyphsToContext(cairo_t* context, const SimpleFontData* font, GlyphBufferGlyph* glyphs, int numGlyphs) argument
59 cairo_show_glyphs(context, glyphs, numGlyphs);
63 cairo_show_glyphs(context, glyphs, numGlyphs);
68 static void drawGlyphsShadow(GraphicsContext* graphicsContext, const FloatPoint& point, const SimpleFontData* font, GlyphBufferGlyph* glyphs, int numGlyphs) argument
83 cairo_show_glyphs(context, glyphs, numGlyphs);
89 cairo_scaled_font_glyph_extents(font->platformData().scaledFont(), glyphs, numGlyphs, &extents);
94 drawGlyphsToContext(shadowContext, font, glyphs, numGlyphs);
102 GlyphBufferGlyph* glyphs = (GlyphBufferGlyph*)glyphBuffer.glyphs(from); local
106 glyphs[
[all...]
/external/webkit/Source/WebCore/platform/graphics/win/
H A DUniscribeController.cpp226 Vector<WORD> glyphs; local
234 glyphs.resize(1.5 * len + 16);
235 visualAttributes.resize(glyphs.size());
237 if (!shape(str, len, item, fontData, glyphs, clusters, visualAttributes))
240 // We now have a collection of glyphs.
243 offsets.resize(glyphs.size());
244 advances.resize(glyphs.size());
246 HRESULT placeResult = ScriptPlace(0, fontData->scriptCache(), glyphs.data(), glyphs.size(), visualAttributes.data(),
254 placeResult = ScriptPlace(hdc, fontData->scriptCache(), glyphs
379 shape(const UChar* str, int len, SCRIPT_ITEM item, const SimpleFontData* fontData, Vector<WORD>& glyphs, Vector<WORD>& clusters, Vector<SCRIPT_VISATTR>& visualAttributes) argument
[all...]
/external/icu4c/layout/
H A DLEInsertionList.cpp20 LEGlyphID glyphs[ANY_NUMBER]; member in struct:InsertionRecord
82 return insertion->glyphs;
88 if (callback->applyInsertion(rec->position, rec->count, rec->glyphs)) {
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DFontHaiku.cpp84 GlyphBufferGlyph* glyphs = const_cast<GlyphBufferGlyph*>(glyphBuffer.glyphs(from)); local
88 charUnicodeToUTF8HACK(glyphs[i], out);
/external/icu4c/test/letest/
H A Dletest.h38 LEGlyphID *glyphs; member in struct:TestResult
/external/webkit/Source/WebCore/platform/wx/wxcode/win/
H A Dnon-kerned-drawing.cpp106 const GlyphBufferGlyph* glyphs = glyphBuffer.glyphs(from); local
124 wxString string = wxString((wxChar*)(&glyphs[from]), numGlyphs);
125 ::ExtTextOut(hdc, x, y, ETO_GLYPH_INDEX, 0, reinterpret_cast<const WCHAR*>(glyphs), numGlyphs, spacing);
/external/harfbuzz/contrib/
H A Dharfbuzz-freetype.c18 HB_Glyph *glyphs, hb_uint32 *numGlyphs,
27 glyphs[j++] = FT_Get_Char_Index(face, cp);
36 hb_freetype_advances_get(HB_Font font, const HB_Glyph *glyphs, hb_uint32 len, argument
42 const FT_Error error = FT_Load_Glyph(face, glyphs[i], FT_LOAD_DEFAULT);
16 hb_freetype_string_to_glyphs(HB_Font font, const HB_UChar16 *chars, hb_uint32 len, HB_Glyph *glyphs, hb_uint32 *numGlyphs, HB_Bool is_rtl) argument
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DSimpleFontDataLinux.cpp188 uint16_t glyphs[maxBufferCount]; local
194 int n = SkMin32(length, SK_ARRAY_COUNT(glyphs));
197 int count = paint.textToGlyphs(characters, n * 2, glyphs);
199 if (0 == glyphs[i])
H A DFontLinux.cpp85 const GlyphBufferGlyph* glyphs = glyphBuffer.glyphs(from); local
133 canvas->drawTextOnPath(glyphs + i, 2, path, 0, paint);
136 canvas->drawPosText(glyphs, numGlyphs << 1, pos, paint);
162 canvas->drawTextOnPath(glyphs + i, 2, path, 0, paint);
165 canvas->drawPosText(glyphs, numGlyphs << 1, pos, paint);
228 canvas->drawPosTextH(controller.glyphs(), controller.length() << 1, controller.xPositions(), point.y(), fillPaint);
234 canvas->drawPosTextH(controller.glyphs(), controller.length() << 1, controller.xPositions(), point.y(), strokePaint);
255 // Iterate through the glyphs in logical order, seeing whether targetX falls between the previous
306 // that /no/ code points contributed to certain glyphs
[all...]
/external/skia/src/ports/
H A DSkHarfBuzzFont.cpp26 hb_uint32 length, HB_Glyph* glyphs,
34 reinterpret_cast<uint16_t*>(glyphs));
37 // |glyphs| array needs to be converted.
41 memcpy(&value, reinterpret_cast<char*>(glyphs) + sizeof(uint16_t) * i, sizeof(uint16_t));
42 glyphs[i] = value;
49 static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, argument
61 // convert HB 32bit glyphs to skia's 16bit
63 glyphs16[i] = SkToU16(glyphs[i]);
25 stringToGlyphs(HB_Font hbFont, const HB_UChar16* characters, hb_uint32 length, HB_Glyph* glyphs, hb_uint32* glyphsSize, HB_Bool isRTL) argument

Completed in 347 milliseconds

1234