Home
last modified time | relevance | path

Searched full:metrics (Results 1 – 25 of 664) sorted by relevance

12345678910>>...27

/third_party/skia/third_party/externals/freetype/src/cff/
Dcffgload.c240 glyph->x_scale = size->root.metrics.x_scale; in cff_slot_load()
241 glyph->y_scale = size->root.metrics.y_scale; in cff_slot_load()
261 TT_SBit_MetricsRec metrics; in cff_slot_load() local
270 &metrics ); in cff_slot_load()
282 glyph->root.metrics.width = (FT_Pos)metrics.width * 64; in cff_slot_load()
283 glyph->root.metrics.height = (FT_Pos)metrics.height * 64; in cff_slot_load()
285 glyph->root.metrics.horiBearingX = (FT_Pos)metrics.horiBearingX * 64; in cff_slot_load()
286 glyph->root.metrics.horiBearingY = (FT_Pos)metrics.horiBearingY * 64; in cff_slot_load()
287 glyph->root.metrics.horiAdvance = (FT_Pos)metrics.horiAdvance * 64; in cff_slot_load()
289 glyph->root.metrics.vertBearingX = (FT_Pos)metrics.vertBearingX * 64; in cff_slot_load()
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sfview/
DViewableTaggedData.java31 private final Metrics metrics; field in ViewableTaggedData
34 this(markers, new Style(), new Metrics()); in ViewableTaggedData()
37 private ViewableTaggedData(List<Marker> markers, Style style, Metrics metrics) { in ViewableTaggedData() argument
40 this.metrics = metrics; in ViewableTaggedData()
73 private static class Metrics { class in ViewableTaggedData
85 private Metrics() { in Metrics() method in ViewableTaggedData.Metrics
108 return metrics.lineHeight; in lineHeight()
112 return metrics.totalWidth; in totalWidth()
116 DrawContext context = new DrawContext(style, metrics, g, x, y); in draw()
123 * Compute metrics and return the dimensions.
[all …]
/third_party/skia/third_party/externals/freetype/src/sfnt/
Dttsbit.c293 FT_Size_Metrics* metrics ) in tt_face_load_strike_metrics() argument
324 metrics->x_ppem = (FT_UShort)strike[44]; in tt_face_load_strike_metrics()
325 metrics->y_ppem = (FT_UShort)strike[45]; in tt_face_load_strike_metrics()
327 metrics->ascender = (FT_Char)strike[16] * 64; /* hori.ascender */ in tt_face_load_strike_metrics()
328 metrics->descender = (FT_Char)strike[17] * 64; /* hori.descender */ in tt_face_load_strike_metrics()
340 if ( metrics->descender > 0 ) in tt_face_load_strike_metrics()
344 metrics->descender = -metrics->descender; in tt_face_load_strike_metrics()
347 else if ( metrics->descender == 0 ) in tt_face_load_strike_metrics()
349 if ( metrics->ascender == 0 ) in tt_face_load_strike_metrics()
356 metrics->x_ppem, metrics->y_ppem )); in tt_face_load_strike_metrics()
[all …]
/third_party/skia/tools/fonts/
DToolUtilsFont.cpp72 SkFontMetrics metrics; in sample_user_typeface() local
73 metrics.fFlags = 0; in sample_user_typeface()
74 metrics.fTop = -200; in sample_user_typeface()
75 metrics.fAscent = -150; in sample_user_typeface()
76 metrics.fDescent = 50; in sample_user_typeface()
77 metrics.fBottom = -75; in sample_user_typeface()
78 metrics.fLeading = 10; in sample_user_typeface()
79 metrics.fAvgCharWidth = 150; in sample_user_typeface()
80 metrics.fMaxCharWidth = 300; in sample_user_typeface()
81 metrics.fXMin = -20; in sample_user_typeface()
[all …]
/third_party/libuv/test/
Dtest-metrics.c133 uv_metrics_t metrics; in TEST_IMPL() local
148 ASSERT_OK(uv_metrics_info(uv_default_loop(), &metrics)); in TEST_IMPL()
149 ASSERT_UINT64_EQ(cntr, metrics.loop_count); in TEST_IMPL()
157 uv_metrics_t metrics; in close_cb() local
159 ASSERT_OK(uv_metrics_info(uv_default_loop(), &metrics)); in close_cb()
160 ASSERT_UINT64_EQ(3, metrics.loop_count); in close_cb()
161 ASSERT_UINT64_GT(metrics.events, last_events_count); in close_cb()
164 last_events_count = metrics.events; in close_cb()
169 uv_metrics_t metrics; in write_cb() local
171 ASSERT_OK(uv_metrics_info(uv_default_loop(), &metrics)); in write_cb()
[all …]
/third_party/skia/modules/skparagraph/src/
DTextStyle.cpp198 void TextStyle::getFontMetrics(SkFontMetrics* metrics) const { in getFontMetrics()
200 void TextStyle::getFontMetrics(RSFontMetrics* metrics) const { in getFontMetrics()
210 compressFont.getMetrics(metrics); in getFontMetrics()
211 metricsIncludeFontPadding(metrics, font); in getFontMetrics()
213 font.getMetrics(metrics); in getFontMetrics()
223 compressFont.GetMetrics(metrics); in getFontMetrics()
224 metricsIncludeFontPadding(metrics, font); in getFontMetrics()
226 font.GetMetrics(metrics); in getFontMetrics()
231 auto height = metrics->fDescent - metrics->fAscent + metrics->fLeading; in getFontMetrics()
232 metrics->fAscent = (metrics->fAscent - metrics->fLeading / 2) * multiplier / height; in getFontMetrics()
[all …]
DRun.h73 void metricsIncludeFontPadding(RSFontMetrics* metrics, const RSFont& font);
76 void metricsIncludeFontPadding(SkFontMetrics* metrics, const SkFont& font);
541 RSFontMetrics metrics; in InternalLineMetrics() local
544 compressFont.GetMetrics(&metrics); in InternalLineMetrics()
547 SkFontMetrics metrics; in InternalLineMetrics()
550 compressFont.getMetrics(&metrics); in InternalLineMetrics()
552 metricsIncludeFontPadding(&metrics, font); in InternalLineMetrics()
555 SkFontMetrics metrics; in InternalLineMetrics()
556 font.getMetrics(&metrics); in InternalLineMetrics()
558 fAscent = metrics.fAscent; in InternalLineMetrics()
[all …]
DTextWrapper.cpp89 fEndLine.metrics().clean(); in lookAhead()
170 … = TextStretch(fClusters.startCluster(), nextNonBreakingSpace, fClusters.metrics().getForceStrut()… in lookAhead()
255 // Flutter: forget the clipped cluster but keep the metrics in moveForward()
256 fEndLine.metrics().add(fClip.metrics()); in moveForward()
670 // Update the placeholder metrics so we can get the placeholder positions later in moveForward()
671 // and the line metrics (to make sure the placeholder fits) in moveForward()
672 lastRun->updateMetrics(&fEndLine.metrics()); in moveForward()
688 // Update the placeholder metrics so we can get the placeholder positions later in moveForward()
689 // and the line metrics (to make sure the placeholder fits) in moveForward()
690 lastRun->updateMetrics(&fEndLine.metrics()); in moveForward()
[all …]
/third_party/libwebsockets/READMEs/
DREADME.lws_metrics.md12 - an external handler for forwarding aggregated metrics. An lws_system ops
13 interface to pass on the aggregated metrics to an external backend. lws
14 presents its own public metrics objects and leaves it to the external
15 code to have a shim to marry the lws metrics up to whatever is needed in the
16 metrics backend
24 including Secure Streams itself, and lws metrics are available on that too.
28 Normally metrics implementations are fixed at build-time and cannot change
35 ![policy based metrics](/doc-assets/lws_metrics-policy.png)
37 Metrics are created with a namespace name and the policy applies itself to those
43 "metrics": [
[all …]
/third_party/skia/third_party/externals/freetype/src/cid/
Dcidgload.c228 /* Incremental fonts can optionally override the metrics. */ in cid_load_glyph()
231 FT_Incremental_MetricsRec metrics; in cid_load_glyph() local
234 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x ); in cid_load_glyph()
235 metrics.bearing_y = 0; in cid_load_glyph()
236 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x ); in cid_load_glyph()
237 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y ); in cid_load_glyph()
240 glyph_index, FALSE, &metrics ); in cid_load_glyph()
242 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x ); in cid_load_glyph()
243 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance ); in cid_load_glyph()
244 decoder->builder.advance.y = INT_TO_FIXED( metrics.advance_v ); in cid_load_glyph()
[all …]
/third_party/skia/third_party/externals/freetype/src/type1/
Dt1gload.c139 /* Incremental fonts can optionally override the metrics. */ in T1_Parse_Glyph_And_Get_Char_String()
142 FT_Incremental_MetricsRec metrics; in T1_Parse_Glyph_And_Get_Char_String() local
145 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x ); in T1_Parse_Glyph_And_Get_Char_String()
146 metrics.bearing_y = 0; in T1_Parse_Glyph_And_Get_Char_String()
147 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x ); in T1_Parse_Glyph_And_Get_Char_String()
148 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y ); in T1_Parse_Glyph_And_Get_Char_String()
151 glyph_index, FALSE, &metrics ); in T1_Parse_Glyph_And_Get_Char_String()
153 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x ); in T1_Parse_Glyph_And_Get_Char_String()
154 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance ); in T1_Parse_Glyph_And_Get_Char_String()
155 decoder->builder.advance.y = INT_TO_FIXED( metrics.advance_v ); in T1_Parse_Glyph_And_Get_Char_String()
[all …]
/third_party/cJSON/tests/unity/test/
D.rubocop.yml38 # At this point, we're not ready to enforce any metrics
39 Metrics/AbcSize:
41 Metrics/BlockLength:
43 Metrics/BlockNesting:
45 Metrics/ClassLength:
47 Metrics/CyclomaticComplexity:
49 Metrics/LineLength:
51 Metrics/MethodLength:
53 Metrics/ModuleLength:
55 Metrics/ParameterLists:
[all …]
/third_party/skia/src/core/
DSkFont.cpp173 SkBulkGlyphMetrics metrics{strikeSpec}; in measureText() local
174 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, glyphCount)); in measureText()
211 SkBulkGlyphMetrics metrics{strikeSpec}; in getWidthsBounds() local
212 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getWidthsBounds()
232 SkBulkGlyphMetrics metrics{strikeSpec}; in getPos() local
233 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getPos()
246 SkBulkGlyphMetrics metrics{strikeSpec}; in getXPos() local
247 SkSpan<const SkGlyph*> glyphs = metrics.glyphs(SkMakeSpan(glyphIDs, count)); in getXPos()
288 SkScalar SkFont::getMetrics(SkFontMetrics* metrics) const { in getMetrics()
293 if (nullptr == metrics) { in getMetrics()
[all …]
/third_party/skia/third_party/externals/freetype/src/autofit/
Dafindic.c31 af_indic_metrics_init( AF_CJKMetrics metrics, in af_indic_metrics_init() argument
38 metrics->units_per_em = face->units_per_EM; in af_indic_metrics_init()
44 af_cjk_metrics_init_widths( metrics, face ); in af_indic_metrics_init()
47 af_cjk_metrics_init_blues( metrics, face, af_cjk_blue_chars ); in af_indic_metrics_init()
49 af_cjk_metrics_check_digits( metrics, face ); in af_indic_metrics_init()
59 af_indic_metrics_scale( AF_CJKMetrics metrics, in af_indic_metrics_scale() argument
63 af_cjk_metrics_scale( metrics, scaler ); in af_indic_metrics_scale()
69 AF_CJKMetrics metrics ) in af_indic_hints_init() argument
72 return af_cjk_hints_init( hints, metrics ); in af_indic_hints_init()
80 AF_CJKMetrics metrics ) in af_indic_hints_apply() argument
[all …]
Dafloader.c245 size_internal->autohint_metrics = size->metrics; in af_loader_load_glyph()
252 /* set metrics to integer values and adjust scaling accordingly; */ in af_loader_load_glyph()
315 loader->metrics = style_metrics; in af_loader_load_glyph()
362 * own set of standard widths and other metrics). The darkening amount in af_loader_load_glyph()
404 loader->pp2.x = FT_MulFix( slot->metrics.horiAdvance, in af_loader_load_glyph()
425 /* we now need to adjust the metrics according to the change in */ in af_loader_load_glyph()
511 vvector.x = slot->metrics.vertBearingX - slot->metrics.horiBearingX; in af_loader_load_glyph()
512 vvector.y = slot->metrics.vertBearingY - slot->metrics.horiBearingY; in af_loader_load_glyph()
524 /* the new metrics */ in af_loader_load_glyph()
535 slot->metrics.width = bbox.xMax - bbox.xMin; in af_loader_load_glyph()
[all …]
Dafdummy.c27 AF_StyleMetrics metrics ) in af_dummy_hints_init() argument
29 af_glyph_hints_rescale( hints, metrics ); in af_dummy_hints_init()
31 hints->x_scale = metrics->scaler.x_scale; in af_dummy_hints_init()
32 hints->y_scale = metrics->scaler.y_scale; in af_dummy_hints_init()
33 hints->x_delta = metrics->scaler.x_delta; in af_dummy_hints_init()
34 hints->y_delta = metrics->scaler.y_delta; in af_dummy_hints_init()
44 AF_StyleMetrics metrics ) in af_dummy_hints_apply() argument
49 FT_UNUSED( metrics ); in af_dummy_hints_apply()
/third_party/unity/test/
D.rubocop.yml60 # At this point, we're not ready to enforce any metrics
61 Metrics/AbcSize:
63 Metrics/BlockLength:
65 Metrics/BlockNesting:
67 Metrics/ClassLength:
69 Metrics/CyclomaticComplexity:
71 Metrics/MethodLength:
73 Metrics/ModuleLength:
75 Metrics/ParameterLists:
77 Metrics/PerceivedComplexity:
/third_party/skia/src/pdf/
DSkPDFFont.cpp102 static bool can_embed(const SkAdvancedTypefaceMetrics& metrics) { in can_embed() argument
103 return !SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); in can_embed()
119 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); in GetMetrics() local
120 if (!metrics) { in GetMetrics()
121 metrics = std::make_unique<SkAdvancedTypefaceMetrics>(); in GetMetrics()
124 if (0 == metrics->fStemV || 0 == metrics->fCapHeight) { in GetMetrics()
129 if (0 == metrics->fStemV) { in GetMetrics()
139 metrics->fStemV = stemV; in GetMetrics()
141 if (0 == metrics->fCapHeight) { in GetMetrics()
150 metrics->fCapHeight = SkToS16(SkScalarRoundToInt(capHeight / 2)); in GetMetrics()
[all …]
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/subsetter/
DHorizontalMetricsTableBuilder.java27 * A builder method for the hmtx (horizontal metrics) table. The goal is for this
48 private final List<LongHorMetric> metrics; field in HorizontalMetricsTableBuilder
50 public HorizontalMetricsTableBuilder(Font.Builder fontBuilder, List<LongHorMetric> metrics) { in HorizontalMetricsTableBuilder() argument
52 this.metrics = metrics; in HorizontalMetricsTableBuilder()
56 int nMetrics = metrics.size(); in build()
60 int lastWidth = metrics.get(nMetrics - 1).advanceWidth; in build()
62 while (numberOfHMetrics > 1 && metrics.get(numberOfHMetrics - 2).advanceWidth == lastWidth) { in build()
70 int advanceWidth = metrics.get(i).advanceWidth; in build()
73 index += data.writeShort(index, metrics.get(i).lsb); in build()
76 index += data.writeShort(index, metrics.get(i).lsb); in build()
/third_party/skia/gm/
Dscaledemoji.cpp73 SkFontMetrics metrics; in onDraw() local
77 font.getMetrics(&metrics); in onDraw()
78 y += -metrics.fAscent; in onDraw()
80 y += metrics.fDescent + metrics.fLeading; in onDraw()
121 SkFontMetrics metrics; in onDraw() local
125 font.getMetrics(&metrics); in onDraw()
126 y += -metrics.fAscent; in onDraw()
138 y += metrics.fDescent + metrics.fLeading; in onDraw()
184 SkFontMetrics metrics; in onDraw() local
185 font.getMetrics(&metrics); in onDraw()
[all …]
/third_party/elfutils/tests/
Drun-debuginfod-federation-metrics.sh73 wait_ready $PORT1 'thread_busy{role="http-metrics"}' 1
90 wait_ready $PORT2 'thread_busy{role="http-metrics"}' 1
152 # Fetch some metrics
154 curl -s http://127.0.0.1:$PORT1/metrics
155 curl -s http://127.0.0.1:$PORT2/metrics
156 curl -s http://127.0.0.1:$PORT1/metrics | grep -q 'http_responses_total.*result.*error'
157 curl -s http://127.0.0.1:$PORT2/metrics | grep -q 'http_responses_total.*result.*upstream'
158 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_count'
159 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_sum'
160 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_count'
[all …]
/third_party/skia/src/sfnt/
DSkOTTable_EBLC.h49 SbitLineMetrics hori; //line metrics for text rendered horizontally
50 SbitLineMetrics vert; //line metrics for text rendered vertically
68 Horizontal, // Horizontal small glyph metrics
69 Vertical, // Vertical small glyph metrics
97 // Variable metrics glyphs with 4 byte offsets
104 // All Glyphs have identical metrics
108 …eddedBitmapData::BigGlyphMetrics bigMetrics; // all glyphs have the same metrics; glyph data may b…
111 // Variable metrics glyphs with 2 byte offsets
118 // Variable metrics glyphs with sparse glyph codes
128 // Constant metrics glyphs with sparse glyph codes
[all …]
/third_party/libuv/docs/src/
Dmetrics.rst4 Metrics operations
7 libuv provides a metrics API to track various internal operations of the event
16 The struct that contains event loop metrics. It is recommended to retrieve
17 these metrics in a :c:type:`uv_prepare_cb` in order to make sure there are
18 no inconsistencies with the metrics counters.
67 .. c:function:: int uv_metrics_info(uv_loop_t* loop, uv_metrics_t* metrics)
69 Copy the current set of event loop metrics to the ``metrics`` pointer.
/third_party/skia/third_party/externals/freetype/src/base/
Dftobjs.c552 FT_ZERO( &slot->metrics ); in ft_glyphslot_clear()
785 FT_Glyph_Metrics* metrics = &slot->metrics; in ft_glyphslot_grid_fit_metrics() local
791 metrics->horiBearingX = FT_PIX_FLOOR( metrics->horiBearingX ); in ft_glyphslot_grid_fit_metrics()
792 metrics->horiBearingY = FT_PIX_CEIL_LONG( metrics->horiBearingY ); in ft_glyphslot_grid_fit_metrics()
794 right = FT_PIX_CEIL_LONG( ADD_LONG( metrics->vertBearingX, in ft_glyphslot_grid_fit_metrics()
795 metrics->width ) ); in ft_glyphslot_grid_fit_metrics()
796 bottom = FT_PIX_CEIL_LONG( ADD_LONG( metrics->vertBearingY, in ft_glyphslot_grid_fit_metrics()
797 metrics->height ) ); in ft_glyphslot_grid_fit_metrics()
799 metrics->vertBearingX = FT_PIX_FLOOR( metrics->vertBearingX ); in ft_glyphslot_grid_fit_metrics()
800 metrics->vertBearingY = FT_PIX_FLOOR( metrics->vertBearingY ); in ft_glyphslot_grid_fit_metrics()
[all …]
/third_party/node/deps/v8/src/logging/
Dmetrics.h11 #include "include/v8-metrics.h"
21 namespace metrics {
27 const std::shared_ptr<v8::metrics::Recorder>& embedder_recorder);
35 v8::metrics::Recorder::ContextId id) { in AddMainThreadEvent()
42 v8::metrics::Recorder::ContextId id) { in DelayMainThreadEvent()
63 DelayedEvent(const T& event, v8::metrics::Recorder::ContextId id) in DelayedEvent()
72 v8::metrics::Recorder::ContextId id_;
82 std::shared_ptr<v8::metrics::Recorder> embedder_recorder_;
107 } // namespace metrics

12345678910>>...27