4 instantiations of TextFormatterImp
PresentationCore (4)
System\Windows\Media\textformatting\TextFormatter.cs (4)
50
return new
TextFormatterImp
(textFormattingMode);
60
return new
TextFormatterImp
();
77
return new
TextFormatterImp
(soleContext, TextFormattingMode.Ideal);
93
return new
TextFormatterImp
(soleContext, textFormattingMode);
96 references to TextFormatterImp
PresentationCore (96)
MS\Internal\FontFace\PhysicalFontFamily.cs (2)
398
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).Baseline * realEmSize, pixelsPerDip) / toReal;
432
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).LineSpacing * realEmSize, pixelsPerDip) / toReal;
MS\Internal\TextFormatting\FormatSettings.cs (3)
24
private
TextFormatterImp
_formatter; // formatter object
39
TextFormatterImp
formatter,
84
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\FullTextLine.cs (15)
335
_textMinWidthAtTrailing +=
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width);
348
hasOverflowed = (
TextFormatterImp
.CompareReal(realWidth, realFormatWidth, PixelsPerDip, _textFormattingMode) > 0);
456
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(symbol.Width);
543
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
663
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
717
if (
TextFormatterImp
.CompareReal(constraintWidth, Width, PixelsPerDip, _textFormattingMode) > 0)
732
TextFormatterImp
.ToIdeal,
755
TextFormatterImp
.RealToIdeal(constraintWidth)
842
return CharacterHitFromDistance(ParagraphUToLSLineU(
TextFormatterImp
.RealToIdeal(distance)));
866
int rangeWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
975
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1019
return lineEndDistance -
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
1135
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1228
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
2584
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\FullTextState.cs (4)
183
int incrementalTab =
TextFormatterImp
.RealToIdeal(pap.DefaultIncrementalTab);
243
plsTbds[i].ur =
TextFormatterImp
.RealToIdeal(tab.Location);
268
return Math.Min(0,
TextFormatterImp
.RealToIdeal(_markerStore.Pap.TextMarkerProperties.Offset) - _store.Settings.TextIndent);
623
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\LineServicesCallbacks.cs (14)
375
lsLineProps.durLeft =
TextFormatterImp
.RealToIdeal(markerStore.Pap.TextMarkerProperties.Offset);
466
TextFormatterImp
formatter;
496
lsrun.Shapeable.GetAdvanceWidthsUnshaped(charString, stringLength,
TextFormatterImp
.ToIdeal, charWidths);
1714
TextFormatterImp
.ToIdeal,
2356
TextFormatterImp
formatter = FullText.Formatter;
2377
dur =
TextFormatterImp
.RealToIdeal(metrics.Width)
2379
pobjDim.heightsRef.dvMultiLineHeight =
TextFormatterImp
.RealToIdeal(metrics.Height);
2380
pobjDim.heightsRef.dvAscent =
TextFormatterImp
.RealToIdeal(metrics.Baseline);
2737
TextFormatterImp
.ToIdeal,
2802
return
TextFormatterImp
.RealToIdeal(i);
2820
return
TextFormatterImp
.RoundDipForDisplayModeJustifiedText(value, pixelsPerDip);
2828
return
TextFormatterImp
.IdealToRealWithNoRounding(i);
2991
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
3144
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
MS\Internal\TextFormatting\LineServicesRun.cs (3)
382
nominalX = line.ParagraphWidth - u +
TextFormatterImp
.RealToIdeal(-vectorToOrigin.X + origin.X);
386
nominalX = u +
TextFormatterImp
.RealToIdeal(vectorToOrigin.X + origin.X);
389
nominalY = v +
TextFormatterImp
.RealToIdeal(origin.Y);
MS\Internal\TextFormatting\SimpleTextLine.cs (20)
272
TextFormatterImp
formatter = settings.Formatter;
309
_baselineOffset = formatter.IdealToReal(
TextFormatterImp
.RealToIdeal(realAscent), PixelsPerDip);
313
_height = formatter.IdealToReal(
TextFormatterImp
.RealToIdeal(realHeight), PixelsPerDip);
317
_height = formatter.IdealToReal(
TextFormatterImp
.RealToIdeal(realAscent) +
TextFormatterImp
.RealToIdeal(realDescent), PixelsPerDip);
396
TextFormatterImp
formatter,
483
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
528
TextFormatterImp
.RealToIdeal(_paragraphWidth),
645
int idealAdvance =
TextFormatterImp
.RealToIdeal(distance) - _idealOffsetUnRounded;
691
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
705
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
740
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
1294
private
TextFormatterImp
_textFormatterImp;
1375
internal SimpleRun(
TextFormatterImp
textFormatterImp, double pixelsPerDip)
1621
TextFormatterImp
.ToIdeal,
1627
int idealIncrementalTab =
TextFormatterImp
.RealToIdeal(settings.Pap.DefaultIncrementalTab);
1657
TextFormatterImp
formatter,
1697
TextFormatterImp
.ToIdeal,
1719
TextFormatterImp
textFormatterImp,
1899
TextFormatterImp
formatter,
MS\Internal\TextFormatting\TextMetrics.cs (2)
12
private
TextFormatterImp
_formatter; // text formatter formatting this metrics
139
AppendCollapsingSymbolWidth(
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width));
MS\Internal\TextFormatting\TextProperties.cs (5)
32
TextFormatterImp
formatter,
39
_emSize =
TextFormatterImp
.RealToIdeal(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize);
40
_indent =
TextFormatterImp
.RealToIdeal(paragraphProperties.Indent);
41
_paragraphIndent =
TextFormatterImp
.RealToIdeal(paragraphProperties.ParagraphIndent);
42
_height =
TextFormatterImp
.RealToIdeal(paragraphProperties.LineHeight);
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
350
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
MS\Internal\TextFormatting\TextStore.cs (4)
271
_accNominalWidthSoFar += runInfo.GetRoughWidth(
TextFormatterImp
.ToIdeal);
1556
double realToIdeal =
TextFormatterImp
.ToIdeal;
1700
double realToIdeal =
TextFormatterImp
.ToIdeal;
1765
TextFormatterImp
.ToIdeal,
System\Windows\Media\GlyphRun.cs (8)
1568
double nominalAdvance =
TextFormatterImp
.RoundDip(_glyphTypeface.GetAdvanceWidth(glyphIndex, _pixelsPerDip, _textFormattingMode, IsSideways) * _renderingEmSize,
1694
this.AdvanceWidth =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip);
1695
this.AdvanceHeight =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip);
1696
this.LeftSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip);
1697
this.RightSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip);
1698
this.TopSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip);
1699
this.BottomSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip);
1700
this.Baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * GlyphTypeface.BaselineHelper(glyphMetrics), pixelsPerDip);
System\Windows\Media\GlyphTypeface.cs (9)
1189
aw =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip) * scalingFactor;
1190
ah =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip) * scalingFactor;
1191
lsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip) * scalingFactor;
1192
rsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip) * scalingFactor;
1193
tsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip) * scalingFactor;
1194
bsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip) * scalingFactor;
1195
baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * BaselineHelper(glyphMetrics), pixelsPerDip) * scalingFactor;
1344
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
1360
int missingGlyphWidth = (int)Math.Round(
TextFormatterImp
.RoundDip(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
System\Windows\Media\textformatting\TextFormatter.cs (2)
128
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved4;
132
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved1;
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
175
return
TextFormatterImp
.RealToIdeal(maxLineWidth);
System\Windows\Media\Typeface.cs (3)
443
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
486
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
643
nominalWidths[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * toIdeal);