Searched refs:widths (Results 1 - 25 of 91) sorted by relevance

1234

/external/skia/gm/
H A Dskbug_5321.cpp24 SkAutoTMalloc<SkScalar> widths(glyph_count);
25 (void)paint.getTextWidths(text, byteLength, &widths[0]);
27 SkScalar w = widths[i];
28 widths[i] = x;
32 canvas->drawPosTextH(text, byteLength, &widths[0], y, paint);
H A Dhugepath.cpp18 const float widths[] = { 0.9f, 1.0f, 1.1f }; local
21 for (float w : widths) {
H A Dglyph_pos_align.cpp41 SkScalar widths[kMaxStringLength]; local
47 paint.getTextWidths(text, length, widths);
59 posX[i] = x + originX * widths[i];
61 x += widths[i];
H A Dgetpostextpath.cpp42 SkAutoTArray<SkScalar> widths(len);
43 paint.getTextWidths(text, len, &widths[0]);
50 x += widths[i];
H A Dpdf_never_embed.cpp17 SkAutoTArray<SkScalar> widths(SkToInt(textLen));
18 paint.getTextWidths(text, textLen, &widths[0]);
22 x += widths[i];
H A Dtexteffects.cpp109 SkTDArray<SkScalar> widths; local
110 widths.setCount(widthCount);
111 (void) paint.getTextWidths(test, sizeof(test) - 1, widths.begin());
117 posX += widths[index];
153 SkAutoTArray<SkScalar> widths(glyphCount);
154 blobPaint.getTextWidths(glyphs.get(), glyphTextBytes, widths.get());
169 advance += widths[glyphIndex++];
183 advance += widths[glyphIndex++];
196 advance += widths[glyphIndex++];
258 SkTDArray<SkScalar> widths; local
[all...]
H A Dscaledemoji.cpp111 SkAutoTArray<SkScalar> widths(len);
112 paint.getTextWidths(text, len, &widths[0]);
117 x += widths[i];
H A Dskbug_257.cpp36 SkAutoTArray<SkScalar> widths(count);
37 paint.getTextWidths(text, textLen, &widths[0]);
41 x += widths[i];
52 SkAutoTArray<SkScalar> widths(count);
53 paint.getTextWidths(text, textLen, &widths[0]);
57 x += widths[i];
/external/skqp/gm/
H A Dskbug_5321.cpp24 SkAutoTMalloc<SkScalar> widths(glyph_count);
25 (void)paint.getTextWidths(text, byteLength, &widths[0]);
27 SkScalar w = widths[i];
28 widths[i] = x;
32 canvas->drawPosTextH(text, byteLength, &widths[0], y, paint);
H A Dhugepath.cpp18 const float widths[] = { 0.9f, 1.0f, 1.1f }; local
21 for (float w : widths) {
H A Dglyph_pos_align.cpp41 SkScalar widths[kMaxStringLength]; local
47 paint.getTextWidths(text, length, widths);
59 posX[i] = x + originX * widths[i];
61 x += widths[i];
H A Dgetpostextpath.cpp42 SkAutoTArray<SkScalar> widths(len);
43 paint.getTextWidths(text, len, &widths[0]);
50 x += widths[i];
H A Dpdf_never_embed.cpp17 SkAutoTArray<SkScalar> widths(SkToInt(textLen));
18 paint.getTextWidths(text, textLen, &widths[0]);
22 x += widths[i];
H A Dtexteffects.cpp109 SkTDArray<SkScalar> widths; local
110 widths.setCount(widthCount);
111 (void) paint.getTextWidths(test, sizeof(test) - 1, widths.begin());
117 posX += widths[index];
153 SkAutoTArray<SkScalar> widths(glyphCount);
154 blobPaint.getTextWidths(glyphs.get(), glyphTextBytes, widths.get());
169 advance += widths[glyphIndex++];
183 advance += widths[glyphIndex++];
196 advance += widths[glyphIndex++];
258 SkTDArray<SkScalar> widths; local
[all...]
H A Datlastext.cpp41 std::unique_ptr<SkScalar[]> widths(new SkScalar[cnt]);
42 paint.getTextWidths(glyphs.get(), cnt * sizeof(SkGlyphID), widths.get(), nullptr);
47 positions[i] = {positions[i - 1].fX + widths[i - 1], y};
53 return positions[cnt - 1].fX + widths[cnt - 1] - positions[0].fX;
H A Dskbug_257.cpp36 SkAutoTArray<SkScalar> widths(count);
37 paint.getTextWidths(text, textLen, &widths[0]);
41 x += widths[i];
52 SkAutoTArray<SkScalar> widths(count);
53 paint.getTextWidths(text, textLen, &widths[0]);
57 x += widths[i];
/external/fonttools/Lib/fontTools/ttLib/tables/
H A D_h_d_m_x.py23 widths = {}
25 widths[glyphOrder[glyphID]] = byteord(data[glyphID+2])
26 self.hdmx[ppem] = widths
39 for ppem, widths in items:
40 data = data + bytechr(ppem) + bytechr(max(widths.values()))
42 width = widths[glyphOrder[glyphID]]
54 widths = self.hdmx[ppem]
55 records.append(widths)
67 widths = self.hdmx[ppem]
68 row.append(widths[glyphNam
[all...]
/external/fonttools/Tools/fontTools/ttLib/tables/
H A D_h_d_m_x.py23 widths = {}
25 widths[glyphOrder[glyphID]] = byteord(data[glyphID+2])
26 self.hdmx[ppem] = widths
39 for ppem, widths in items:
40 data = data + bytechr(ppem) + bytechr(max(widths.values()))
42 width = widths[glyphOrder[glyphID]]
54 widths = self.hdmx[ppem]
55 records.append(widths)
67 widths = self.hdmx[ppem]
68 row.append(widths[glyphNam
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_fs_surface_builder.cpp247 * Return the per-channel bitfield widths for a given image format.
266 const color_u widths = get_bit_widths(format); local
267 return color_u(0, widths.r, widths.r + widths.g,
268 widths.r + widths.g + widths.b);
277 const color_u widths = get_bit_widths(format); local
278 return ((widths
301 const color_u widths = get_bit_widths(format); local
683 emit_pack(const fs_builder &bld, const fs_reg &src, const color_u &shifts, const color_u &widths) argument
716 emit_unpack(const fs_builder &bld, const fs_reg &src, const color_u &shifts, const color_u &widths) argument
744 emit_convert_to_integer(const fs_builder &bld, const fs_reg &src, const color_u &widths, bool is_signed) argument
784 emit_convert_from_scaled(const fs_builder &bld, const fs_reg &src, const color_u &widths, bool is_signed) argument
814 emit_convert_to_scaled(const fs_builder &bld, const fs_reg &src, const color_u &widths, bool is_signed) argument
863 emit_convert_from_float(const fs_builder &bld, const fs_reg &src, const color_u &widths) argument
894 emit_convert_to_float(const fs_builder &bld, const fs_reg &src, const color_u &widths) argument
931 emit_pad(const fs_builder &bld, const fs_reg &src, const color_u &widths) argument
[all...]
/external/pdfium/fxbarcode/oned/
H A DBC_OnedCode39Writer.cpp174 int8_t widths[9] = {0};
188 ToIntArray(kOnedCode39CharacterEncoding[i], widths);
190 codeWidth += widths[k];
195 ToIntArray(kOnedCode39CharacterEncoding[39], widths);
197 int32_t pos = AppendPattern(result.get(), 0, widths, 9, 1, e);
211 ToIntArray(kOnedCode39CharacterEncoding[i], widths);
212 pos += AppendPattern(result.get(), pos, widths, 9, 1, e);
220 ToIntArray(kOnedCode39CharacterEncoding[39], widths);
221 pos += AppendPattern(result.get(), pos, widths, 9, 1, e);
/external/freetype/src/autofit/
H A Daflatin.h93 FT_UInt width_count; /* number of used widths */
94 AF_WidthRec widths[AF_LATIN_MAX_WIDTHS]; /* widths array */ member in struct:AF_LatinAxisRec_
174 AF_WidthRec* widths,
184 AF_WidthRec* widths,
/external/skia/samplecode/
H A DSampleMeasure.cpp41 SkScalar* widths = autoWidths.get(); local
51 int n = p.getTextWidths(text, len, widths, rects);
68 x += widths[j];
/external/skqp/samplecode/
H A DSampleMeasure.cpp41 SkScalar* widths = autoWidths.get(); local
51 int n = p.getTextWidths(text, len, widths, rects);
68 x += widths[j];
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
H A DRelay.java102 float[] widths = null;
105 widths = new float[BUFFER_SIZE];
142 bridge.getPaint().getTextWidths(charArray, 0, offset, widths);
144 wideAttribute[i] = (byte) (((int) widths[i] != charWidth) ? 1 : 0);
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/bench/
H A Dwrite.py93 pythons, widths = [], [0] * (benched_per_table + 1)
141 # calculate column widths (global for all tables)
143 widths[idx] = max(widths[idx], max(map(len, row)))
155 c * (width + 2) for width in widths
178 for width, col in zip(widths, row)
184 ' %s%*s ' % (col, len(col) - widths[j], '')
186 ['%*s ', ' %*s '][idx == 1] % (widths[j], col)

Completed in 556 milliseconds

1234