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

123

/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 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 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];
H A Dtexteffects.cpp290 SkTDArray<SkScalar> widths; local
291 widths.setCount(widthCount);
292 (void) paint.getTextWidths(test, sizeof(test) - 1, widths.begin());
298 posX += widths[index];
334 SkAutoTArray<SkScalar> widths(glyphCount);
335 blobPaint.getTextWidths(glyphs.get(), glyphTextBytes, widths.get());
350 advance += widths[glyphIndex++];
364 advance += widths[glyphIndex++];
377 advance += widths[glyphIndex++];
439 SkTDArray<SkScalar> widths; local
[all...]
H A Dglyph_pos.cpp120 SkScalar widths[sizeof(kText) - 1]; local
121 paint.getTextWidths(kText, sizeof(kText) - 1, widths, nullptr);
131 w += widths[i];
H A Dblurrect.cpp177 const int widths[] = {25, 5, 5, 100, 150, 25}; local
189 for (size_t i = 0 ; i < SK_ARRAY_COUNT(widths) ; i++) {
190 int width = widths[i];
H A Ddftext.cpp118 SkAutoTArray<SkScalar> widths(SkToInt(textLen));
121 paint.getTextWidths(text, textLen, &widths[0]);
127 x += widths[i];
H A Ddrawatlas.cpp114 SkScalar* widths = (SkScalar*)(xform + count); local
116 paint.getTextWidths(text, length, widths);
120 const SkScalar offset = SkScalarHalf(widths[i]);
H A Dtypeface.cpp22 SkScalar* widths = widthStorage.get(); local
23 paint.getTextWidths(glyphs, count * sizeof(uint16_t), widths);
27 x += widths[i];
/external/skia/experimental/ChromeUtils/
H A DSkBorder.cpp21 const SkScalar widths[4],
28 memcpy(fWidths, widths, sizeof(fWidths));
20 SkBorder(const SkPaint paints[4], const SkScalar widths[4], const BorderStyle styles[4]) argument
H A DSkBorder.h69 SkBorder(const SkPaint paints[4], const SkScalar widths[4], const BorderStyle styles[4]);
/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/pdfium/xfa/fxbarcode/oned/
H A DBC_OnedCode39Writer.cpp194 int32_t widths[9] = {0}; local
208 ToIntArray(CHARACTER_ENCODINGS[i], widths);
210 codeWidth += widths[k];
217 ToIntArray(CHARACTER_ENCODINGS[39], widths);
218 int32_t pos = AppendPattern(result, 0, widths, 9, 1, e);
232 ToIntArray(CHARACTER_ENCODINGS[i], widths);
233 pos += AppendPattern(result, pos, widths, 9, 1, e);
246 ToIntArray(CHARACTER_ENCODINGS[39], widths);
247 pos += AppendPattern(result, 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,
H A Dafcjk.h78 FT_UInt width_count; /* number of used widths */
79 AF_WidthRec widths[AF_CJK_MAX_WIDTHS]; /* widths array */ member in struct:AF_CJKAxisRec_
/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/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);
H A DTerminalBridge.java414 float[] widths = new float[1];
415 defaultPaint.getTextWidths("X", widths);
416 charWidth = (int) Math.ceil(widths[0]);
720 float[] widths = new float[1];
721 defaultPaint.getTextWidths("X", widths);
722 int termWidth = (int) widths[0] * cols;
/external/skia/tests/
H A DSwizzlerTest.cpp76 // Test on an invalid width and representative widths
77 const uint32_t widths[] = { 0, 10, 50 }; local
87 for (uint32_t width : widths) {
/external/freetype/src/pshinter/
H A Dpshglob.h57 /* The maximum number of standard and snap widths in either the */
73 /* standard and snap widths table */
77 PSH_WidthRec widths[PS_GLOBALS_MAX_STD_WIDTHS]; member in struct:PSH_WidthsRec_
/external/pdfium/third_party/freetype/src/pshinter/
H A Dpshglob.h57 /* The maximum number of standard and snap widths in either the */
73 /* standard and snap widths table */
77 PSH_WidthRec widths[PS_GLOBALS_MAX_STD_WIDTHS]; member in struct:PSH_WidthsRec_
/external/skia/tools/
H A Dcreate_test_font.cpp132 SkTDArray<unsigned>* charCodes, SkTDArray<SkScalar>* widths) {
171 *widths->append() = width;
227 SkTDArray<SkScalar> widths; local
229 output_path_data(paint, emSize, &ptsOut, &verbs, &charCodes, &widths);
282 output_fixed(widths[index], emSize, &widthsStr);
130 output_path_data(const SkPaint& paint, int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, SkTDArray<unsigned>* charCodes, SkTDArray<SkScalar>* widths) argument

Completed in 758 milliseconds

123