56 references to IdealToReal
PresentationCore (56)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (6)
383
double realFormatWidth = _metrics._formatter.
IdealToReal
(finiteFormatWidth, PixelsPerDip);
585
_metrics._formatter.
IdealToReal
(_paragraphWidth, PixelsPerDip),
586
_metrics._formatter.
IdealToReal
(_metrics._height, PixelsPerDip)
1023
return _metrics._formatter.
IdealToReal
(LSLineUToParagraphU(DistanceFromCharacterHit(characterHit)), PixelsPerDip);
2650
get { return _metrics._formatter.
IdealToReal
(_textMinWidthAtTrailing + _metrics._textStart, PixelsPerDip); }
2704
double paragraphWidth = _metrics._formatter.
IdealToReal
(_paragraphWidth, PixelsPerDip);
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (13)
1345
penThickness = currentLine.Formatter.
IdealToReal
(ulThickness * penThickness, currentLine.PixelsPerDip);
1349
penThickness = currentLine.Formatter.
IdealToReal
(penThickness * lsrun.EmSize, currentLine.PixelsPerDip);
1376
unitValue = currentLine.Formatter.
IdealToReal
(lsrun.EmSize, currentLine.PixelsPerDip);
1389
double lineLength = currentLine.Formatter.
IdealToReal
(ulLength, currentLine.PixelsPerDip);
2657
currentLine.Formatter.
IdealToReal
(currentLine.LSLineUToParagraphU(lsrunOrigin.x), currentLine.PixelsPerDip)+ Draw.VectorToLineOrigin.X,
2658
currentLine.Formatter.
IdealToReal
((lsrunOrigin.y + lsrun.BaselineMoveOffset), currentLine.PixelsPerDip) + Draw.VectorToLineOrigin.Y
3274
glyphAdvances = new ThousandthOfEmRealDoubles(textFormatterImp.
IdealToReal
(lsrun.EmSize, currentLine.PixelsPerDip), glyphCount);
3275
glyphOffsets = new ThousandthOfEmRealPoints(textFormatterImp.
IdealToReal
(lsrun.EmSize, currentLine.PixelsPerDip), glyphCount);
3280
glyphAdvances[i] = textFormatterImp.
IdealToReal
(piJustifiedGlyphAdvances[i], currentLine.PixelsPerDip);
3308
glyphAdvances.Add(textFormatterImp.
IdealToReal
(piJustifiedGlyphAdvances[i], currentLine.PixelsPerDip));
3422
charWidths = new ThousandthOfEmRealDoubles(textFormatterImp.
IdealToReal
(lsrun.EmSize, Draw.CurrentLine.PixelsPerDip), cchText);
3426
charWidths[i] = textFormatterImp.
IdealToReal
(piCharAdvances[i], Draw.CurrentLine.PixelsPerDip);
3450
charWidths.Add(textFormatterImp.
IdealToReal
(piCharAdvances[i], Draw.CurrentLine.PixelsPerDip));
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (9)
344
xy = new Point(line.Formatter.
IdealToReal
(line.ParagraphWidth, line.PixelsPerDip) - vectorToOrigin.X - u + origin.X, v + origin.Y);
377
xy = new Point(line.Formatter.
IdealToReal
(line.ParagraphWidth - u, line.PixelsPerDip) - vectorToOrigin.X + origin.X, line.Formatter.
IdealToReal
(v, line.PixelsPerDip) + origin.Y);
381
xy = new Point(line.Formatter.
IdealToReal
(u, line.PixelsPerDip) + vectorToOrigin.X + origin.X, line.Formatter.
IdealToReal
(v, line.PixelsPerDip) + origin.Y);
443
new Point(line.Formatter.
IdealToReal
(topLeft.x, line.PixelsPerDip), line.Formatter.
IdealToReal
(topLeft.y, line.PixelsPerDip)),
444
new Point(line.Formatter.
IdealToReal
(bottomRight.x, line.PixelsPerDip), line.Formatter.
IdealToReal
(bottomRight.y, line.PixelsPerDip))
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (18)
322
_baselineOffset = formatter.
IdealToReal
(TextFormatterImp.RealToIdeal(realAscent), PixelsPerDip);
326
_height = formatter.
IdealToReal
(TextFormatterImp.RealToIdeal(realHeight), PixelsPerDip);
330
_height = formatter.
IdealToReal
(TextFormatterImp.RealToIdeal(realAscent) + TextFormatterImp.RealToIdeal(realDescent), PixelsPerDip);
339
_height = formatter.
IdealToReal
((int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
340
_baselineOffset = formatter.
IdealToReal
((int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
370
_offset = formatter.
IdealToReal
(_idealOffsetUnRounded, PixelsPerDip);
375
_offset = formatter.
IdealToReal
(_idealOffsetUnRounded, PixelsPerDip);
381
_width = formatter.
IdealToReal
(idealWidth, PixelsPerDip);
382
_widthAtTrailing = formatter.
IdealToReal
(idealWidthAtTrailing, PixelsPerDip);
383
_paragraphWidth = formatter.
IdealToReal
(paragraphWidth, PixelsPerDip);
477
return _settings.Formatter.
IdealToReal
(idealAdvance + _idealOffsetUnRounded, PixelsPerDip);
618
_settings.Formatter.
IdealToReal
(idealXRelativeToOrigin, PixelsPerDip) + origin.X,
946
displayGlyphAdvances[i] = _settings.Formatter.
IdealToReal
(run.NominalAdvances[i], PixelsPerDip);
955
displayGlyphAdvances.Add(_settings.Formatter.
IdealToReal
(run.NominalAdvances[i], PixelsPerDip));
1697
formatter.
IdealToReal
(widthLeft, pixelsPerDip),
1794
displayGlyphAdvances[i] = _textFormatterImp.
IdealToReal
(NominalAdvances[i], _pixelsPerDip);
1803
displayGlyphAdvances.Add(_textFormatterImp.
IdealToReal
(NominalAdvances[i], _pixelsPerDip));
1868
dxUnderline += _textFormatterImp.
IdealToReal
(NominalAdvances[i], _pixelsPerDip);
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (7)
383
get { return _formatter.
IdealToReal
(_paragraphToText - _textStart, _pixelsPerDip); }
392
get { return _formatter.
IdealToReal
(_textWidthAtTrailing + _textStart, _pixelsPerDip); }
401
get { return _formatter.
IdealToReal
(_textWidth + _textStart, _pixelsPerDip); }
410
get { return _formatter.
IdealToReal
(_height, _pixelsPerDip); }
420
get { return _formatter.
IdealToReal
(_textHeight, _pixelsPerDip); }
429
get { return _formatter.
IdealToReal
(_baselineOffset, _pixelsPerDip); }
439
get { return _formatter.
IdealToReal
(_textAscent, _pixelsPerDip); }
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (3)
2373
metrics = textObject.Format(_settings.Formatter.
IdealToReal
(widthLeft, _settings.TextSource.PixelsPerDip));
2380
_settings.Formatter.
IdealToReal
((Constants.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip),
2385
else if (metrics.Width > _settings.Formatter.
IdealToReal
((Constants.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip))