Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 25 of 335) sorted by relevance

12345678910>>...14

/external/fonttools/Lib/fontTools/ttLib/tables/
D_h_m_t_x.py23 metrics = array.array("h", data[:4 * numberOfMetrics])
25 metrics.byteswap()
35 self.metrics = {}
39 self.metrics[glyphName] = list(metrics[i*2:i*2+2])
40 lastAdvance = metrics[-2]
43 self.metrics[glyphName] = [lastAdvance, sideBearings[i]]
46 metrics = []
48 metrics.append(self.metrics[glyphName])
49 lastAdvance = metrics[-1][0]
50 lastIndex = len(metrics)
[all …]
DE_B_D_T_.py131 glyph.exportMetrics = glyph.metrics
133 glyph.exportMetrics = curIndexSubTable.metrics
267 metrics = bitmapObject.exportMetrics
272 writer.begintag('rowimagedata', bitDepth=bitDepth, width=metrics.width, height=metrics.height)
274 for curRow in range(metrics.height):
275 rowData = bitmapObject.getRow(curRow, bitDepth=bitDepth, metrics=metrics)
283 metrics = SmallGlyphMetrics()
284 metrics.width = safeEval(attrs['width'])
285 metrics.height = safeEval(attrs['height'])
295 bitmapObject.setRows(dataRows, bitDepth=bitDepth, metrics=metrics)
[all …]
/external/ImageMagick/MagickCore/
Dannotate.c301 metrics; in AnnotateImage() local
348 (void) GetTypeMetrics(image,annotate,&metrics,exception); in AnnotateImage()
349 height=(ssize_t) (metrics.ascent-metrics.descent+ in AnnotateImage()
364 (metrics.ascent+metrics.descent); in AnnotateImage()
367 metrics.ascent; in AnnotateImage()
374 annotate_info->affine.sx*(metrics.width+metrics.bounds.x1)/2.0+ in AnnotateImage()
375 annotate_info->affine.ry*(metrics.ascent+metrics.descent); in AnnotateImage()
378 metrics.ascent-annotate_info->affine.rx*(metrics.width- in AnnotateImage()
379 metrics.bounds.x1)/2.0; in AnnotateImage()
386 annotate_info->affine.sx*(metrics.width+metrics.bounds.x1)+ in AnnotateImage()
[all …]
/external/freetype/src/autofit/
Dafindic.c36 af_indic_metrics_init( AF_CJKMetrics metrics, in af_indic_metrics_init() argument
43 metrics->units_per_em = face->units_per_EM; in af_indic_metrics_init()
49 af_cjk_metrics_init_widths( metrics, face ); in af_indic_metrics_init()
52 af_cjk_metrics_init_blues( metrics, face, af_cjk_blue_chars ); in af_indic_metrics_init()
54 af_cjk_metrics_check_digits( metrics, face ); in af_indic_metrics_init()
64 af_indic_metrics_scale( AF_CJKMetrics metrics, in af_indic_metrics_scale() argument
68 af_cjk_metrics_scale( metrics, scaler ); in af_indic_metrics_scale()
74 AF_CJKMetrics metrics ) in af_indic_hints_init() argument
77 return af_cjk_hints_init( hints, metrics ); in af_indic_hints_init()
85 AF_CJKMetrics metrics ) in af_indic_hints_apply() argument
[all …]
Dafloader.c103 FT_Bool size_changed = face->size->metrics.x_ppem in af_loader_embolden_glyph_in_slot()
148 face->size->metrics.x_scale ), in af_loader_embolden_glyph_in_slot()
152 globals->stem_darkening_for_ppem = face->size->metrics.x_ppem; in af_loader_embolden_glyph_in_slot()
167 face->size->metrics.y_scale ), in af_loader_embolden_glyph_in_slot()
171 globals->stem_darkening_for_ppem = face->size->metrics.x_ppem; in af_loader_embolden_glyph_in_slot()
252 scaler.x_scale = size->metrics.x_scale; in af_loader_load_glyph()
254 scaler.y_scale = size->metrics.y_scale; in af_loader_load_glyph()
287 loader->metrics = style_metrics; in af_loader_load_glyph()
370 loader->pp2.x = FT_MulFix( slot->metrics.horiAdvance, in af_loader_load_glyph()
471 vvector.x = slot->metrics.vertBearingX - slot->metrics.horiBearingX; in af_loader_load_glyph()
[all …]
Daflatin.c61 af_latin_metrics_init_widths( AF_LatinMetrics metrics, in af_latin_metrics_init_widths() argument
72 af_style_names[metrics->root.style_class->style] )); in af_latin_metrics_init_widths()
76 metrics->axis[AF_DIMENSION_HORZ].width_count = 0; in af_latin_metrics_init_widths()
77 metrics->axis[AF_DIMENSION_VERT].width_count = 0; in af_latin_metrics_init_widths()
87 AF_FaceGlobals globals = metrics->root.globals; in af_latin_metrics_init_widths()
90 AF_StyleClass style_class = metrics->root.style_class; in af_latin_metrics_init_widths()
130 p = af_shaper_get_cluster( p, &metrics->root, shaper_buf, &num_idx ); in af_latin_metrics_init_widths()
135 glyph_index = af_shaper_get_elem( &metrics->root, in af_latin_metrics_init_widths()
158 dummy->units_per_em = metrics->units_per_em; in af_latin_metrics_init_widths()
177 AF_LatinAxis axis = &metrics->axis[dim]; in af_latin_metrics_init_widths()
[all …]
/external/freetype/src/sfnt/
Dttsbit.c286 FT_Size_Metrics* metrics ) in tt_face_load_strike_metrics() argument
317 metrics->x_ppem = (FT_UShort)strike[44]; in tt_face_load_strike_metrics()
318 metrics->y_ppem = (FT_UShort)strike[45]; in tt_face_load_strike_metrics()
320 metrics->ascender = (FT_Char)strike[16] * 64; /* hori.ascender */ in tt_face_load_strike_metrics()
321 metrics->descender = (FT_Char)strike[17] * 64; /* hori.descender */ in tt_face_load_strike_metrics()
333 if ( metrics->descender > 0 ) in tt_face_load_strike_metrics()
337 metrics->descender = -metrics->descender; in tt_face_load_strike_metrics()
340 else if ( metrics->descender == 0 ) in tt_face_load_strike_metrics()
342 if ( metrics->ascender == 0 ) in tt_face_load_strike_metrics()
349 metrics->x_ppem, metrics->y_ppem )); in tt_face_load_strike_metrics()
[all …]
/external/pdfium/third_party/freetype/src/cid/
Dcidgload.c172 FT_Incremental_MetricsRec metrics; in cid_load_glyph() local
175 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x ); in cid_load_glyph()
176 metrics.bearing_y = 0; in cid_load_glyph()
177 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x ); in cid_load_glyph()
178 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y ); in cid_load_glyph()
181 glyph_index, FALSE, &metrics ); in cid_load_glyph()
183 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x ); in cid_load_glyph()
184 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance ); in cid_load_glyph()
185 decoder->builder.advance.y = INT_TO_FIXED( metrics.advance_v ); in cid_load_glyph()
294 glyph->x_scale = cidsize->metrics.x_scale; in cid_slot_load_glyph()
[all …]
/external/ImageMagick/coders/
Dcaption.c124 metrics; in ReadCAPTIONImage() local
165 i=FormatMagickCaption(image,draw_info,split,&metrics,&text, in ReadCAPTIONImage()
170 -metrics.bounds.x1,metrics.ascent); in ReadCAPTIONImage()
173 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadCAPTIONImage()
174 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadCAPTIONImage()
181 i=FormatMagickCaption(image,draw_info,split,&metrics,&text,exception); in ReadCAPTIONImage()
185 -metrics.bounds.x1,metrics.ascent); in ReadCAPTIONImage()
188 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadCAPTIONImage()
189 image->rows=(size_t) ((i+1)*(metrics.ascent-metrics.descent+ in ReadCAPTIONImage()
216 i=FormatMagickCaption(image,draw_info,split,&metrics,&text, in ReadCAPTIONImage()
[all …]
Dlabel.c109 metrics; in ReadLABELImage() local
134 metrics.width=0; in ReadLABELImage()
135 metrics.ascent=0.0; in ReadLABELImage()
136 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage()
139 image->columns=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage()
140 image->rows=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage()
157 -metrics.bounds.x1,metrics.ascent); in ReadLABELImage()
160 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage()
161 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage()
162 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage()
[all …]
/external/pdfium/third_party/freetype/src/type1/
Dt1gload.c102 FT_Incremental_MetricsRec metrics; in T1_Parse_Glyph_And_Get_Char_String() local
105 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x ); in T1_Parse_Glyph_And_Get_Char_String()
106 metrics.bearing_y = 0; in T1_Parse_Glyph_And_Get_Char_String()
107 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x ); in T1_Parse_Glyph_And_Get_Char_String()
108 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y ); in T1_Parse_Glyph_And_Get_Char_String()
111 glyph_index, FALSE, &metrics ); in T1_Parse_Glyph_And_Get_Char_String()
113 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x ); in T1_Parse_Glyph_And_Get_Char_String()
114 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance ); in T1_Parse_Glyph_And_Get_Char_String()
115 decoder->builder.advance.y = INT_TO_FIXED( metrics.advance_v ); in T1_Parse_Glyph_And_Get_Char_String()
312 glyph->x_scale = t1size->metrics.x_scale; in T1_Load_Glyph()
[all …]
/external/pdfium/third_party/freetype/src/sfnt/
Dttsbit.c239 FT_Size_Metrics* metrics ) in tt_face_load_strike_metrics() argument
254 metrics->x_ppem = (FT_UShort)strike[44]; in tt_face_load_strike_metrics()
255 metrics->y_ppem = (FT_UShort)strike[45]; in tt_face_load_strike_metrics()
257 metrics->ascender = (FT_Char)strike[16] * 64; /* hori.ascender */ in tt_face_load_strike_metrics()
258 metrics->descender = (FT_Char)strike[17] * 64; /* hori.descender */ in tt_face_load_strike_metrics()
259 metrics->height = metrics->ascender - metrics->descender; in tt_face_load_strike_metrics()
262 metrics->max_advance = ( (FT_Char)strike[22] + /* min_origin_SB */ in tt_face_load_strike_metrics()
306 metrics->x_ppem = ppem; in tt_face_load_strike_metrics()
307 metrics->y_ppem = ppem; in tt_face_load_strike_metrics()
312 metrics->ascender = ppem_ * hori->Ascender * 64 / upem_; in tt_face_load_strike_metrics()
[all …]
/external/skia/src/core/
DSkPaintPriv.cpp58 void SkPaintPriv::ScaleFontMetrics(SkPaint::FontMetrics* metrics, SkScalar scale) { in ScaleFontMetrics() argument
59 metrics->fTop *= scale; in ScaleFontMetrics()
60 metrics->fAscent *= scale; in ScaleFontMetrics()
61 metrics->fDescent *= scale; in ScaleFontMetrics()
62 metrics->fBottom *= scale; in ScaleFontMetrics()
63 metrics->fLeading *= scale; in ScaleFontMetrics()
64 metrics->fAvgCharWidth *= scale; in ScaleFontMetrics()
65 metrics->fXMin *= scale; in ScaleFontMetrics()
66 metrics->fXMax *= scale; in ScaleFontMetrics()
67 metrics->fXHeight *= scale; in ScaleFontMetrics()
[all …]
/external/skia/src/pdf/
DSkPDFFont.cpp138 static bool can_embed(const SkAdvancedTypefaceMetrics& metrics) { in can_embed() argument
139 return !SkToBool(metrics.fFlags & SkAdvancedTypefaceMetrics::kNotEmbeddable_FontFlag); in can_embed()
155 std::unique_ptr<SkAdvancedTypefaceMetrics> metrics = typeface->getAdvancedMetrics(); in GetMetrics() local
156 if (!metrics) { in GetMetrics()
157 metrics = skstd::make_unique<SkAdvancedTypefaceMetrics>(); in GetMetrics()
160 if (0 == metrics->fStemV || 0 == metrics->fCapHeight) { in GetMetrics()
165 if (0 == metrics->fStemV) { in GetMetrics()
174 metrics->fStemV = stemV; in GetMetrics()
176 if (0 == metrics->fCapHeight) { in GetMetrics()
184 metrics->fCapHeight = SkToS16(SkScalarRoundToInt(capHeight / 2)); in GetMetrics()
[all …]
/external/ImageMagick/MagickWand/
Dmagick-wand.c525 metrics; in MagickQueryFontMetrics() local
548 (void) ResetMagickMemory(&metrics,0,sizeof(metrics)); in MagickQueryFontMetrics()
549 status=GetTypeMetrics(wand->images,draw_info,&metrics,wand->exception); in MagickQueryFontMetrics()
556 font_metrics[0]=metrics.pixels_per_em.x; in MagickQueryFontMetrics()
557 font_metrics[1]=metrics.pixels_per_em.y; in MagickQueryFontMetrics()
558 font_metrics[2]=metrics.ascent; in MagickQueryFontMetrics()
559 font_metrics[3]=metrics.descent; in MagickQueryFontMetrics()
560 font_metrics[4]=metrics.width; in MagickQueryFontMetrics()
561 font_metrics[5]=metrics.height; in MagickQueryFontMetrics()
562 font_metrics[6]=metrics.max_advance; in MagickQueryFontMetrics()
[all …]
/external/pdfium/third_party/freetype/src/base/
Dftobjs.c344 FT_ZERO( &slot->metrics ); in ft_glyphslot_clear()
551 FT_Glyph_Metrics* metrics = &slot->metrics; in ft_glyphslot_grid_fit_metrics() local
557 metrics->horiBearingX = FT_PIX_FLOOR( metrics->horiBearingX ); in ft_glyphslot_grid_fit_metrics()
558 metrics->horiBearingY = FT_PIX_CEIL ( metrics->horiBearingY ); in ft_glyphslot_grid_fit_metrics()
560 right = FT_PIX_CEIL( metrics->vertBearingX + metrics->width ); in ft_glyphslot_grid_fit_metrics()
561 bottom = FT_PIX_CEIL( metrics->vertBearingY + metrics->height ); in ft_glyphslot_grid_fit_metrics()
563 metrics->vertBearingX = FT_PIX_FLOOR( metrics->vertBearingX ); in ft_glyphslot_grid_fit_metrics()
564 metrics->vertBearingY = FT_PIX_FLOOR( metrics->vertBearingY ); in ft_glyphslot_grid_fit_metrics()
566 metrics->width = right - metrics->vertBearingX; in ft_glyphslot_grid_fit_metrics()
567 metrics->height = bottom - metrics->vertBearingY; in ft_glyphslot_grid_fit_metrics()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DDisplayTest.java28 DisplayMetrics metrics = new DisplayMetrics(); in shouldProvideDisplayMetrics() local
30 display.getMetrics(metrics); in shouldProvideDisplayMetrics()
32 assertEquals(1.5f, metrics.density, 0.05); in shouldProvideDisplayMetrics()
33 assertEquals(DisplayMetrics.DENSITY_MEDIUM, metrics.densityDpi); in shouldProvideDisplayMetrics()
34 assertEquals(1.6f, metrics.scaledDensity, 0.05); in shouldProvideDisplayMetrics()
35 assertEquals(1024, metrics.widthPixels); in shouldProvideDisplayMetrics()
36 assertEquals(600, metrics.heightPixels); in shouldProvideDisplayMetrics()
37 assertEquals(183.0f, metrics.xdpi, 0.05); in shouldProvideDisplayMetrics()
38 assertEquals(184.0f, metrics.ydpi, 0.05); in shouldProvideDisplayMetrics()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTypedValue.java47 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() argument
52 metrics); in complexToDimension()
57 DisplayMetrics metrics) in complexToDimensionPixelOffset() argument
62 metrics); in complexToDimensionPixelOffset()
67 DisplayMetrics metrics) in complexToDimensionPixelSize() argument
73 metrics); in complexToDimensionPixelSize()
82 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() argument
84 float res = complexToDimension(data, metrics); in complexToDimensionNoisy()
97 public static float applyDimension(int unit, float value, DisplayMetrics metrics) { in applyDimension() argument
102 return value * metrics.density; in applyDimension()
[all …]
/external/freetype/src/base/
Dftobjs.c364 FT_ZERO( &slot->metrics ); in ft_glyphslot_clear()
572 FT_Glyph_Metrics* metrics = &slot->metrics; in ft_glyphslot_grid_fit_metrics() local
578 metrics->horiBearingX = FT_PIX_FLOOR( metrics->horiBearingX ); in ft_glyphslot_grid_fit_metrics()
579 metrics->horiBearingY = FT_PIX_CEIL ( metrics->horiBearingY ); in ft_glyphslot_grid_fit_metrics()
581 right = FT_PIX_CEIL( metrics->vertBearingX + metrics->width ); in ft_glyphslot_grid_fit_metrics()
582 bottom = FT_PIX_CEIL( metrics->vertBearingY + metrics->height ); in ft_glyphslot_grid_fit_metrics()
584 metrics->vertBearingX = FT_PIX_FLOOR( metrics->vertBearingX ); in ft_glyphslot_grid_fit_metrics()
585 metrics->vertBearingY = FT_PIX_FLOOR( metrics->vertBearingY ); in ft_glyphslot_grid_fit_metrics()
587 metrics->width = right - metrics->vertBearingX; in ft_glyphslot_grid_fit_metrics()
588 metrics->height = bottom - metrics->vertBearingY; in ft_glyphslot_grid_fit_metrics()
[all …]
/external/webrtc/webrtc/system_wrappers/include/
Dmetrics.h82 webrtc::metrics::HistogramFactoryGetCounts(name, min, max, bucket_count))
103 webrtc::metrics::HistogramFactoryGetCounts(name, min, max, bucket_count))
118 webrtc::metrics::HistogramFactoryGetEnumeration(name, boundary))
124 webrtc::metrics::HistogramFactoryGetEnumeration(name, boundary))
131 static webrtc::metrics::Histogram* atomic_histogram_pointer = nullptr; \
132 webrtc::metrics::Histogram* histogram_pointer = \
136 webrtc::metrics::Histogram* prev_pointer = \
139 static_cast<webrtc::metrics::Histogram*>(nullptr), \
144 webrtc::metrics::HistogramAdd(histogram_pointer, constant_name, sample); \
152 webrtc::metrics::Histogram* histogram_pointer = factory_get_invocation; \
[all …]
/external/pdfium/third_party/freetype/src/truetype/
Dttobjs.c822 FT_Size_Metrics* metrics = &exec->metrics; in tt_size_run_fpgm() local
826 metrics->x_ppem = 0; in tt_size_run_fpgm()
827 metrics->y_ppem = 0; in tt_size_run_fpgm()
828 metrics->x_scale = 0; in tt_size_run_fpgm()
829 metrics->y_scale = 0; in tt_size_run_fpgm()
1035 TT_Size_Metrics* metrics = &size->ttmetrics; in tt_size_init_bytecode() local
1038 metrics->rotated = FALSE; in tt_size_init_bytecode()
1039 metrics->stretched = FALSE; in tt_size_init_bytecode()
1042 metrics->compensations[0] = 0; /* gray */ in tt_size_init_bytecode()
1043 metrics->compensations[1] = 0; /* black */ in tt_size_init_bytecode()
[all …]
Dttgload.c196 FT_Incremental_MetricsRec metrics; in tt_get_metrics_incr_overrides() local
200 metrics.bearing_x = loader->left_bearing; in tt_get_metrics_incr_overrides()
201 metrics.bearing_y = 0; in tt_get_metrics_incr_overrides()
202 metrics.advance = loader->advance; in tt_get_metrics_incr_overrides()
203 metrics.advance_v = 0; in tt_get_metrics_incr_overrides()
207 glyph_index, FALSE, &metrics ); in tt_get_metrics_incr_overrides()
211 left_bearing = (FT_Short)metrics.bearing_x; in tt_get_metrics_incr_overrides()
212 advance_width = (FT_UShort)metrics.advance; in tt_get_metrics_incr_overrides()
217 metrics.bearing_x = 0; in tt_get_metrics_incr_overrides()
218 metrics.bearing_y = loader->top_bearing; in tt_get_metrics_incr_overrides()
[all …]
/external/freetype/src/truetype/
Dttobjs.c795 FT_Size_Metrics* metrics = &exec->metrics; in tt_size_run_fpgm() local
799 metrics->x_ppem = 0; in tt_size_run_fpgm()
800 metrics->y_ppem = 0; in tt_size_run_fpgm()
801 metrics->x_scale = 0; in tt_size_run_fpgm()
802 metrics->y_scale = 0; in tt_size_run_fpgm()
1017 TT_Size_Metrics* metrics = &size->ttmetrics; in tt_size_init_bytecode() local
1020 metrics->rotated = FALSE; in tt_size_init_bytecode()
1021 metrics->stretched = FALSE; in tt_size_init_bytecode()
1024 metrics->compensations[0] = 0; /* gray */ in tt_size_init_bytecode()
1025 metrics->compensations[1] = 0; /* black */ in tt_size_init_bytecode()
[all …]
/external/autotest/server/hosts/
Dshadowing_store.py12 from chromite.lib import metrics
61 metrics.Counter(
92 metrics.Counter(_COMMIT_METRIC_NAME).increment(
103 metrics.Counter(_COMMIT_METRIC_NAME).increment(
106 metrics.Counter(_COMMIT_METRIC_NAME).increment(
113 metrics.Counter(_REFRESH_METRIC_NAME).increment(
121 metrics.Counter(_REFRESH_METRIC_NAME).increment(fields={
127 metrics.Counter(_REFRESH_METRIC_NAME).increment(
131 metrics.Counter(_REFRESH_METRIC_NAME).increment(
/external/harfbuzz_ng/src/
Dhb-ft.cc271 *x = ft_face->glyph->metrics.horiBearingX - ft_face->glyph->metrics.vertBearingX; in hb_ft_get_glyph_v_origin()
272 *y = ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY); in hb_ft_get_glyph_v_origin()
312 extents->x_bearing = ft_face->glyph->metrics.horiBearingX; in hb_ft_get_glyph_extents()
313 extents->y_bearing = ft_face->glyph->metrics.horiBearingY; in hb_ft_get_glyph_extents()
314 extents->width = ft_face->glyph->metrics.width; in hb_ft_get_glyph_extents()
315 extents->height = -ft_face->glyph->metrics.height; in hb_ft_get_glyph_extents()
408 hb_font_extents_t *metrics, in hb_ft_get_font_h_extents() argument
413 metrics->ascender = ft_face->size->metrics.ascender; in hb_ft_get_font_h_extents()
414 metrics->descender = ft_face->size->metrics.descender; in hb_ft_get_font_h_extents()
415metrics->line_gap = ft_face->size->metrics.height - (ft_face->size->metrics.ascender - ft_face->si… in hb_ft_get_font_h_extents()
[all …]

12345678910>>...14