3 instantiations of TextFormatterImp
PresentationCore (3)
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatter.cs (3)
54
return new
TextFormatterImp
(textFormattingMode);
64
return new
TextFormatterImp
();
99
return new
TextFormatterImp
(soleContext, textFormattingMode);
96 references to TextFormatterImp
PresentationCore (96)
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (2)
437
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).Baseline * realEmSize, pixelsPerDip) / toReal;
476
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).LineSpacing * realEmSize, pixelsPerDip) / toReal;
Core\CSharp\MS\Internal\TextFormatting\FormatSettings.cs (3)
31
private
TextFormatterImp
_formatter; // formatter object
46
TextFormatterImp
formatter,
91
internal
TextFormatterImp
Formatter
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (15)
371
_textMinWidthAtTrailing +=
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width);
384
hasOverflowed = (
TextFormatterImp
.CompareReal(realWidth, realFormatWidth, PixelsPerDip, _textFormattingMode) > 0);
492
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(symbol.Width);
583
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
709
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
763
if (
TextFormatterImp
.CompareReal(constraintWidth, Width, PixelsPerDip, _textFormattingMode) > 0)
778
TextFormatterImp
.ToIdeal,
801
TextFormatterImp
.RealToIdeal(constraintWidth)
888
return CharacterHitFromDistance(ParagraphUToLSLineU(
TextFormatterImp
.RealToIdeal(distance)));
912
int rangeWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
1021
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1065
return lineEndDistance -
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
1181
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1274
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
2658
internal
TextFormatterImp
Formatter
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (4)
205
int incrementalTab =
TextFormatterImp
.RealToIdeal(pap.DefaultIncrementalTab);
267
plsTbds[i].ur =
TextFormatterImp
.RealToIdeal(tab.Location);
292
return Math.Min(0,
TextFormatterImp
.RealToIdeal(_markerStore.Pap.TextMarkerProperties.Offset) - _store.Settings.TextIndent);
648
internal
TextFormatterImp
Formatter
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (14)
437
lsLineProps.durLeft =
TextFormatterImp
.RealToIdeal(markerStore.Pap.TextMarkerProperties.Offset);
537
TextFormatterImp
formatter;
567
lsrun.Shapeable.GetAdvanceWidthsUnshaped(charString, stringLength,
TextFormatterImp
.ToIdeal, charWidths);
1850
TextFormatterImp
.ToIdeal,
2543
TextFormatterImp
formatter = FullText.Formatter;
2563
pobjDim.dur =
TextFormatterImp
.RealToIdeal(metrics.Width);
2564
pobjDim.heightsRef.dvMultiLineHeight =
TextFormatterImp
.RealToIdeal(metrics.Height);
2565
pobjDim.heightsRef.dvAscent =
TextFormatterImp
.RealToIdeal(metrics.Baseline);
2936
TextFormatterImp
.ToIdeal,
3001
return
TextFormatterImp
.RealToIdeal(i);
3019
return
TextFormatterImp
.RoundDipForDisplayModeJustifiedText(value, pixelsPerDip);
3027
return
TextFormatterImp
.IdealToRealWithNoRounding(i);
3198
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
3356
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (3)
411
nominalX = line.ParagraphWidth - u +
TextFormatterImp
.RealToIdeal(-vectorToOrigin.X + origin.X);
415
nominalX = u +
TextFormatterImp
.RealToIdeal(vectorToOrigin.X + origin.X);
418
nominalY = v +
TextFormatterImp
.RealToIdeal(origin.Y);
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (20)
285
TextFormatterImp
formatter = settings.Formatter;
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);
409
TextFormatterImp
formatter,
499
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
544
TextFormatterImp
.RealToIdeal(_paragraphWidth),
661
int idealAdvance =
TextFormatterImp
.RealToIdeal(distance) - _idealOffsetUnRounded;
707
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
721
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
756
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
1317
private
TextFormatterImp
_textFormatterImp;
1398
internal SimpleRun(
TextFormatterImp
textFormatterImp, double pixelsPerDip)
1643
TextFormatterImp
.ToIdeal,
1649
int idealIncrementalTab =
TextFormatterImp
.RealToIdeal(settings.Pap.DefaultIncrementalTab);
1679
TextFormatterImp
formatter,
1717
TextFormatterImp
.ToIdeal,
1739
TextFormatterImp
textFormatterImp,
1924
TextFormatterImp
formatter,
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (2)
32
private
TextFormatterImp
_formatter; // text formatter formatting this metrics
160
AppendCollapsingSymbolWidth(
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width));
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (5)
40
TextFormatterImp
formatter,
47
_emSize =
TextFormatterImp
.RealToIdeal(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize);
48
_indent =
TextFormatterImp
.RealToIdeal(paragraphProperties.Indent);
49
_paragraphIndent =
TextFormatterImp
.RealToIdeal(paragraphProperties.ParagraphIndent);
50
_height =
TextFormatterImp
.RealToIdeal(paragraphProperties.LineHeight);
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
366
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (4)
290
_accNominalWidthSoFar += runInfo.GetRoughWidth(
TextFormatterImp
.ToIdeal);
1582
double realToIdeal =
TextFormatterImp
.ToIdeal;
1726
double realToIdeal =
TextFormatterImp
.ToIdeal;
1788
TextFormatterImp
.ToIdeal,
Core\CSharp\System\Windows\Media\GlyphRun.cs (8)
1609
double nominalAdvance =
TextFormatterImp
.RoundDip(_glyphTypeface.GetAdvanceWidth(glyphIndex, _pixelsPerDip, _textFormattingMode, IsSideways) * _renderingEmSize,
1733
this.AdvanceWidth =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip);
1734
this.AdvanceHeight =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip);
1735
this.LeftSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip);
1736
this.RightSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip);
1737
this.TopSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip);
1738
this.BottomSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip);
1739
this.Baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * GlyphTypeface.BaselineHelper(glyphMetrics), pixelsPerDip);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (9)
1532
aw =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip) * scalingFactor;
1533
ah =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip) * scalingFactor;
1534
lsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip) * scalingFactor;
1535
rsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip) * scalingFactor;
1536
tsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip) * scalingFactor;
1537
bsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip) * scalingFactor;
1538
baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * BaselineHelper(glyphMetrics), pixelsPerDip) * scalingFactor;
1701
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
1717
int missingGlyphWidth = (int)Math.Round(
TextFormatterImp
.RoundDip(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatter.cs (2)
136
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved4;
140
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved1;
Core\CSharp\System\Windows\Media\TextFormatting\TextParagraphCache.cs (1)
210
return
TextFormatterImp
.RealToIdeal(maxLineWidth);
Core\CSharp\System\Windows\Media\Typeface.cs (3)
458
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
501
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
658
nominalWidths[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * toIdeal);