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