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

123456

/external/chromium/base/win/
H A Dwin_util_unittest.cc50 NONCLIENTMETRICS metrics = {0}; local
51 GetNonClientMetrics(&metrics);
52 EXPECT_TRUE(metrics.cbSize > 0);
53 EXPECT_TRUE(metrics.iScrollWidth > 0);
54 EXPECT_TRUE(metrics.iScrollHeight > 0);
/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, 0x7530 );
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_ScriptMetrics metrics )
30 metrics );
H A Dafcjk.h33 /* CJK (global) metrics management */
86 /* used for horizontal metrics too for CJK */
107 af_cjk_metrics_init( AF_CJKMetrics metrics,
111 af_cjk_metrics_scale( AF_CJKMetrics metrics,
116 AF_CJKMetrics metrics );
121 AF_CJKMetrics metrics );
125 af_cjk_metrics_check_digits( AF_CJKMetrics metrics,
129 af_cjk_metrics_init_widths( AF_CJKMetrics metrics,
H A Dafloader.c103 AF_ScriptMetrics metrics = loader->metrics; local
127 /* set linear metrics */
128 slot->linearHoriAdvance = slot->metrics.horiAdvance;
129 slot->linearVertAdvance = slot->metrics.vertAdvance;
167 loader->pp2.x = FT_MulFix( slot->metrics.horiAdvance,
177 if ( metrics->clazz->script_hints_apply )
178 metrics->clazz->script_hints_apply( hints,
180 metrics );
182 /* we now need to adjust the metrics accordin
514 AF_ScriptMetrics metrics; local
[all...]
H A Daflatin.h34 #define AF_LATIN_CONSTANT( metrics, c ) \
35 ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 )
54 /* Latin (global) metrics management */
107 /* ignored for horizontal metrics */
127 af_latin_metrics_init( AF_LatinMetrics metrics,
131 af_latin_metrics_scale( AF_LatinMetrics metrics,
135 af_latin_metrics_init_widths( AF_LatinMetrics metrics,
140 af_latin_metrics_check_digits( AF_LatinMetrics metrics,
H A Dafglobal.c71 AF_ScriptMetrics metrics[AF_SCRIPT_MAX]; member in struct:AF_FaceGlobalsRec_
221 if ( globals->metrics[nn] )
226 FT_ASSERT( globals->metrics[nn]->clazz == clazz );
229 clazz->script_metrics_done( globals->metrics[nn] );
231 FT_FREE( globals->metrics[nn] );
250 AF_ScriptMetrics metrics = NULL; local
273 metrics = globals->metrics[clazz->script];
274 if ( metrics == NULL )
276 /* create the global metrics objec
[all...]
/external/freetype/src/base/
H A Dftsynth.c98 face->size->metrics.y_scale ) / 24;
146 slot->metrics.width += xstr;
147 slot->metrics.height += ystr;
148 slot->metrics.horiBearingY += ystr;
149 slot->metrics.horiAdvance += xstr;
150 slot->metrics.vertBearingX -= xstr / 2;
151 slot->metrics.vertBearingY += ystr;
152 slot->metrics.vertAdvance += ystr;
H A Dftobjs.c319 FT_ZERO( &slot->metrics );
521 FT_Glyph_Metrics* metrics = &slot->metrics; local
527 metrics->horiBearingX = FT_PIX_FLOOR( metrics->horiBearingX );
528 metrics->horiBearingY = FT_PIX_CEIL ( metrics->horiBearingY );
530 right = FT_PIX_CEIL( metrics->vertBearingX + metrics->width );
531 bottom = FT_PIX_CEIL( metrics
733 FT_Size_Metrics* metrics = &face->size->metrics; local
2530 ft_synthesize_vertical_metrics( FT_Glyph_Metrics* metrics, FT_Pos advance ) argument
2593 FT_Size_Metrics* metrics; local
2640 FT_Size_Metrics* metrics; local
2782 FT_Size_Metrics* metrics = &face->size->metrics; local
2836 FT_Size_Metrics* metrics = &face->size->metrics; local
[all...]
/external/harfbuzz/contrib/
H A Dharfbuzz-freetype.c96 HB_GlyphMetrics *metrics) {
101 metrics->x = metrics->y = metrics->width = metrics->height = 0;
102 metrics->xOffset = metrics->yOffset = 0;
106 const FT_Glyph_Metrics *ftmetrics = &face->glyph->metrics;
107 metrics->width = ftmetrics->width;
108 metrics
95 hb_freetype_glyph_metrics_get(HB_Font font, HB_Glyph glyph, HB_GlyphMetrics *metrics) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DSimpleFontDataLinux.cpp65 SkPaint::FontMetrics metrics; local
68 paint.getFontMetrics(&metrics);
90 // metrics *exactly*.
95 SkScalar height = -metrics.fAscent + metrics.fDescent + metrics.fLeading;
96 ascent = SkScalarRound(-metrics.fAscent);
104 if (metrics.fXHeight)
105 xHeight = metrics.fXHeight;
111 float lineGap = SkScalarToFloat(metrics
[all...]
/external/webkit/Source/WebCore/platform/graphics/win/
H A DFontPlatformDataWin.cpp63 OUTLINETEXTMETRICW* metrics = (OUTLINETEXTMETRICW*)malloc(bufferSize); local
65 GetOutlineTextMetricsW(hdc, bufferSize, metrics);
66 WCHAR* faceName = (WCHAR*)((uintptr_t)metrics + (uintptr_t)metrics->otmpFaceName);
70 free(metrics);
H A DWebLayer.cpp119 NONCLIENTMETRICS metrics; local
120 metrics.cbSize = sizeof(metrics);
121 SystemParametersInfo(SPI_GETNONCLIENTMETRICS, metrics.cbSize, &metrics, 0);
123 family.setFamily(metrics.lfSmCaptionFont.lfFaceName);
/external/freetype/src/sfnt/
H A Dttsbit.h46 FT_Size_Metrics* metrics );
60 TT_SBit_Metrics metrics );
71 TT_SBit_MetricsRec *metrics );
H A Dttsbit.c230 /* Loads the metrics for `EBLC' index tables format 2 and 5. */
250 return FT_STREAM_READ_FIELDS( sbit_metrics_fields, &range->metrics );
345 case 1: /* variable metrics with 4-byte offsets */
346 case 3: /* variable metrics with 2-byte offsets */
378 case 2: /* all glyphs have identical metrics */
659 FT_Size_Metrics* metrics )
669 metrics->x_ppem = strike->x_ppem;
670 metrics->y_ppem = strike->y_ppem;
672 metrics->ascender = strike->hori.ascender << 6;
673 metrics
1159 Load_SBit_Single( FT_Bitmap* map, FT_Int x_offset, FT_Int y_offset, FT_Int pix_bits, FT_UShort image_format, TT_SBit_Metrics metrics, FT_Stream stream ) argument
1246 Load_SBit_Image( TT_SBit_Strike strike, TT_SBit_Range range, FT_ULong ebdt_pos, FT_ULong glyph_offset, FT_GlyphSlot slot, FT_Int x_offset, FT_Int y_offset, FT_Stream stream, TT_SBit_Metrics metrics, FT_Int depth ) argument
[all...]
H A Dttsbit0.c133 FT_Size_Metrics* metrics )
143 metrics->x_ppem = (FT_UShort)strike[44];
144 metrics->y_ppem = (FT_UShort)strike[45];
146 metrics->ascender = (FT_Char)strike[16] << 6; /* hori.ascender */
147 metrics->descender = (FT_Char)strike[17] << 6; /* hori.descender */
148 metrics->height = metrics->ascender - metrics->descender;
151 metrics->max_advance = ( (FT_Char)strike[22] + /* min_origin_SB */
165 TT_SBit_Metrics metrics; member in struct:TT_SBitDecoderRec_
321 TT_SBit_Metrics metrics = decoder->metrics; local
[all...]
/external/webkit/Source/WebCore/platform/graphics/
H A DGlyphMetricsMap.h58 void setMetricsForGlyph(Glyph glyph, const T& metrics) argument
60 locatePage(glyph / GlyphMetricsPage::size)->setMetricsForGlyph(glyph, metrics);
69 void setMetricsForGlyph(Glyph glyph, const T& metrics) argument
71 setMetricsForIndex(glyph % size, metrics);
73 void setMetricsForIndex(unsigned index, const T& metrics) argument
75 m_metrics[index] = metrics;
/external/webkit/Source/WebCore/rendering/svg/
H A DSVGTextLayoutEngineBaseline.cpp185 float SVGTextLayoutEngineBaseline::calculateGlyphAdvanceAndOrientation(bool isVerticalText, SVGTextMetrics& metrics, float angle, float& xOrientationShift, float& yOrientationShift) const argument
192 // of 180 degrees, then the current text position is incremented according to the vertical metrics of the glyph.
195 // 180 degrees, then the current text position is incremented according to the horizontal metrics of the glyph.
203 xOrientationShift = (ascentMinusDescent - metrics.width()) / 2;
206 xOrientationShift = (ascentMinusDescent + metrics.width()) / 2;
208 yOrientationShift = metrics.width();
214 return metrics.width();
216 return metrics.height();
221 yOrientationShift = -metrics.width();
223 xOrientationShift = metrics
[all...]
H A DSVGTextQuery.cpp179 const SVGTextMetrics& metrics = textMetricsValues.at(textMetricsOffset);
183 positionOffset += metrics.length();
191 // If the start position maps to a character in the metrics list, we don't need to modify it.
195 // If the start position maps to a character in the metrics list, we don't need to modify it.
216 positionOffset += metrics.length();
303 SVGTextMetrics metrics = SVGTextMetrics::measureCharacterRange(queryData->textRenderer, fragment.characterOffset + startPosition, endPosition - startPosition);
304 data->subStringLength += queryData->isVerticalText ? metrics.height() : metrics.width();
341 SVGTextMetrics metrics = SVGTextMetrics::measureCharacterRange(queryData->textRenderer, fragment.characterOffset, startPosition);
343 data->startPosition.move(0, metrics
[all...]
/external/chromium/net/socket_stream/
H A Dsocket_stream_metrics_unittest.cc6 #include "base/metrics/histogram.h"
69 SocketStreamMetrics metrics(GURL("ws://www.example.com/"));
71 metrics.OnStartConnection();
73 metrics.OnTunnelProxy();
75 metrics.OnSOCKSProxy();
77 metrics.OnSSLConnection();
124 SocketStreamMetrics metrics(GURL("ws://www.example.com/"));
125 metrics.OnWaitConnection();
126 metrics.OnStartConnection();
127 metrics
[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...]
/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DSimpleFontDataHaiku.cpp110 GlyphMetrics metrics; local
112 return metrics;
118 metrics.horizontalAdvance = escapements[0] * m_platformData.font()->Size();
119 return metrics;
/external/chromium/chrome/browser/ui/options/
H A Doptions_util.cc13 #include "chrome/browser/metrics/metrics_service.h"
127 MetricsService* metrics = g_browser_process->metrics_service(); local
128 DCHECK(metrics);
129 if (metrics) {
131 metrics->Start();
133 metrics->Stop();
/external/webkit/Tools/DumpRenderTree/chromium/
H A DTestShellWin.cpp190 NONCLIENTMETRICS metrics = {0}; local
191 metrics.cbSize = isVistaOrLater ? (sizeof NONCLIENTMETRICS) : NONCLIENTMETRICS_SIZE_PRE_VISTA;
192 const bool success = !!::SystemParametersInfo(SPI_GETNONCLIENTMETRICS, metrics.cbSize, &metrics, 0);
195 {&metrics.lfStatusFont, &metrics.lfMenuFont, &metrics.lfSmCaptionFont};
/external/freetype/src/truetype/
H A Dttobjs.c752 FT_Size_Metrics* metrics = &exec->metrics; local
756 metrics->x_ppem = 0;
757 metrics->y_ppem = 0;
758 metrics->x_scale = 0;
759 metrics->y_scale = 0;
946 /* Set default metrics */
948 TT_Size_Metrics* metrics = &size->ttmetrics; local
951 metrics->rotated = FALSE;
952 metrics
1130 FT_Size_Metrics* metrics; local
[all...]

Completed in 1572 milliseconds

123456