52 references to Constants
PresentationCore (52)
MS\Internal\FontFace\CompositeFontParser.cs (8)
28
else if (value >
Constants
.GreatestMutiplierOfEm)
30
value =
Constants
.GreatestMutiplierOfEm;
32
else if (value < -
Constants
.GreatestMutiplierOfEm)
34
value = -
Constants
.GreatestMutiplierOfEm;
44
else if (value >
Constants
.GreatestMutiplierOfEm)
46
value =
Constants
.GreatestMutiplierOfEm;
60
else if (value >
Constants
.GreatestMutiplierOfEm)
62
value =
Constants
.GreatestMutiplierOfEm;
MS\Internal\TextFormatting\FormatSettings.cs (4)
57
_maxLineWidth =
Constants
.IdealInfiniteWidth;
158
return _pap.Wrap ? finiteFormatWidth :
Constants
.IdealInfiniteWidth;
169
int formatWidth = (paragraphWidth <= 0 ?
Constants
.IdealInfiniteWidth : paragraphWidth);
174
formatWidth = Math.Min(formatWidth,
Constants
.IdealInfiniteWidth);
MS\Internal\TextFormatting\FullTextState.cs (1)
102
Constants
.IdealInfiniteWidth // formatWidth
MS\Internal\TextFormatting\LineServicesCallbacks.cs (8)
437
lstTextMetrics.dvAscent = (int)Math.Round(typeface.Baseline(store.Pap.EmSize,
Constants
.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
438
lstTextMetrics.dvMultiLineHeight = (int)Math.Round(typeface.LineSpacing(store.Pap.EmSize,
Constants
.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
1894
(int)(lsrun.EmSize *
Constants
.MinInterWordCompressionPerEm),
1944
(int)(lsrun.EmSize *
Constants
.MaxInterWordExpansionPerEm),
1999
pplsAdjustRight[1][i] = expandedBy *
Constants
.AcceptableLineStretchability;
2048
(int)(em *
Constants
.MinInterWordCompressionPerEm),
2175
(int)(em *
Constants
.MaxInterWordExpansionPerEm),
2265
pplsExpansionRight[1][igi + i] = expandedBy *
Constants
.AcceptableLineStretchability;
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
326
_height = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
327
_baselineOffset = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
MS\Internal\TextFormatting\TextFormatterImp.cs (9)
460
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphWidth,
Constants
.RealInfiniteWidth);
462
double realMaxFontRenderingEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
466
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.Indent,
Constants
.RealInfiniteWidth, "paragraphProperties.Indent");
467
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.LineHeight,
Constants
.RealInfiniteWidth, "paragraphProperties.LineHeight");
469
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.DefaultIncrementalTab,
Constants
.RealInfiniteWidth, "paragraphProperties.DefaultIncrementalTab");
675
return i *
Constants
.DefaultIdealToReal;
692
value = Math.Max(value,
Constants
.DefaultIdealToReal);
738
get { return
Constants
.DefaultRealToIdeal; }
MS\Internal\TextFormatting\TextMetrics.cs (4)
192
* pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode)
193
/ pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode)
201
_textAscent = (int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
202
_textHeight = (int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
MS\Internal\TextFormatting\TextRunCacheImp.cs (2)
121
double realMaxFontRenderingEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
MS\Internal\TextFormatting\TextStore.cs (2)
2355
_settings.Formatter.IdealToReal((
Constants
.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip),
2360
else if (metrics.Width > _settings.Formatter.IdealToReal((
Constants
.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip))
System\Windows\Media\CharacterMetrics.cs (8)
8
using Constants = MS.Internal.TextFormatting.
Constants
;
296
int hash = (int)(_blackBoxWidth *
Constants
.DefaultRealToIdeal);
297
hash = (hash * HashMultiplier) + (int)(_blackBoxHeight *
Constants
.DefaultRealToIdeal);
298
hash = (hash * HashMultiplier) + (int)(_baseline *
Constants
.DefaultRealToIdeal);
299
hash = (hash * HashMultiplier) + (int)(_leftSideBearing *
Constants
.DefaultRealToIdeal);
300
hash = (hash * HashMultiplier) + (int)(_rightSideBearing *
Constants
.DefaultRealToIdeal);
301
hash = (hash * HashMultiplier) + (int)(_topSideBearing *
Constants
.DefaultRealToIdeal);
302
hash = (hash * HashMultiplier) + (int)(_bottomSideBearing *
Constants
.DefaultRealToIdeal);
System\Windows\Media\FormattedText.cs (2)
2025
const double MaxFontEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
168
return
Constants
.IdealInfiniteWidth;
172
ArgumentOutOfRangeException.ThrowIfGreaterThan(maxLineWidth,
Constants
.RealInfiniteWidth);