3 instantiations of TextFormatterImp
PresentationCore (3)
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatter.cs (3)
54return new TextFormatterImp(textFormattingMode); 64return new TextFormatterImp(); 99return new TextFormatterImp(soleContext, textFormattingMode);
96 references to TextFormatterImp
PresentationCore (96)
Core\CSharp\MS\Internal\FontFace\PhysicalFontFamily.cs (2)
437return TextFormatterImp.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).Baseline * realEmSize, pixelsPerDip) / toReal; 476return TextFormatterImp.RoundDipForDisplayMode(_family.DisplayMetrics((float)(realEmSize), checked((float)pixelsPerDip)).LineSpacing * realEmSize, pixelsPerDip) / toReal;
Core\CSharp\MS\Internal\TextFormatting\FormatSettings.cs (3)
31private TextFormatterImp _formatter; // formatter object 46TextFormatterImp formatter, 91internal TextFormatterImp Formatter
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (15)
371_textMinWidthAtTrailing += TextFormatterImp.RealToIdeal(collapsingSymbol.Width); 384hasOverflowed = (TextFormatterImp.CompareReal(realWidth, realFormatWidth, PixelsPerDip, _textFormattingMode) > 0); 492int symbolIdealWidth = TextFormatterImp.RealToIdeal(symbol.Width); 583MatrixTransform antiInversion = TextFormatterImp.CreateAntiInversionTransform( 709int symbolIdealWidth = TextFormatterImp.RealToIdeal(_collapsingSymbol.Width); 763if (TextFormatterImp.CompareReal(constraintWidth, Width, PixelsPerDip, _textFormattingMode) > 0) 778TextFormatterImp.ToIdeal, 801TextFormatterImp.RealToIdeal(constraintWidth) 888return CharacterHitFromDistance(ParagraphUToLSLineU(TextFormatterImp.RealToIdeal(distance))); 912int rangeWidth = TextFormatterImp.RealToIdeal(_collapsingSymbol.Width); 1021TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength); 1065return lineEndDistance - TextFormatterImp.RealToIdeal(_collapsingSymbol.Width); 1181TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength); 1274TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst, _metrics._cchLength); 2658internal TextFormatterImp Formatter
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (4)
205int incrementalTab = TextFormatterImp.RealToIdeal(pap.DefaultIncrementalTab); 267plsTbds[i].ur = TextFormatterImp.RealToIdeal(tab.Location); 292return Math.Min(0, TextFormatterImp.RealToIdeal(_markerStore.Pap.TextMarkerProperties.Offset) - _store.Settings.TextIndent); 648internal TextFormatterImp Formatter
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (14)
437lsLineProps.durLeft = TextFormatterImp.RealToIdeal(markerStore.Pap.TextMarkerProperties.Offset); 537TextFormatterImp formatter; 567lsrun.Shapeable.GetAdvanceWidthsUnshaped(charString, stringLength, TextFormatterImp.ToIdeal, charWidths); 1850TextFormatterImp.ToIdeal, 2543TextFormatterImp formatter = FullText.Formatter; 2563pobjDim.dur = TextFormatterImp.RealToIdeal(metrics.Width); 2564pobjDim.heightsRef.dvMultiLineHeight = TextFormatterImp.RealToIdeal(metrics.Height); 2565pobjDim.heightsRef.dvAscent = TextFormatterImp.RealToIdeal(metrics.Baseline); 2936TextFormatterImp.ToIdeal, 3001return TextFormatterImp.RealToIdeal(i); 3019return TextFormatterImp.RoundDipForDisplayModeJustifiedText(value, pixelsPerDip); 3027return TextFormatterImp.IdealToRealWithNoRounding(i); 3198TextFormatterImp textFormatterImp, // The TextFormatter Implementation 3356TextFormatterImp textFormatterImp, // The TextFormatter Implementation
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (3)
411nominalX = line.ParagraphWidth - u + TextFormatterImp.RealToIdeal(-vectorToOrigin.X + origin.X); 415nominalX = u + TextFormatterImp.RealToIdeal(vectorToOrigin.X + origin.X); 418nominalY = v + TextFormatterImp.RealToIdeal(origin.Y);
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (20)
285TextFormatterImp formatter = settings.Formatter; 322_baselineOffset = formatter.IdealToReal(TextFormatterImp.RealToIdeal(realAscent), PixelsPerDip); 326_height = formatter.IdealToReal(TextFormatterImp.RealToIdeal(realHeight), PixelsPerDip); 330_height = formatter.IdealToReal(TextFormatterImp.RealToIdeal(realAscent) + TextFormatterImp.RealToIdeal(realDescent), PixelsPerDip); 409TextFormatterImp formatter, 499MatrixTransform antiInversion = TextFormatterImp.CreateAntiInversionTransform( 544TextFormatterImp.RealToIdeal(_paragraphWidth), 661int idealAdvance = TextFormatterImp.RealToIdeal(distance) - _idealOffsetUnRounded; 707TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength); 721TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength); 756TextFormatterImp.VerifyCaretCharacterHit(characterHit, _cpFirst, _cpLength); 1317private TextFormatterImp _textFormatterImp; 1398internal SimpleRun(TextFormatterImp textFormatterImp, double pixelsPerDip) 1643TextFormatterImp.ToIdeal, 1649int idealIncrementalTab = TextFormatterImp.RealToIdeal(settings.Pap.DefaultIncrementalTab); 1679TextFormatterImp formatter, 1717TextFormatterImp.ToIdeal, 1739TextFormatterImp textFormatterImp, 1924TextFormatterImp formatter,
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (2)
32private TextFormatterImp _formatter; // text formatter formatting this metrics 160AppendCollapsingSymbolWidth(TextFormatterImp.RealToIdeal(collapsingSymbol.Width));
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (5)
40TextFormatterImp formatter, 47_emSize = TextFormatterImp.RealToIdeal(paragraphProperties.DefaultTextRunProperties.FontRenderingEmSize); 48_indent = TextFormatterImp.RealToIdeal(paragraphProperties.Indent); 49_paragraphIndent = TextFormatterImp.RealToIdeal(paragraphProperties.ParagraphIndent); 50_height = TextFormatterImp.RealToIdeal(paragraphProperties.LineHeight);
Core\CSharp\MS\Internal\TextFormatting\TextShapeableCharacters.cs (1)
366advanceWidthsUnshaped[i] = (int)Math.Round(TextFormatterImp.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor);
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (4)
290_accNominalWidthSoFar += runInfo.GetRoughWidth(TextFormatterImp.ToIdeal); 1582double realToIdeal = TextFormatterImp.ToIdeal; 1726double realToIdeal = TextFormatterImp.ToIdeal; 1788TextFormatterImp.ToIdeal,
Core\CSharp\System\Windows\Media\GlyphRun.cs (8)
1609double nominalAdvance = TextFormatterImp.RoundDip(_glyphTypeface.GetAdvanceWidth(glyphIndex, _pixelsPerDip, _textFormattingMode, IsSideways) * _renderingEmSize, 1733this.AdvanceWidth = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip); 1734this.AdvanceHeight = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip); 1735this.LeftSideBearing = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip); 1736this.RightSideBearing = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip); 1737this.TopSideBearing = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip); 1738this.BottomSideBearing = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip); 1739this.Baseline = TextFormatterImp.RoundDipForDisplayMode(designToEm * GlyphTypeface.BaselineHelper(glyphMetrics), pixelsPerDip);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (9)
1532aw = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceWidth, pixelsPerDip) * scalingFactor; 1533ah = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.AdvanceHeight, pixelsPerDip) * scalingFactor; 1534lsb = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.LeftSideBearing, pixelsPerDip) * scalingFactor; 1535rsb = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.RightSideBearing, pixelsPerDip) * scalingFactor; 1536tsb = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.TopSideBearing, pixelsPerDip) * scalingFactor; 1537bsb = TextFormatterImp.RoundDipForDisplayMode(designToEm * glyphMetrics.BottomSideBearing, pixelsPerDip) * scalingFactor; 1538baseline = TextFormatterImp.RoundDipForDisplayMode(designToEm * BaselineHelper(glyphMetrics), pixelsPerDip) * scalingFactor; 1701advanceWidthsUnshaped[i] = (int)Math.Round(TextFormatterImp.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * scalingFactor); 1717int missingGlyphWidth = (int)Math.Round(TextFormatterImp.RoundDip(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatter.cs (2)
136defaultTextFormatter = (TextFormatterImp)dispatcher.Reserved4; 140defaultTextFormatter = (TextFormatterImp)dispatcher.Reserved1;
Core\CSharp\System\Windows\Media\TextFormatting\TextParagraphCache.cs (1)
210return TextFormatterImp.RealToIdeal(maxLineWidth);
Core\CSharp\System\Windows\Media\Typeface.cs (3)
458totalWidth += TextFormatterImp.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor; 501totalWidth += TextFormatterImp.RoundDip(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor; 658nominalWidths[i] = (int)Math.Round(TextFormatterImp.RoundDipForDisplayMode(glyphMetrics[i].AdvanceWidth * designToEm, pixelsPerDip) * toIdeal);