Home
last modified time | relevance | path

Searched refs:glyphs (Results 1 – 25 of 178) sorted by relevance

12345678

/external/harfbuzz_ng/src/
Dhb-ot-layout-common-private.hh141 inline bool intersects (const hb_set_t *glyphs) const { in intersects()
142 return glyphs->intersects (start, end); in intersects()
146 inline void add_coverage (set_t *glyphs) const { in add_coverage()
147 glyphs->add_range (start, end); in add_coverage()
639 Supplier<GlyphID> &glyphs, in serialize()
647 glyphArray[i] = glyphs[i]; in serialize()
648 glyphs.advance (num_glyphs); in serialize()
657 inline bool intersects_coverage (const hb_set_t *glyphs, unsigned int index) const { in intersects_coverage()
658 return glyphs->has (glyphArray[index]); in intersects_coverage()
662 inline void add_coverage (set_t *glyphs) const { in add_coverage()
[all …]
Dhb-ot-layout-gsub-table.hh46 if (c->glyphs->has (glyph_id)) in closure()
47 c->glyphs->add ((glyph_id + deltaGlyphID) & 0xFFFF); in closure()
70 return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
89 Supplier<GlyphID> &glyphs, in serialize()
95 …if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETUR… in serialize()
123 if (c->glyphs->has (iter.get_glyph ())) in closure()
124 c->glyphs->add (substitute[iter.get_coverage ()]); in closure()
146 return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED); in would_apply()
165 Supplier<GlyphID> &glyphs, in serialize()
172 …if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETUR… in serialize()
[all …]
Dtest-would-substitute.cc97 hb_codepoint_t glyphs[2]; in main() local
98 if (!hb_font_glyph_from_string (font, argv[3], -1, &glyphs[0]) || in main()
100 !hb_font_glyph_from_string (font, argv[4], -1, &glyphs[1]))) in main()
102 …return !hb_ot_layout_lookup_would_substitute (face, strtol (argv[2], NULL, 0), glyphs, len, false); in main()
/external/webkit/Source/WebCore/svg/
DSVGGlyphMap.h38 Vector<SVGGlyphIdentifier> glyphs; member
65 node->glyphs.append(glyph); in add()
66 node->glyphs.last().priority = m_currentPriority++; in add()
67 node->glyphs.last().nameLength = len; in add()
68 node->glyphs.last().isValid = true; in add()
77 void get(const String& string, Vector<SVGGlyphIdentifier>& glyphs) in get() argument
86 glyphs.append(node->glyphs); in get()
89 std::sort(glyphs.begin(), glyphs.end(), compareGlyphPriority); in get()
/external/webkit/Source/WebCore/platform/wx/wxcode/gtk/
Dnon-kerned-drawing.cpp165 PangoGlyphString* glyphs = pango_glyph_string_new(); in pango_font_get_glyph() local
166 pango_shape(buffer, length, &item->analysis, glyphs); in pango_font_get_glyph()
170 if (glyphs->num_glyphs == 1) in pango_font_get_glyph()
171 result = glyphs->glyphs[0].glyph; in pango_font_get_glyph()
173 g_warning("didn't get 1 glyph but %d", glyphs->num_glyphs); in pango_font_get_glyph()
175 pango_glyph_string_free(glyphs); in pango_font_get_glyph()
201 cairo_glyph_t* glyphs = NULL; in drawTextWithSpacing() local
202 glyphs = static_cast<cairo_glyph_t*>(malloc(sizeof(cairo_glyph_t) * numGlyphs)); in drawTextWithSpacing()
207glyphs[i].index = pango_font_get_glyph(pangoFont, pangoContext, glyphBuffer.glyphAt(from + i)); in drawTextWithSpacing()
208 glyphs[i].x = offset; in drawTextWithSpacing()
[all …]
/external/harfbuzz_ng/util/
Dhb-ot-shape-closure.cc58 glyphs = hb_set_create (); in init()
68 hb_set_clear (glyphs); in consume_line()
69 shaper.shape_closure (text, text_len, font, buffer, glyphs); in consume_line()
71 if (hb_set_is_empty (glyphs)) in consume_line()
76 for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);) in consume_line()
95 hb_set_destroy (glyphs); in finish()
96 glyphs = NULL; in finish()
105 hb_set_t *glyphs; member
Dhelper-cairo.hh51 cairo_glyph_t *glyphs; member
60 if (glyphs) in finish()
61 cairo_glyph_free (glyphs); in finish()
69 *x_advance = glyphs[num_glyphs].x; in get_advance()
70 *y_advance = glyphs[num_glyphs].y; in get_advance()
Dview-cairo.cc103 cairo_move_to (cr, l.glyphs[i].x, l.glyphs[i].y); in draw()
113 cairo_glyph_path (cr, l.glyphs, l.num_glyphs); in draw()
118 l.glyphs, l.num_glyphs, in draw()
122 cairo_show_glyphs (cr, l.glyphs, l.num_glyphs); in draw()
/external/harfbuzz_ng/test/api/
Dtest-buffer.c176 hb_glyph_info_t *glyphs; in test_buffer_contents() local
185 glyphs = hb_buffer_get_glyph_infos (b, &len2); in test_buffer_contents()
190 g_assert_cmphex (glyphs[i].mask, ==, 1); in test_buffer_contents()
191 g_assert_cmphex (glyphs[i].var1.u32, ==, 0); in test_buffer_contents()
192 g_assert_cmphex (glyphs[i].var2.u32, ==, 0); in test_buffer_contents()
204 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
205 g_assert_cmphex (glyphs[i].cluster, ==, cluster); in test_buffer_contents()
212 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
216 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]); in test_buffer_contents()
223 g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]); in test_buffer_contents()
[all …]
Dtest-shape.c92 hb_glyph_info_t *glyphs; in test_shape() local
116 glyphs = hb_buffer_get_glyph_infos (buffer, NULL); in test_shape()
126 g_assert_cmphex (glyphs[i].codepoint, ==, output_glyphs[i]); in test_shape()
127 g_assert_cmphex (glyphs[i].cluster, ==, i); in test_shape()
/external/webkit/Source/WebCore/platform/graphics/cairo/
DFontCairo.cpp57 …phsToContext(cairo_t* context, const SimpleFontData* font, GlyphBufferGlyph* glyphs, int numGlyphs) in drawGlyphsToContext() argument
59 cairo_show_glyphs(context, glyphs, numGlyphs); in drawGlyphsToContext()
63 cairo_show_glyphs(context, glyphs, numGlyphs); in drawGlyphsToContext()
68 …text, const FloatPoint& point, const SimpleFontData* font, GlyphBufferGlyph* glyphs, int numGlyphs) in drawGlyphsShadow() argument
83 cairo_show_glyphs(context, glyphs, numGlyphs); in drawGlyphsShadow()
89 cairo_scaled_font_glyph_extents(font->platformData().scaledFont(), glyphs, numGlyphs, &extents); in drawGlyphsShadow()
94 drawGlyphsToContext(shadowContext, font, glyphs, numGlyphs); in drawGlyphsShadow()
102 GlyphBufferGlyph* glyphs = (GlyphBufferGlyph*)glyphBuffer.glyphs(from); in drawGlyphs() local
106 glyphs[i].x = offset; in drawGlyphs()
107 glyphs[i].y = 0.0f; in drawGlyphs()
[all …]
/external/webkit/Source/WebCore/platform/graphics/skia/
DGlyphPageTreeNodeSkia.cpp44 static int substituteWithVerticalGlyphs(const SimpleFontData* fontData, uint16_t* glyphs, unsigned … in substituteWithVerticalGlyphs() argument
55 hb_buffer_add_glyph(buffer, glyphs[i], 0, i); in substituteWithVerticalGlyphs()
69 glyphs[i] = static_cast<Glyph>(buffer->out_string[i].gindex); in substituteWithVerticalGlyphs()
86 uint16_t* glyphs = glyphStorage.get(); in fill() local
88 unsigned count = paint.textToGlyphs(buffer, bufferLength * 2, glyphs); in fill()
103 substituteWithVerticalGlyphs(fontData, glyphs, bufferLength); in fill()
108 setGlyphDataForIndex(offset + i, glyphs[i], glyphs[i] ? fontData : NULL); in fill()
109 allGlyphs |= glyphs[i]; in fill()
/external/webkit/Source/WebCore/platform/graphics/win/
DUniscribeController.cpp226 Vector<WORD> glyphs; in shapeAndPlaceItem() local
234 glyphs.resize(1.5 * len + 16); in shapeAndPlaceItem()
235 visualAttributes.resize(glyphs.size()); in shapeAndPlaceItem()
237 if (!shape(str, len, item, fontData, glyphs, clusters, visualAttributes)) in shapeAndPlaceItem()
243 offsets.resize(glyphs.size()); in shapeAndPlaceItem()
244 advances.resize(glyphs.size()); in shapeAndPlaceItem()
246 …HRESULT placeResult = ScriptPlace(0, fontData->scriptCache(), glyphs.data(), glyphs.size(), visual… in shapeAndPlaceItem()
254 …placeResult = ScriptPlace(hdc, fontData->scriptCache(), glyphs.data(), glyphs.size(), visualAttrib… in shapeAndPlaceItem()
260 if (FAILED(placeResult) || glyphs.isEmpty()) in shapeAndPlaceItem()
265 Vector<int> spaceCharacters(glyphs.size()); in shapeAndPlaceItem()
[all …]
/external/webkit/Source/WebCore/platform/graphics/pango/
DGlyphPageTreeNodePango.cpp55 PangoGlyphString* glyphs = pango_glyph_string_new(); in pango_font_get_glyph() local
56 pango_shape(buffer, length, &item->analysis, glyphs); in pango_font_get_glyph()
60 if (glyphs->num_glyphs == 1) in pango_font_get_glyph()
61 result = glyphs->glyphs[0].glyph; in pango_font_get_glyph()
63 g_warning("didn't get 1 glyph but %d", glyphs->num_glyphs); in pango_font_get_glyph()
65 pango_glyph_string_free(glyphs); in pango_font_get_glyph()
/external/webkit/Source/WebCore/platform/graphics/android/fonts/
DGlyphMapAndroid.cpp47 static HB_Error substituteWithVerticalGlyphs(const FontPlatformData& platformData, uint16_t* glyphs in substituteWithVerticalGlyphs() argument
58 hb_buffer_add_glyph(buffer, glyphs[i], 0, i); in substituteWithVerticalGlyphs()
78 glyphs[i] = static_cast<Glyph>(buffer->out_string[i].gindex); in substituteWithVerticalGlyphs()
103 uint16_t* glyphs = glyphStorage.get(); in fill() local
113 unsigned count = paint.textToGlyphs(textBuffer, bufferLength << 1, glyphs); in fill()
128 if (substituteWithVerticalGlyphs(fontData->platformData(), glyphs, bufferLength)) { in fill()
133 unsigned count = paint.textToGlyphs(textBuffer, bufferLength << 1, glyphs); in fill()
150 uint16_t glyphID = glyphs[i]; in fill()
159 uint16_t glyphID = glyphs[i]; in fill()
DHarfbuzzSkia.cpp54 …B_Font hbFont, const HB_UChar16* characters, hb_uint32 length, HB_Glyph* glyphs, hb_uint32* glyphs… in stringToGlyphs() argument
61 …s = paint.textToGlyphs(characters, length * sizeof(uint16_t), reinterpret_cast<uint16_t*>(glyphs)); in stringToGlyphs()
68 memcpy(&value, reinterpret_cast<char*>(glyphs) + sizeof(uint16_t) * i, sizeof(value)); in stringToGlyphs()
69 glyphs[i] = value; in stringToGlyphs()
76 static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, hb_uint32 numGlyphs, HB_Fixed*… in glyphsToAdvances() argument
88 glyphs16[i] = glyphs[i]; in glyphsToAdvances()
/external/webkit/Source/WebCore/platform/graphics/mac/
DGlyphPageTreeNodeMac.cpp60 Vector<CGGlyph, 512> glyphs(bufferLength); in fill() local
61 … wkGetGlyphsForCharacters(fontData->platformData().cgFont(), buffer, glyphs.data(), bufferLength); in fill()
63 if (!glyphs[i]) in fill()
66 setGlyphDataForIndex(offset + i, glyphs[i], fontData); in fill()
104 const CGGlyph* glyphs = CTRunGetGlyphsPtr(ctRun); in fill() local
105 if (!glyphs) { in fill()
108 glyphs = glyphVector.data(); in fill()
122 if (glyphs[i]) { in fill()
123 setGlyphDataForIndex(offset + stringIndices[i], glyphs[i], fontData); in fill()
/external/harfbuzz_ng/contrib/python/scripts/
Dhbtestfont68 def __init__(self, fontname, bold, italic, size, glyphs) : argument
72 self.glyphs = glyphs
98 cr.show_glyphs(self.glyphs) # [(gid, originx, originy)]
100 glyphs = [] variable
103 glyphs.append((g.gid, org[0] + g.offset[0], org[1] - g.offset[1]))
113 w = GlyphsWindow(family, opts.bold, opts.italic, opts.size, glyphs)
/external/icu4c/test/letest/
Dletest.cpp59 LEGlyphID *glyphs = NULL; in ParamTest() local
69 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest()
80 engine->getGlyphs(glyphs, status); in ParamTest()
94 engine->getGlyphs(glyphs, 0xFF000000L, status); in ParamTest()
144 DELETE_ARRAY(glyphs); in ParamTest()
245 LEGlyphID glyphs[6], extraBitGlyphs[6];; in AccessTest() local
266 engine->getGlyphs(glyphs, status); in AccessTest()
281 if (extraBitGlyphs[glyph] != (glyphs[glyph] | 0xFF000000L)) { in AccessTest()
283 glyph, glyph, extraBitGlyphs[glyph], glyphs[glyph]); in AccessTest()
340 if (actual->glyphs[i] != expected->glyphs[i]) { in compareResults()
[all …]
Dcletest.c42 LEGlyphID *glyphs = NULL; in ParamTest() local
60 glyphs = NEW_ARRAY(LEGlyphID, glyphCount + 10); in ParamTest()
71 le_getGlyphs(engine, glyphs, &status); in ParamTest()
121 DELETE_ARRAY(glyphs); in ParamTest()
215 LEGlyphID glyphs[6]; in AccessTest() local
236 le_getGlyphs(engine, glyphs, &status); in AccessTest()
296 if (actual->glyphs[i] != expected->glyphs[i]) { in compareResults()
298 testID, i, expected->glyphs[i], actual->glyphs[i]); in compareResults()
472 actual.glyphs = NEW_ARRAY(LEGlyphID, actual.glyphCount); in doTestCase()
476 le_getGlyphs(engine, actual.glyphs, &status); in doTestCase()
[all …]
/external/skia/legacy/src/ports/
DSkHarfBuzzFont.cpp26 hb_uint32 length, HB_Glyph* glyphs, in stringToGlyphs() argument
34 reinterpret_cast<uint16_t*>(glyphs)); in stringToGlyphs()
41 memcpy(&value, reinterpret_cast<char*>(glyphs) + sizeof(uint16_t) * i, sizeof(uint16_t)); in stringToGlyphs()
42 glyphs[i] = value; in stringToGlyphs()
49 static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, in glyphsToAdvances() argument
63 glyphs16[i] = SkToU16(glyphs[i]); in glyphsToAdvances()
/external/skia/src/ports/
DSkHarfBuzzFont.cpp26 hb_uint32 length, HB_Glyph* glyphs, in stringToGlyphs() argument
34 reinterpret_cast<uint16_t*>(glyphs)); in stringToGlyphs()
41 memcpy(&value, reinterpret_cast<char*>(glyphs) + sizeof(uint16_t) * i, sizeof(uint16_t)); in stringToGlyphs()
42 glyphs[i] = value; in stringToGlyphs()
49 static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, in glyphsToAdvances() argument
63 glyphs16[i] = SkToU16(glyphs[i]); in glyphsToAdvances()
/external/webkit/Source/WebCore/platform/wx/wxcode/win/
Dnon-kerned-drawing.cpp106 const GlyphBufferGlyph* glyphs = glyphBuffer.glyphs(from); in drawTextWithSpacing() local
124 wxString string = wxString((wxChar*)(&glyphs[from]), numGlyphs); in drawTextWithSpacing()
125 …::ExtTextOut(hdc, x, y, ETO_GLYPH_INDEX, 0, reinterpret_cast<const WCHAR*>(glyphs), numGlyphs, sp… in drawTextWithSpacing()
/external/webkit/Source/WebCore/platform/graphics/chromium/
DHarfbuzzSkia.cpp58 …B_Font hbFont, const HB_UChar16* characters, hb_uint32 length, HB_Glyph* glyphs, hb_uint32* glyphs… in stringToGlyphs() argument
74 …s = paint.textToGlyphs(characters, length * sizeof(uint16_t), reinterpret_cast<uint16_t*>(glyphs)); in stringToGlyphs()
81 memcpy(&value, reinterpret_cast<char*>(glyphs) + sizeof(uint16_t) * i, sizeof(uint16_t)); in stringToGlyphs()
82 glyphs[i] = value; in stringToGlyphs()
89 static void glyphsToAdvances(HB_Font hbFont, const HB_Glyph* glyphs, hb_uint32 numGlyphs, HB_Fixed*… in glyphsToAdvances() argument
101 glyphs16[i] = glyphs[i]; in glyphsToAdvances()
/external/harfbuzz_ng/src/hb-old/
Dharfbuzz-shaper.cpp46 HB_Glyph *glyphs = item->glyphs; in positionCluster() local
50 item->font->klass->getGlyphMetrics(item->font, glyphs[gfrom], &baseMetrics); in positionCluster()
78 HB_Glyph mark = glyphs[gfrom+i]; in positionCluster()
359 shaper_item->glyphs, &shaper_item->num_glyphs, in HB_ConvertStringToGlyphIndices()
812 HB_Buffer_add_glyph(face->buffer, item->glyphs[i], properties ? properties[i] : 0, i); in HB_OpenTypeShape()
822 DEBUG("original glyphs: %p", item->glyphs); in HB_OpenTypeShape()
873 HB_Glyph *glyphs = item->glyphs; in HB_OpenTypePosition() local
877 glyphs[i] = face->buffer->in_string[i].gindex; in HB_OpenTypePosition()
974 glyphs[i].glyph, hb_buffer->in_string[i].cluster, glyphs[i].attributes.mark, in HB_OpenTypePosition()
975 glyphs[i].attributes.combiningClass, glyphs[i].attributes.clusterStart, in HB_OpenTypePosition()
[all …]

12345678