2 references to RoundDip
PresentationCore (2)
System\Windows\Media\GlyphRun.cs (1)
1596
double nominalAdvance = TextFormatterImp.
RoundDip
(_glyphTypeface.GetAdvanceWidth(glyphIndex, _pixelsPerDip, _textFormattingMode, IsSideways) * _renderingEmSize,
System\Windows\Media\GlyphTypeface.cs (1)
1369
int missingGlyphWidth = (int)Math.Round(TextFormatterImp.
RoundDip
(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);