Home
last modified time | relevance | path

Searched refs:widths (Results 1 – 25 of 166) sorted by relevance

1234567

/external/fonttools/Lib/fontTools/cffLib/
Dwidth.py42 def byteCost(widths, default, nominal): argument
44 if not hasattr(widths, 'items'):
46 for w in widths:
48 widths = d
51 for w,freq in widths.items():
63 def optimizeWidthsBruteforce(widths): argument
67 for w in widths:
73 minw, maxw = min(widths), max(widths)
76 bestCostWithoutDefault = min(byteCost(widths, None, nominal) for nominal in domain)
78 bestCost = len(widths) * 5 + 1
[all …]
/external/mesa3d/src/intel/compiler/
Dbrw_fs_surface_builder.cpp286 const color_u widths = get_bit_widths(format); in get_bit_shifts() local
287 return color_u(0, widths.r, widths.r + widths.g, in get_bit_shifts()
288 widths.r + widths.g + widths.b); in get_bit_shifts()
297 const color_u widths = get_bit_widths(format); in is_homogeneous() local
298 return ((widths.g == 0 || widths.g == widths.r) && in is_homogeneous()
299 (widths.b == 0 || widths.b == widths.r) && in is_homogeneous()
300 (widths.a == 0 || widths.a == widths.r)); in is_homogeneous()
321 const color_u widths = get_bit_widths(format); in has_supported_bit_layout() local
325 return (widths.r == lower_widths.r && in has_supported_bit_layout()
326 widths.g == lower_widths.g && in has_supported_bit_layout()
[all …]
/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_d_m_x.py47 widths = _GlyphnamedList(ttFont.getReverseGlyphMap(), array.array("B", data[2:2+numGlyphs]))
48 self.hdmx[ppem] = widths
61 for ppem, widths in items:
62 data = data + bytechr(ppem) + bytechr(max(widths.values()))
64 width = widths[glyphOrder[glyphID]]
76 widths = self.hdmx[ppem]
77 records.append(widths)
89 widths = self.hdmx[ppem]
90 row.append(widths[glyphName])
/external/python/cpython3/Doc/library/
Dasyncio-llapi-index.rst15 :widths: 50 50
44 :widths: 50 50
71 :widths: 50 50
83 :widths: 50 50
101 :widths: 50 50
114 :widths: 50 50
134 :widths: 50 50
146 :widths: 50 50
183 :widths: 50 50
219 :widths: 50 50
[all …]
Dasyncio-api-index.rst18 :widths: 50 50
81 :widths: 50 50
108 :widths: 50 50
132 :widths: 50 50
168 :widths: 50 50
199 :widths: 50 50
/external/pdfium/fxbarcode/oned/
DBC_OnedCode39Writer.cpp174 int8_t widths[9] = {0}; in EncodeImpl() local
188 ToIntArray(kOnedCode39CharacterEncoding[i], widths); in EncodeImpl()
190 codeWidth += widths[k]; in EncodeImpl()
195 ToIntArray(kOnedCode39CharacterEncoding[39], widths); in EncodeImpl()
197 int32_t pos = AppendPattern(result.get(), 0, widths, 9, 1, e); in EncodeImpl()
211 ToIntArray(kOnedCode39CharacterEncoding[i], widths); in EncodeImpl()
212 pos += AppendPattern(result.get(), pos, widths, 9, 1, e); in EncodeImpl()
220 ToIntArray(kOnedCode39CharacterEncoding[39], widths); in EncodeImpl()
221 pos += AppendPattern(result.get(), pos, widths, 9, 1, e); in EncodeImpl()
/external/skqp/include/core/
DSkFont.h364 void getWidths(const uint16_t glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths() argument
365 this->getWidthsBounds(glyphs, count, widths, bounds, nullptr); in getWidths()
369 void getWidths(const uint16_t glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths() argument
370 this->getWidths(glyphs, count, widths); in getWidths()
382 void getWidths(const uint16_t glyphs[], int count, SkScalar widths[]) const { in getWidths() argument
383 this->getWidthsBounds(glyphs, count, widths, nullptr, nullptr); in getWidths()
397 void getWidthsBounds(const uint16_t glyphs[], int count, SkScalar widths[], SkRect bounds[],
/external/skia/include/core/
DSkFont.h364 void getWidths(const uint16_t glyphs[], int count, SkScalar widths[], SkRect bounds[]) const { in getWidths() argument
365 this->getWidthsBounds(glyphs, count, widths, bounds, nullptr); in getWidths()
369 void getWidths(const uint16_t glyphs[], int count, SkScalar widths[], std::nullptr_t) const { in getWidths() argument
370 this->getWidths(glyphs, count, widths); in getWidths()
382 void getWidths(const uint16_t glyphs[], int count, SkScalar widths[]) const { in getWidths() argument
383 this->getWidthsBounds(glyphs, count, widths, nullptr, nullptr); in getWidths()
397 void getWidthsBounds(const uint16_t glyphs[], int count, SkScalar widths[], SkRect bounds[],
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/bench/
Dwrite.py94 pythons, widths = [], [0] * (benched_per_table + 1)
144 widths[idx] = max(widths[idx], max(map(len, row)))
156 c * (width + 2) for width in widths
179 for width, col in zip(widths, row)
185 ' %s%*s ' % (col, len(col) - widths[j], '')
187 ['%*s ', ' %*s '][idx == 1] % (widths[j], col)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/bench/
Dwrite.py93 pythons, widths = [], [0] * (benched_per_table + 1)
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)
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DRelay.java102 float[] widths = null; in run() local
105 widths = new float[BUFFER_SIZE]; in run()
142 bridge.getPaint().getTextWidths(charArray, 0, offset, widths); in run()
144 wideAttribute[i] = (byte) (((int) widths[i] != charWidth) ? 1 : 0); in run()
/external/deqp-deps/SPIRV-Tools/test/opt/
Dtypes_test.cpp237 std::vector<uint32_t> widths = {1, 2, 4, 8, 16, 32, 48, 64, 128}; in TEST() local
239 for (uint32_t w : widths) { in TEST()
242 for (size_t i = 0; i < widths.size(); i++) { in TEST()
243 EXPECT_EQ(widths[i], types[i]->width()); in TEST()
248 std::vector<uint32_t> widths = {1, 2, 4, 8, 16, 32, 48, 64, 128}; in TEST() local
250 for (uint32_t w : widths) { in TEST()
253 for (size_t i = 0; i < widths.size(); i++) { in TEST()
254 EXPECT_EQ(widths[i], types[i]->width()); in TEST()
/external/swiftshader/third_party/SPIRV-Tools/test/opt/
Dtypes_test.cpp237 std::vector<uint32_t> widths = {1, 2, 4, 8, 16, 32, 48, 64, 128}; in TEST() local
239 for (uint32_t w : widths) { in TEST()
242 for (size_t i = 0; i < widths.size(); i++) { in TEST()
243 EXPECT_EQ(widths[i], types[i]->width()); in TEST()
248 std::vector<uint32_t> widths = {1, 2, 4, 8, 16, 32, 48, 64, 128}; in TEST() local
250 for (uint32_t w : widths) { in TEST()
253 for (size_t i = 0; i < widths.size(); i++) { in TEST()
254 EXPECT_EQ(widths[i], types[i]->width()); in TEST()
/external/skia/gm/
Dgetpostextpath.cpp49 SkAutoTArray<SkScalar> widths(count);
50 font.getWidths(atg.glyphs(), count, &widths[0]);
57 x += widths[i];
Datlastext.cpp42 std::unique_ptr<SkScalar[]> widths(new SkScalar[cnt]); in draw_string() local
43 font.getWidths(glyphs.get(), cnt, widths.get()); in draw_string()
48 positions[i] = {positions[i - 1].fX + widths[i - 1], y}; in draw_string()
54 return positions[cnt - 1].fX + widths[cnt - 1] - positions[0].fX; in draw_string()
Dtexteffects.cpp48 SkAutoTArray<SkScalar> widths(glyphCount); in MakeFancyBlob() local
49 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob()
64 advance += widths[glyphIndex++]; in MakeFancyBlob()
78 advance += widths[glyphIndex++]; in MakeFancyBlob()
91 advance += widths[glyphIndex++]; in MakeFancyBlob()
Dglyph_pos.cpp125 SkScalar widths[len]; // len is conservative. we really only need 'count' in drawTestCase() local
126 font.getWidthsBounds(glyphs, count, widths, nullptr, &paint); in drawTestCase()
136 w += widths[i]; in drawTestCase()
/external/skqp/gm/
Dgetpostextpath.cpp49 SkAutoTArray<SkScalar> widths(count);
50 font.getWidths(atg.glyphs(), count, &widths[0]);
57 x += widths[i];
Datlastext.cpp42 std::unique_ptr<SkScalar[]> widths(new SkScalar[cnt]); in draw_string() local
43 font.getWidths(glyphs.get(), cnt, widths.get()); in draw_string()
48 positions[i] = {positions[i - 1].fX + widths[i - 1], y}; in draw_string()
54 return positions[cnt - 1].fX + widths[cnt - 1] - positions[0].fX; in draw_string()
Dtexteffects.cpp48 SkAutoTArray<SkScalar> widths(glyphCount); in MakeFancyBlob() local
49 font.getWidths(glyphs.get(), glyphCount, widths.get()); in MakeFancyBlob()
64 advance += widths[glyphIndex++]; in MakeFancyBlob()
78 advance += widths[glyphIndex++]; in MakeFancyBlob()
91 advance += widths[glyphIndex++]; in MakeFancyBlob()
Dglyph_pos.cpp125 SkScalar widths[len]; // len is conservative. we really only need 'count' in drawTestCase() local
126 font.getWidthsBounds(glyphs, count, widths, nullptr, &paint); in drawTestCase()
136 w += widths[i]; in drawTestCase()
/external/freetype/src/autofit/
Daflatin.h94 AF_WidthRec widths[AF_LATIN_MAX_WIDTHS]; /* widths array */ member
174 AF_WidthRec* widths,
184 AF_WidthRec* widths,
/external/pdfium/core/fpdfapi/parser/
Dcpdf_document.cpp194 void InsertWidthArrayImpl(int* widths, int size, CPDF_Array* pWidthArray) { in InsertWidthArrayImpl() argument
197 if (widths[i] != *widths) in InsertWidthArrayImpl()
203 pWidthArray->AddNew<CPDF_Number>(*widths); in InsertWidthArrayImpl()
207 pWidthArray1->AddNew<CPDF_Number>(widths[i]); in InsertWidthArrayImpl()
209 FX_Free(widths); in InsertWidthArrayImpl()
215 int* widths = FX_Alloc(int, size); in InsertWidthArray() local
216 GetCharWidth(hDC, start, end, widths); in InsertWidthArray()
217 InsertWidthArrayImpl(widths, size, pWidthArray); in InsertWidthArray()
239 int* widths = FX_Alloc(int, size); in InsertWidthArray1() local
243 widths[i] = pFont->GetGlyphWidth(glyph_index); in InsertWidthArray1()
[all …]
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateApproximateWidths.java75 Widths widths = new Widths(g, new Font("Serif", 0, 100), new Font("SansSerif", 0, 100)); in showWidths() local
78 int defaultWidth = widths.getMetrics(0xFFFD); in showWidths()
85 int cjkWidth = widths.getMetrics(0x4E00); in showWidths()
96 int cpWidth = widths.getMetrics(it.codepoint); in showWidths()
128 System.out.println("Adjusted: " + widths.adjusted); in showWidths()
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp329 std::map<uint32_t, uint32_t> widths; in LoadCompositeFont() local
334 widths[glyphIndex] = pFont->GetGlyphWidth(glyphIndex); in LoadCompositeFont()
342 for (auto it = widths.begin(); it != widths.end(); ++it) { in LoadCompositeFont()
345 if (std::next(it) == widths.end()) { in LoadCompositeFont()
363 if (next_it == widths.end() || next_it->first != it->first + 1 || in LoadCompositeFont()
382 if (next_it == widths.end() || next_it->first != it->first + 1) in LoadCompositeFont()

1234567