4 instantiations of TextFormatterImp
PresentationCore (4)
System\Windows\Media\textformatting\TextFormatter.cs (4)
52
return new
TextFormatterImp
(textFormattingMode);
62
return new
TextFormatterImp
();
79
return new
TextFormatterImp
(soleContext, TextFormattingMode.Ideal);
95
return new
TextFormatterImp
(soleContext, textFormattingMode);
96 references to TextFormatterImp
PresentationCore (96)
MS\Internal\FontFace\PhysicalFontFamily.cs (2)
407
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).Baseline * realEmSize, pixelsPerDip) / toReal;
441
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).LineSpacing * realEmSize, pixelsPerDip) / toReal;
MS\Internal\TextFormatting\FormatSettings.cs (3)
29
private
TextFormatterImp
_formatter; // formatter object
44
TextFormatterImp
formatter,
89
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\FullTextLine.cs (15)
348
_textMinWidthAtTrailing +=
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width);
361
hasOverflowed = (
TextFormatterImp
.CompareReal(realWidth, realFormatWidth, PixelsPerDip, _textFormattingMode) > 0);
469
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(symbol.Width);
556
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
676
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
730
if (
TextFormatterImp
.CompareReal(constraintWidth, Width, PixelsPerDip, _textFormattingMode) > 0)
745
TextFormatterImp
.ToIdeal,
768
TextFormatterImp
.RealToIdeal(constraintWidth)
855
return CharacterHitFromDistance(ParagraphUToLSLineU(
TextFormatterImp
.RealToIdeal(distance)));
879
int rangeWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
988
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1032
return lineEndDistance -
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
1148
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1241
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
2597
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\FullTextState.cs (4)
189
int incrementalTab =
TextFormatterImp
.RealToIdeal(pap.DefaultIncrementalTab);
247
plsTbds[i].ur =
TextFormatterImp
.RealToIdeal(tab.Location);
272
return Math.Min(0,
TextFormatterImp
.RealToIdeal(_markerStore.Pap.TextMarkerProperties.Offset) - _store.Settings.TextIndent);
627
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\LineServicesCallbacks.cs (14)
405
lsLineProps.durLeft =
TextFormatterImp
.RealToIdeal(markerStore.Pap.TextMarkerProperties.Offset);
496
TextFormatterImp
formatter;
526
lsrun.Shapeable.GetAdvanceWidthsUnshaped(charString, stringLength,
TextFormatterImp
.ToIdeal, charWidths);
1742
TextFormatterImp
.ToIdeal,
2382
TextFormatterImp
formatter = FullText.Formatter;
2402
pobjDim.dur =
TextFormatterImp
.RealToIdeal(metrics.Width);
2403
pobjDim.heightsRef.dvMultiLineHeight =
TextFormatterImp
.RealToIdeal(metrics.Height);
2404
pobjDim.heightsRef.dvAscent =
TextFormatterImp
.RealToIdeal(metrics.Baseline);
2761
TextFormatterImp
.ToIdeal,
2826
return
TextFormatterImp
.RealToIdeal(i);
2844
return
TextFormatterImp
.RoundDipForDisplayModeJustifiedText(value, pixelsPerDip);
2852
return
TextFormatterImp
.IdealToRealWithNoRounding(i);
3015
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
3168
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
MS\Internal\TextFormatting\LineServicesRun.cs (3)
396
nominalX = line.ParagraphWidth - u +
TextFormatterImp
.RealToIdeal(-vectorToOrigin.X + origin.X);
400
nominalX = u +
TextFormatterImp
.RealToIdeal(vectorToOrigin.X + origin.X);
403
nominalY = v +
TextFormatterImp
.RealToIdeal(origin.Y);
MS\Internal\TextFormatting\SimpleTextLine.cs (20)
281
TextFormatterImp
formatter = settings.Formatter;
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);
405
TextFormatterImp
formatter,
492
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
537
TextFormatterImp
.RealToIdeal(_paragraphWidth),
654
int idealAdvance =
TextFormatterImp
.RealToIdeal(distance) - _idealOffsetUnRounded;
700
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
714
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
749
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
1303
private
TextFormatterImp
_textFormatterImp;
1384
internal SimpleRun(
TextFormatterImp
textFormatterImp, double pixelsPerDip)
1628
TextFormatterImp
.ToIdeal,
1634
int idealIncrementalTab =
TextFormatterImp
.RealToIdeal(settings.Pap.DefaultIncrementalTab);
1664
TextFormatterImp
formatter,
1702
TextFormatterImp
.ToIdeal,
1724
TextFormatterImp
textFormatterImp,
1904
TextFormatterImp
formatter,
MS\Internal\TextFormatting\TextMetrics.cs (2)
27
private
TextFormatterImp
_formatter; // text formatter formatting this metrics
154
AppendCollapsingSymbolWidth(
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width));
MS\Internal\TextFormatting\TextProperties.cs (5)
38
TextFormatterImp
formatter,
45
_emSize =
TextFormatterImp
.RealToIdeal(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize);
46
_indent =
TextFormatterImp
.RealToIdeal(paragraphProperties.Indent);
47
_paragraphIndent =
TextFormatterImp
.RealToIdeal(paragraphProperties.ParagraphIndent);
48
_height =
TextFormatterImp
.RealToIdeal(paragraphProperties.LineHeight);
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
358
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
MS\Internal\TextFormatting\TextStore.cs (4)
286
_accNominalWidthSoFar += runInfo.GetRoughWidth(
TextFormatterImp
.ToIdeal);
1571
double realToIdeal =
TextFormatterImp
.ToIdeal;
1715
double realToIdeal =
TextFormatterImp
.ToIdeal;
1780
TextFormatterImp
.ToIdeal,
System\Windows\Media\GlyphRun.cs (8)
1596
double nominalAdvance =
TextFormatterImp
.RoundDip(_glyphTypeface.GetAdvanceWidth(glyphIndex, _pixelsPerDip, _textFormattingMode, IsSideways) * _renderingEmSize,
1720
this.AdvanceWidth =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip);
1721
this.AdvanceHeight =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip);
1722
this.LeftSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip);
1723
this.RightSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip);
1724
this.TopSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip);
1725
this.BottomSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip);
1726
this.Baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * GlyphTypeface.BaselineHelper(glyphMetrics), pixelsPerDip);
System\Windows\Media\GlyphTypeface.cs (9)
1198
aw =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip) * scalingFactor;
1199
ah =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip) * scalingFactor;
1200
lsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip) * scalingFactor;
1201
rsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip) * scalingFactor;
1202
tsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip) * scalingFactor;
1203
bsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip) * scalingFactor;
1204
baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * BaselineHelper(glyphMetrics), pixelsPerDip) * scalingFactor;
1353
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
1369
int missingGlyphWidth = (int)Math.Round(
TextFormatterImp
.RoundDip(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
System\Windows\Media\textformatting\TextFormatter.cs (2)
130
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved4;
134
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved1;
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
190
return
TextFormatterImp
.RealToIdeal(maxLineWidth);
System\Windows\Media\Typeface.cs (3)
452
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
495
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
652
nominalWidths[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * toIdeal);