60 references to IdealToReal
PresentationCore (60)
MS\Internal\TextFormatting\FullTextLine.cs (6)
360
double realFormatWidth = _metrics._formatter.
IdealToReal
(finiteFormatWidth, PixelsPerDip);
558
_metrics._formatter.
IdealToReal
(_paragraphWidth, PixelsPerDip),
559
_metrics._formatter.
IdealToReal
(_metrics._height, PixelsPerDip)
990
return _metrics._formatter.
IdealToReal
(LSLineUToParagraphU(DistanceFromCharacterHit(characterHit)), PixelsPerDip);
2589
get { return _metrics._formatter.
IdealToReal
(_textMinWidthAtTrailing + _metrics._textStart, PixelsPerDip); }
2643
double paragraphWidth = _metrics._formatter.
IdealToReal
(_paragraphWidth, PixelsPerDip);
MS\Internal\TextFormatting\LineServicesCallbacks.cs (17)
1254
penThickness = currentLine.Formatter.
IdealToReal
(ulThickness * penThickness, currentLine.PixelsPerDip);
1258
penThickness = currentLine.Formatter.
IdealToReal
(penThickness * lsrun.EmSize, currentLine.PixelsPerDip);
1285
unitValue = currentLine.Formatter.
IdealToReal
(lsrun.EmSize, currentLine.PixelsPerDip);
1298
double lineLength = currentLine.Formatter.
IdealToReal
(ulLength, currentLine.PixelsPerDip);
2492
currentLine.Formatter.
IdealToReal
(currentLine.LSLineUToParagraphU(lsrunOrigin.x), currentLine.PixelsPerDip)+ Draw.VectorToLineOrigin.X,
2493
currentLine.Formatter.
IdealToReal
((lsrunOrigin.y + lsrun.BaselineMoveOffset), currentLine.PixelsPerDip) + Draw.VectorToLineOrigin.Y
3091
glyphAdvances = new ThousandthOfEmRealDoubles(textFormatterImp.
IdealToReal
(lsrun.EmSize, currentLine.PixelsPerDip), glyphCount);
3092
glyphOffsets = new ThousandthOfEmRealPoints(textFormatterImp.
IdealToReal
(lsrun.EmSize, currentLine.PixelsPerDip), glyphCount);
3097
glyphAdvances[i] = textFormatterImp.
IdealToReal
(piJustifiedGlyphAdvances[i], currentLine.PixelsPerDip);
3099
textFormatterImp.
IdealToReal
(piiGlyphOffsets[i].du, currentLine.PixelsPerDip),
3100
textFormatterImp.
IdealToReal
(piiGlyphOffsets[i].dv, currentLine.PixelsPerDip)
3125
glyphAdvances.Add(textFormatterImp.
IdealToReal
(piJustifiedGlyphAdvances[i], currentLine.PixelsPerDip));
3133
textFormatterImp.
IdealToReal
(piiGlyphOffsets[i].du, currentLine.PixelsPerDip),
3134
textFormatterImp.
IdealToReal
(piiGlyphOffsets[i].dv, currentLine.PixelsPerDip)
3234
charWidths = new ThousandthOfEmRealDoubles(textFormatterImp.
IdealToReal
(lsrun.EmSize, Draw.CurrentLine.PixelsPerDip), cchText);
3238
charWidths[i] = textFormatterImp.
IdealToReal
(piCharAdvances[i], Draw.CurrentLine.PixelsPerDip);
3262
charWidths.Add(textFormatterImp.
IdealToReal
(piCharAdvances[i], Draw.CurrentLine.PixelsPerDip));
MS\Internal\TextFormatting\LineServicesRun.cs (9)
329
xy = new Point(line.Formatter.
IdealToReal
(line.ParagraphWidth, line.PixelsPerDip) - vectorToOrigin.X - u + origin.X, v + origin.Y);
362
xy = new Point(line.Formatter.
IdealToReal
(line.ParagraphWidth - u, line.PixelsPerDip) - vectorToOrigin.X + origin.X, line.Formatter.
IdealToReal
(v, line.PixelsPerDip) + origin.Y);
366
xy = new Point(line.Formatter.
IdealToReal
(u, line.PixelsPerDip) + vectorToOrigin.X + origin.X, line.Formatter.
IdealToReal
(v, line.PixelsPerDip) + origin.Y);
428
new Point(line.Formatter.
IdealToReal
(topLeft.x, line.PixelsPerDip), line.Formatter.
IdealToReal
(topLeft.y, line.PixelsPerDip)),
429
new Point(line.Formatter.
IdealToReal
(bottomRight.x, line.PixelsPerDip), line.Formatter.
IdealToReal
(bottomRight.y, line.PixelsPerDip))
MS\Internal\TextFormatting\SimpleTextLine.cs (18)
318
_baselineOffset = formatter.
IdealToReal
(TextFormatterImp.RealToIdeal(realAscent), PixelsPerDip);
322
_height = formatter.
IdealToReal
(TextFormatterImp.RealToIdeal(realHeight), PixelsPerDip);
326
_height = formatter.
IdealToReal
(TextFormatterImp.RealToIdeal(realAscent) + TextFormatterImp.RealToIdeal(realDescent), PixelsPerDip);
335
_height = formatter.
IdealToReal
((int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
336
_baselineOffset = formatter.
IdealToReal
((int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
366
_offset = formatter.
IdealToReal
(_idealOffsetUnRounded, PixelsPerDip);
371
_offset = formatter.
IdealToReal
(_idealOffsetUnRounded, PixelsPerDip);
377
_width = formatter.
IdealToReal
(idealWidth, PixelsPerDip);
378
_widthAtTrailing = formatter.
IdealToReal
(idealWidthAtTrailing, PixelsPerDip);
379
_paragraphWidth = formatter.
IdealToReal
(paragraphWidth, PixelsPerDip);
473
return _settings.Formatter.
IdealToReal
(idealAdvance + _idealOffsetUnRounded, PixelsPerDip);
611
_settings.Formatter.
IdealToReal
(idealXRelativeToOrigin, PixelsPerDip) + origin.X,
932
displayGlyphAdvances[i] = _settings.Formatter.
IdealToReal
(run.NominalAdvances[i], PixelsPerDip);
941
displayGlyphAdvances.Add(_settings.Formatter.
IdealToReal
(run.NominalAdvances[i], PixelsPerDip));
1682
formatter.
IdealToReal
(widthLeft, pixelsPerDip),
1774
displayGlyphAdvances[i] = _textFormatterImp.
IdealToReal
(NominalAdvances[i], _pixelsPerDip);
1783
displayGlyphAdvances.Add(_textFormatterImp.
IdealToReal
(NominalAdvances[i], _pixelsPerDip));
1848
dxUnderline += _textFormatterImp.
IdealToReal
(NominalAdvances[i], _pixelsPerDip);
MS\Internal\TextFormatting\TextMetrics.cs (7)
373
get { return _formatter.
IdealToReal
(_paragraphToText - _textStart, _pixelsPerDip); }
382
get { return _formatter.
IdealToReal
(_textWidthAtTrailing + _textStart, _pixelsPerDip); }
391
get { return _formatter.
IdealToReal
(_textWidth + _textStart, _pixelsPerDip); }
400
get { return _formatter.
IdealToReal
(_height, _pixelsPerDip); }
410
get { return _formatter.
IdealToReal
(_textHeight, _pixelsPerDip); }
419
get { return _formatter.
IdealToReal
(_baselineOffset, _pixelsPerDip); }
429
get { return _formatter.
IdealToReal
(_textAscent, _pixelsPerDip); }
MS\Internal\TextFormatting\TextStore.cs (3)
2363
metrics = textObject.Format(_settings.Formatter.
IdealToReal
(widthLeft, _settings.TextSource.PixelsPerDip));
2370
_settings.Formatter.
IdealToReal
((Constants.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip),
2375
else if (metrics.Width > _settings.Formatter.
IdealToReal
((Constants.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip))