4 references to RoundDip
PresentationCore (4)
System\Windows\Media\GlyphRun.cs (1)
1567
double nominalAdvance = TextFormatterImp.
RoundDip
(_glyphTypeface.GetAdvanceWidth(glyphIndex, _pixelsPerDip, _textFormattingMode, IsSideways) * _renderingEmSize,
System\Windows\Media\GlyphTypeface.cs (1)
1359
int missingGlyphWidth = (int)Math.Round(TextFormatterImp.
RoundDip
(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
System\Windows\Media\Typeface.cs (2)
442
totalWidth += TextFormatterImp.
RoundDip
(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;
485
totalWidth += TextFormatterImp.
RoundDip
(glyphMetrics[i - 1].AdvanceWidth * designToEm, pixelsPerDip, textFormattingMode) * scalingFactor;