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