Searched refs:metrics (Results 1 - 25 of 167) sorted by relevance

1234567

/external/freetype/src/autofit/
H A Dafindic.c36 af_indic_metrics_init( AF_CJKMetrics metrics, argument
43 metrics->units_per_em = face->units_per_EM;
49 af_cjk_metrics_init_widths( metrics, face );
52 af_cjk_metrics_init_blues( metrics, face, af_cjk_blue_chars );
54 af_cjk_metrics_check_digits( metrics, face );
64 af_indic_metrics_scale( AF_CJKMetrics metrics, argument
68 af_cjk_metrics_scale( metrics, scaler );
74 AF_CJKMetrics metrics )
77 return af_cjk_hints_init( hints, metrics );
84 AF_CJKMetrics metrics )
[all...]
H A Dafdummy.c27 AF_StyleMetrics metrics )
29 af_glyph_hints_rescale( hints, metrics );
31 hints->x_scale = metrics->scaler.x_scale;
32 hints->y_scale = metrics->scaler.y_scale;
33 hints->x_delta = metrics->scaler.x_delta;
34 hints->y_delta = metrics->scaler.y_delta;
H A Dafloader.c93 AF_StyleMetrics metrics = loader->metrics; local
133 loader->pp2.x = FT_MulFix( slot->metrics.horiAdvance,
147 AF_StyleClass style_class = metrics->style_class;
155 metrics );
158 /* we now need to adjust the metrics according to the change in */
242 vvector.x = slot->metrics.vertBearingX - slot->metrics.horiBearingX;
243 vvector.y = slot->metrics.vertBearingY - slot->metrics
359 AF_StyleMetrics metrics; local
[all...]
H A Dafcjk.h84 /* used for horizontal metrics too for CJK */
106 af_cjk_metrics_init( AF_CJKMetrics metrics,
110 af_cjk_metrics_scale( AF_CJKMetrics metrics,
115 AF_CJKMetrics metrics );
120 AF_CJKMetrics metrics );
124 af_cjk_metrics_check_digits( AF_CJKMetrics metrics,
128 af_cjk_metrics_init_widths( AF_CJKMetrics metrics,
/external/fonttools/Lib/fontTools/ttLib/tables/
H A 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[glyphNam
[all...]
H A DE_B_D_T_.py79 # changed the size metrics should be recalculated. There are a variety
120 # requires metrics then those metrics may be in the locator.
121 # In this case populate the bitmaps with "export metrics".
128 # I'm not sure which metrics have priority here.
129 # For now if both metrics exist go with glyph metrics.
130 if hasattr(glyph, 'metrics'):
131 glyph.exportMetrics = glyph.metrics
133 glyph.exportMetrics = curIndexSubTable.metrics
[all...]
/external/fonttools/Tools/fontTools/ttLib/tables/
H A 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[glyphNam
[all...]
H A DE_B_D_T_.py79 # changed the size metrics should be recalculated. There are a variety
120 # requires metrics then those metrics may be in the locator.
121 # In this case populate the bitmaps with "export metrics".
128 # I'm not sure which metrics have priority here.
129 # For now if both metrics exist go with glyph metrics.
130 if hasattr(glyph, 'metrics'):
131 glyph.exportMetrics = glyph.metrics
133 glyph.exportMetrics = curIndexSubTable.metrics
[all...]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DDisplayTest.java28 DisplayMetrics metrics = new DisplayMetrics();
30 display.getMetrics(metrics);
32 assertEquals(1.5f, metrics.density, 0.05);
33 assertEquals(DisplayMetrics.DENSITY_MEDIUM, metrics.densityDpi);
34 assertEquals(1.6f, metrics.scaledDensity, 0.05);
35 assertEquals(1024, metrics.widthPixels);
36 assertEquals(600, metrics.heightPixels);
37 assertEquals(183.0f, metrics.xdpi, 0.05);
38 assertEquals(184.0f, metrics.ydpi, 0.05);
/external/lldb/examples/summaries/cocoa/
H A Dmetrics.py37 # avoid getting the full dump of this ValueObject just to save its metrics
46 def __init__(self,metrics):
47 self.metrics = metrics
50 for key,value in self.metrics.metrics.items():
55 def __init__(self,metrics):
56 self.metrics = metrics
59 for key,value in self.metrics
[all...]
/external/pdfium/third_party/freetype/src/type1/
H A Dt1gload.c99 /* Incremental fonts can optionally override the metrics. */
102 FT_Incremental_MetricsRec metrics; local
105 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x );
106 metrics.bearing_y = 0;
107 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x );
108 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y );
111 glyph_index, FALSE, &metrics );
113 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x );
114 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance );
115 decoder->builder.advance.y = INT_TO_FIXED( metrics
397 FT_Glyph_Metrics* metrics = &t1glyph->metrics; local
[all...]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
H A DFontUtils.java30 Paint.FontMetrics metrics = paint.getFontMetrics();
31 return (-metrics.ascent) + metrics.descent;
32 //return (-metrics.top) + metrics.bottom;
/external/pdfium/third_party/freetype/src/cid/
H A Dcidgload.c169 /* Incremental fonts can optionally override the metrics. */
172 FT_Incremental_MetricsRec metrics; local
175 metrics.bearing_x = FIXED_TO_INT( decoder->builder.left_bearing.x );
176 metrics.bearing_y = 0;
177 metrics.advance = FIXED_TO_INT( decoder->builder.advance.x );
178 metrics.advance_v = FIXED_TO_INT( decoder->builder.advance.y );
181 glyph_index, FALSE, &metrics );
183 decoder->builder.left_bearing.x = INT_TO_FIXED( metrics.bearing_x );
184 decoder->builder.advance.x = INT_TO_FIXED( metrics.advance );
185 decoder->builder.advance.y = INT_TO_FIXED( metrics
359 FT_Glyph_Metrics* metrics = &cidglyph->metrics; local
[all...]
/external/freetype/src/base/
H A Dftsynth.c110 face->size->metrics.y_scale ) / 24;
151 slot->metrics.width += xstr;
152 slot->metrics.height += ystr;
153 slot->metrics.horiAdvance += xstr;
154 slot->metrics.vertAdvance += ystr;
155 slot->metrics.horiBearingY += ystr;
/external/pdfium/third_party/freetype/src/base/
H A Dftsynth.c110 face->size->metrics.y_scale ) / 24;
151 slot->metrics.width += xstr;
152 slot->metrics.height += ystr;
153 slot->metrics.horiAdvance += xstr;
154 slot->metrics.vertAdvance += ystr;
155 slot->metrics.horiBearingY += ystr;
/external/freetype/src/sfnt/
H A Dttsbit.h46 FT_Size_Metrics* metrics );
55 TT_SBit_MetricsRec *metrics );
H A Dttsbit.c239 FT_Size_Metrics* metrics )
254 metrics->x_ppem = (FT_UShort)strike[44];
255 metrics->y_ppem = (FT_UShort)strike[45];
257 metrics->ascender = (FT_Char)strike[16] << 6; /* hori.ascender */
258 metrics->descender = (FT_Char)strike[17] << 6; /* hori.descender */
259 metrics->height = metrics->ascender - metrics->descender;
262 metrics->max_advance = ( (FT_Char)strike[22] + /* min_origin_SB */
306 metrics
333 TT_SBit_Metrics metrics; member in struct:TT_SBitDecoderRec_
503 TT_SBit_Metrics metrics = decoder->metrics; local
[all...]
H A Dpngshim.h37 TT_SBit_Metrics metrics,
/external/pdfium/third_party/freetype/src/sfnt/
H A Dttsbit.h46 FT_Size_Metrics* metrics );
55 TT_SBit_MetricsRec *metrics );
H A Dttsbit.c239 FT_Size_Metrics* metrics )
254 metrics->x_ppem = (FT_UShort)strike[44];
255 metrics->y_ppem = (FT_UShort)strike[45];
257 metrics->ascender = (FT_Char)strike[16] << 6; /* hori.ascender */
258 metrics->descender = (FT_Char)strike[17] << 6; /* hori.descender */
259 metrics->height = metrics->ascender - metrics->descender;
262 metrics->max_advance = ( (FT_Char)strike[22] + /* min_origin_SB */
305 metrics
329 TT_SBit_Metrics metrics; member in struct:TT_SBitDecoderRec_
499 TT_SBit_Metrics metrics = decoder->metrics; local
[all...]
H A Dpngshim.h36 TT_SBit_Metrics metrics,
/external/skia/src/fonts/
H A DSkTestScalerContext.cpp125 void SkTestTypeface::getFontMetrics(SkPaint::FontMetrics* metrics) {
126 *metrics = fTestFont->fMetrics;
272 void generateFontMetrics(SkPaint::FontMetrics* metrics) override {
273 fFace->getFontMetrics(metrics);
274 if (metrics) {
276 metrics->fTop = SkScalarMul(metrics->fTop, scale);
277 metrics->fAscent = SkScalarMul(metrics->fAscent, scale);
278 metrics
[all...]
H A DSkGScalerContext.cpp140 void SkGScalerContext::generateFontMetrics(SkPaint::FontMetrics* metrics) { argument
141 fProxy->getFontMetrics(metrics);
142 if (metrics) {
144 metrics->fTop = SkScalarMul(metrics->fTop, scale);
145 metrics->fAscent = SkScalarMul(metrics->fAscent, scale);
146 metrics->fDescent = SkScalarMul(metrics->fDescent, scale);
147 metrics
[all...]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowTypedValue.java47 public static float complexToDimension(int data, DisplayMetrics metrics) argument
52 metrics);
57 DisplayMetrics metrics)
62 metrics);
67 DisplayMetrics metrics)
73 metrics);
82 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) argument
84 float res = complexToDimension(data, metrics);
97 public static float applyDimension(int unit, float value, DisplayMetrics metrics) { argument
102 return value * metrics
56 complexToDimensionPixelOffset(int data, DisplayMetrics metrics) argument
66 complexToDimensionPixelSize(int data, DisplayMetrics metrics) argument
116 getDimension(DisplayMetrics metrics) argument
[all...]
/external/webrtc/src/modules/audio_processing/
H A Decho_cancellation_impl.cc238 // TODO(ajm): we currently just use the metrics from the first AEC. Think more
240 int EchoCancellationImpl::GetMetrics(Metrics* metrics) { argument
242 if (metrics == NULL) {
252 memset(metrics, 0, sizeof(Metrics));
260 metrics->residual_echo_return_loss.instant = my_metrics.rerl.instant;
261 metrics->residual_echo_return_loss.average = my_metrics.rerl.average;
262 metrics->residual_echo_return_loss.maximum = my_metrics.rerl.max;
263 metrics->residual_echo_return_loss.minimum = my_metrics.rerl.min;
265 metrics->echo_return_loss.instant = my_metrics.erl.instant;
266 metrics
[all...]

Completed in 3195 milliseconds

1234567