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

123

/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/
H A DGlyphMetricsMap.h52 void setMetricsForGlyph(Glyph glyph, const T& metrics) argument
54 locatePage(glyph / GlyphMetricsPage::size)->setMetricsForGlyph(glyph, metrics);
63 void setMetricsForGlyph(Glyph glyph, const T& metrics) argument
65 setMetricsForIndex(glyph % size, metrics);
67 void setMetricsForIndex(unsigned index, const T& metrics) argument
69 m_metrics[index] = metrics;
/macosx-10.9.5/WebCore-7537.78.1/rendering/svg/
H A DSVGTextLayoutEngineBaseline.cpp187 float SVGTextLayoutEngineBaseline::calculateGlyphAdvanceAndOrientation(bool isVerticalText, SVGTextMetrics& metrics, float angle, float& xOrientationShift, float& yOrientationShift) const argument
194 // of 180 degrees, then the current text position is incremented according to the vertical metrics of the glyph.
197 // 180 degrees, then the current text position is incremented according to the horizontal metrics of the glyph.
205 xOrientationShift = (ascentMinusDescent - metrics.width()) / 2;
208 xOrientationShift = (ascentMinusDescent + metrics.width()) / 2;
210 yOrientationShift = metrics.width();
216 return metrics.width();
218 return metrics.height();
223 yOrientationShift = -metrics.width();
225 xOrientationShift = metrics
[all...]
H A DSVGTextQuery.cpp177 SVGTextMetrics& metrics = textMetricsValues[textMetricsOffset];
181 positionOffset += metrics.length();
189 // If the start position maps to a character in the metrics list, we don't need to modify it.
193 // If the start position maps to a character in the metrics list, we don't need to modify it.
214 positionOffset += metrics.length();
301 SVGTextMetrics metrics = SVGTextMetrics::measureCharacterRange(queryData->textRenderer, fragment.characterOffset + startPosition, endPosition - startPosition);
302 data->subStringLength += queryData->isVerticalText ? metrics.height() : metrics.width();
339 SVGTextMetrics metrics = SVGTextMetrics::measureCharacterRange(queryData->textRenderer, fragment.characterOffset, startPosition);
341 data->startPosition.move(0, metrics
[all...]
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/win/
H A DFontPlatformDataWin.cpp64 OUTLINETEXTMETRICW* metrics = (OUTLINETEXTMETRICW*)malloc(bufferSize); local
66 GetOutlineTextMetricsW(hdc, bufferSize, metrics);
67 WCHAR* faceName = (WCHAR*)((uintptr_t)metrics + (uintptr_t)metrics->otmpFaceName);
71 free(metrics);
H A DSimpleFontDataWin.cpp61 // This code comes from FontDataMac.mm. We only ever do this when running regression tests so that our metrics will match Mac.
64 // vertical metrics of their Microsoft counterparts that are the de facto
85 OUTLINETEXTMETRIC metrics; local
86 GetOutlineTextMetrics(hdc, sizeof(metrics), &metrics);
87 TEXTMETRIC& textMetrics = metrics.otmTextMetrics;
106 m_fontMetrics.setUnitsPerEm(metrics.otmEMSquare);
/macosx-10.9.5/tcl-102/tk/tk/macosx/
H A DtkMacOSXScrlbr.c42 static ScrollbarMetrics metrics[2] = { variable
158 * This function retrieves the current system metrics for a scrollbar.
186 ChkErr(GetThemeMetric, kThemeMetricScrollBarWidth, &metrics[0].width);
188 &metrics[0].minThumbHeight);
191 metrics[0].topArrowHeight = bounds.origin.y;
192 metrics[0].bottomArrowHeight = height - (bounds.origin.y +
194 metrics[0].minHeight = metrics[0].minThumbHeight +
195 metrics[0].topArrowHeight + metrics[
[all...]
/macosx-10.9.5/WebCore-7537.78.1/inspector/front-end/
H A DOverridesView.js125 // When present, the third element lists device metrics separated by 'x':
238 var metrics = this._selectElement.options[this._selectElement.selectedIndex]._metrics;
239 this._setDeviceMetricsOverride(WebInspector.UserAgentSupport.DeviceMetrics.parseSetting(metrics), false, true);
271 var metrics = WebInspector.UserAgentSupport.DeviceMetrics.parseSetting(metricsSetting);
276 checkboxElement.id = "metrics-override-checkbox";
281 labelElement.appendChild(document.createTextNode(WebInspector.UIString("Device metrics")));
283 const metricsSectionElement = this._createDeviceMetricsElement(metrics);
301 var metrics = WebInspector.UserAgentSupport.DeviceMetrics.parseUserInput(this._widthOverrideElement.value, this._heightOverrideElement.value, this._fontScaleFactorOverrideElement.value);
302 if (metrics && metrics
[all...]
H A DelementsPanel.css78 .metrics {
85 .metrics .label {
94 .metrics .position {
103 .metrics .margin {
113 .metrics .border {
123 .metrics .padding {
133 .metrics .content {
147 .metrics .content span {
151 .metrics .editing {
156 .metrics
[all...]
H A DUserAgentSupport.js351 var metrics = WebInspector.UserAgentSupport.DeviceMetrics.parseSetting(this._deviceMetricsOverrideEnabled ? WebInspector.settings.deviceMetrics.get() : "");
352 if (metrics.isValid())
353 PageAgent.setDeviceMetricsOverride(metrics.width, metrics.height, metrics.fontScaleFactor, WebInspector.settings.deviceFitWindow.get());
H A DCodeMirrorTextEditor.js106 var metrics = this._codeMirror.cursorCoords(CodeMirror.Pos(lineNumber, column));
109 x: metrics.left,
110 y: metrics.top,
111 height: metrics.bottom - metrics.top
H A DElementsPanel.js84 this.sidebarPanes.metrics = new WebInspector.MetricsSidebarPane();
90 this.sidebarPanes.metrics.addEventListener(WebInspector.SidebarPane.EventTypes.wasShown, this.updateMetrics.bind(this));
96 this.sidebarPanes.metrics.addEventListener("metrics edited", this._metricsPaneEdited, this);
567 this.sidebarPanes.metrics.needsUpdate = true;
573 // Once metrics are edited, the Styles pane should be updated.
984 var metricsSidebarPane = this.sidebarPanes.metrics;
1143 this.sidebarPanes.metrics.show(splitView.secondElement());
1144 this.sidebarPanes.metrics.setExpandCallback(expandComposite);
1147 splitView.secondElement().addStyleClass("metrics
[all...]
/macosx-10.9.5/tcl-102/tk84/tk/macosx/
H A DtkMacOSXScrlbr.c67 static ScrollbarMetrics metrics[2] = { variable
107 * This function initializes the current system metrics for a
128 ChkErr(GetThemeMetric, kThemeMetricScrollBarWidth, &metrics[0].width);
130 &metrics[0].minThumbHeight);
133 metrics[0].topArrowHeight = bounds.top;
134 metrics[0].bottomArrowHeight = height - bounds.bottom;
135 metrics[0].minHeight = metrics[0].minThumbHeight +
136 metrics[0].topArrowHeight + metrics[
[all...]
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/blackberry/
H A DSimpleFontDataBlackBerry.cpp55 FONT_METRICS metrics; local
56 result = FS_font_metrics(m_platformData.font(), &metrics);
60 m_fontMetrics.setUnitsPerEm(metrics.unitsPerEm);
62 FS_USHORT xRange = metrics.font_bbox.xMax - metrics.font_bbox.xMin;
63 m_maxCharWidth = roundf((xRange * roundf(m_platformData.size())) / metrics.unitsPerEm);
68 m_fontMetrics.setXHeight(static_cast<float>(os2.sxHeight) * yppem / metrics.unitsPerEm);
69 m_avgCharWidth = static_cast<float>(os2.xAvgCharWidth) * yppem / metrics.unitsPerEm;
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/wince/
H A DSimpleFontDataWinCE.cpp49 const TEXTMETRIC& tm = m_platformData.metrics();
120 const TEXTMETRIC& tm = m_platformData.metrics();
154 const TEXTMETRIC& tm = m_platformData.metrics();
H A DFontPlatformData.h61 const TEXTMETRIC& metrics() const;
/macosx-10.9.5/WebCore-7537.78.1/platform/win/
H A DDragImageWin.cpp107 NONCLIENTMETRICS metrics; local
108 metrics.cbSize = sizeof(metrics);
109 SystemParametersInfo(SPI_GETNONCLIENTMETRICS, metrics.cbSize, &metrics, 0);
113 description.setOneFamily(metrics.lfSmCaptionFont.lfFaceName);
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/ca/win/
H A DPlatformCALayerWinInternal.cpp124 NONCLIENTMETRICS metrics; local
125 metrics.cbSize = sizeof(metrics);
126 SystemParametersInfo(SPI_GETNONCLIENTMETRICS, metrics.cbSize, &metrics, 0);
127 desc.setOneFamily(metrics.lfSmCaptionFont.lfFaceName);
/macosx-10.9.5/WebCore-7537.78.1/platform/graphics/opentype/
H A DOpenTypeVerticalData.cpp453 const OpenType::VORGTable::VertOriginYMetrics& metrics = vorg->vertOriginYMetrics[i]; local
454 m_vertOriginY.set(metrics.glyphIndex, metrics.vertOriginY);
517 const FontMetrics& metrics = font->fontMetrics(); local
519 float ascent = metrics.ascent();
/macosx-10.9.5/ICU-511.35/icuSources/samples/layout/
H A DGDIFontInstance.cpp367 GLYPHMETRICS metrics; local
374 result = GetGlyphOutline(hdc, glyph, GGO_GLYPH_INDEX | GGO_METRICS, &metrics, 0, NULL, &identity);
380 advance.fX = metrics.gmCellIncX;
H A DGnomeFontInstance.cpp154 advance.fX = fFace->glyph->metrics.horiAdvance >> 6;
/macosx-10.9.5/ruby-104/ruby/ext/tk/sample/tkextlib/treectrl/
H A Doutlook-folders.rb7 height = t.font.metrics(:linespace) + 2
H A Dwww-options.rb4 height = t.font.metrics(:linespace) + 2
147 height = t.font.metrics(:linespace) + 2
/macosx-10.9.5/tcl-102/tk/tk/unix/
H A DtkUnixRFont.c731 XGlyphInfo metrics;
781 &metrics);
782 x += metrics.xOff;
783 y += metrics.yOff;
716 XGlyphInfo metrics; local
/macosx-10.9.5/tcpdump-56/tcpdump/
H A Dospf.h161 struct tos_metric metrics; member in union:un_tos
/macosx-10.9.5/WebKit-7537.78.2/win/
H A DFullscreenVideoController.cpp520 NONCLIENTMETRICS metrics; local
521 metrics.cbSize = sizeof(metrics);
522 SystemParametersInfo(SPI_GETNONCLIENTMETRICS, metrics.cbSize, &metrics, 0);
523 desc.setOneFamily(metrics.lfSmCaptionFont.lfFaceName);

Completed in 211 milliseconds

123