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