4 instantiations of TextFormatterImp
PresentationCore (4)
System\Windows\Media\textformatting\TextFormatter.cs (4)
49
return new
TextFormatterImp
(textFormattingMode);
59
return new
TextFormatterImp
();
76
return new
TextFormatterImp
(soleContext, TextFormattingMode.Ideal);
92
return new
TextFormatterImp
(soleContext, textFormattingMode);
96 references to TextFormatterImp
PresentationCore (96)
MS\Internal\FontFace\PhysicalFontFamily.cs (2)
397
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).Baseline * realEmSize, pixelsPerDip) / toReal;
431
return
TextFormatterImp
.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).LineSpacing * realEmSize, pixelsPerDip) / toReal;
MS\Internal\TextFormatting\FormatSettings.cs (3)
23
private
TextFormatterImp
_formatter; // formatter object
38
TextFormatterImp
formatter,
83
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\FullTextLine.cs (15)
334
_textMinWidthAtTrailing +=
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width);
347
hasOverflowed = (
TextFormatterImp
.CompareReal(realWidth, realFormatWidth, PixelsPerDip, _textFormattingMode) > 0);
455
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(symbol.Width);
542
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
662
int symbolIdealWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
716
if (
TextFormatterImp
.CompareReal(constraintWidth, Width, PixelsPerDip, _textFormattingMode) > 0)
731
TextFormatterImp
.ToIdeal,
754
TextFormatterImp
.RealToIdeal(constraintWidth)
841
return CharacterHitFromDistance(ParagraphUToLSLineU(
TextFormatterImp
.RealToIdeal(distance)));
865
int rangeWidth =
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
974
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1018
return lineEndDistance -
TextFormatterImp
.RealToIdeal(_collapsingSymbol.Width);
1134
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
1227
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength);
2583
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\FullTextState.cs (4)
182
int incrementalTab =
TextFormatterImp
.RealToIdeal(pap.DefaultIncrementalTab);
242
plsTbds[i].ur =
TextFormatterImp
.RealToIdeal(tab.Location);
267
return Math.Min(0,
TextFormatterImp
.RealToIdeal(_markerStore.Pap.TextMarkerProperties.Offset) - _store.Settings.TextIndent);
622
internal
TextFormatterImp
Formatter
MS\Internal\TextFormatting\LineServicesCallbacks.cs (14)
374
lsLineProps.durLeft =
TextFormatterImp
.RealToIdeal(markerStore.Pap.TextMarkerProperties.Offset);
465
TextFormatterImp
formatter;
495
lsrun.Shapeable.GetAdvanceWidthsUnshaped(charString, stringLength,
TextFormatterImp
.ToIdeal, charWidths);
1713
TextFormatterImp
.ToIdeal,
2355
TextFormatterImp
formatter = FullText.Formatter;
2376
dur =
TextFormatterImp
.RealToIdeal(metrics.Width)
2378
pobjDim.heightsRef.dvMultiLineHeight =
TextFormatterImp
.RealToIdeal(metrics.Height);
2379
pobjDim.heightsRef.dvAscent =
TextFormatterImp
.RealToIdeal(metrics.Baseline);
2736
TextFormatterImp
.ToIdeal,
2801
return
TextFormatterImp
.RealToIdeal(i);
2819
return
TextFormatterImp
.RoundDipForDisplayModeJustifiedText(value, pixelsPerDip);
2827
return
TextFormatterImp
.IdealToRealWithNoRounding(i);
2990
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
3143
TextFormatterImp
textFormatterImp, // The TextFormatter Implementation
MS\Internal\TextFormatting\LineServicesRun.cs (3)
381
nominalX = line.ParagraphWidth - u +
TextFormatterImp
.RealToIdeal(-vectorToOrigin.X + origin.X);
385
nominalX = u +
TextFormatterImp
.RealToIdeal(vectorToOrigin.X + origin.X);
388
nominalY = v +
TextFormatterImp
.RealToIdeal(origin.Y);
MS\Internal\TextFormatting\SimpleTextLine.cs (20)
271
TextFormatterImp
formatter = settings.Formatter;
308
_baselineOffset = formatter.IdealToReal(
TextFormatterImp
.RealToIdeal(realAscent), PixelsPerDip);
312
_height = formatter.IdealToReal(
TextFormatterImp
.RealToIdeal(realHeight), PixelsPerDip);
316
_height = formatter.IdealToReal(
TextFormatterImp
.RealToIdeal(realAscent) +
TextFormatterImp
.RealToIdeal(realDescent), PixelsPerDip);
395
TextFormatterImp
formatter,
482
MatrixTransform antiInversion =
TextFormatterImp
.CreateAntiInversionTransform(
527
TextFormatterImp
.RealToIdeal(_paragraphWidth),
638
int idealAdvance =
TextFormatterImp
.RealToIdeal(distance) - _idealOffsetUnRounded;
684
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
698
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
733
TextFormatterImp
.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength);
1287
private
TextFormatterImp
_textFormatterImp;
1368
internal SimpleRun(
TextFormatterImp
textFormatterImp, double pixelsPerDip)
1614
TextFormatterImp
.ToIdeal,
1620
int idealIncrementalTab =
TextFormatterImp
.RealToIdeal(settings.Pap.DefaultIncrementalTab);
1650
TextFormatterImp
formatter,
1690
TextFormatterImp
.ToIdeal,
1712
TextFormatterImp
textFormatterImp,
1892
TextFormatterImp
formatter,
MS\Internal\TextFormatting\TextMetrics.cs (2)
11
private
TextFormatterImp
_formatter; // text formatter formatting this metrics
138
AppendCollapsingSymbolWidth(
TextFormatterImp
.RealToIdeal(collapsingSymbol.Width));
MS\Internal\TextFormatting\TextProperties.cs (5)
31
TextFormatterImp
formatter,
38
_emSize =
TextFormatterImp
.RealToIdeal(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize);
39
_indent =
TextFormatterImp
.RealToIdeal(paragraphProperties.Indent);
40
_paragraphIndent =
TextFormatterImp
.RealToIdeal(paragraphProperties.ParagraphIndent);
41
_height =
TextFormatterImp
.RealToIdeal(paragraphProperties.LineHeight);
MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
349
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
MS\Internal\TextFormatting\TextStore.cs (4)
270
_accNominalWidthSoFar += runInfo.GetRoughWidth(
TextFormatterImp
.ToIdeal);
1555
double realToIdeal =
TextFormatterImp
.ToIdeal;
1699
double realToIdeal =
TextFormatterImp
.ToIdeal;
1764
TextFormatterImp
.ToIdeal,
System\Windows\Media\GlyphRun.cs (8)
1567
double nominalAdvance =
TextFormatterImp
.RoundDip(_glyphTypeface.GetAdvanceWidth(glyphIndex, _pixelsPerDip, _textFormattingMode, IsSideways) * _renderingEmSize,
1693
this.AdvanceWidth =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip);
1694
this.AdvanceHeight =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip);
1695
this.LeftSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip);
1696
this.RightSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip);
1697
this.TopSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip);
1698
this.BottomSideBearing =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip);
1699
this.Baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * GlyphTypeface.BaselineHelper(glyphMetrics), pixelsPerDip);
System\Windows\Media\GlyphTypeface.cs (9)
1188
aw =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip) * scalingFactor;
1189
ah =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip) * scalingFactor;
1190
lsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip) * scalingFactor;
1191
rsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip) * scalingFactor;
1192
tsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip) * scalingFactor;
1193
bsb =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip) * scalingFactor;
1194
baseline =
TextFormatterImp
.RoundDipForDisplayMode(designToEm * BaselineHelper(glyphMetrics), pixelsPerDip) * scalingFactor;
1343
advanceWidthsUnshaped[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
1359
int missingGlyphWidth = (int)Math.Round(
TextFormatterImp
.RoundDip(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
System\Windows\Media\textformatting\TextFormatter.cs (2)
127
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved4;
131
defaultTextFormatter = (
TextFormatterImp
)dispatcher.Reserved1;
System\Windows\Media\textformatting\TextParagraphCache.cs (1)
174
return
TextFormatterImp
.RealToIdeal(maxLineWidth);
System\Windows\Media\Typeface.cs (3)
442
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
485
totalWidth +=
TextFormatterImp
.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
642
nominalWidths[i] = (int)Math.Round(
TextFormatterImp
.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * toIdeal);