52 references to Constants
PresentationCore (52)
MS\Internal\FontFace\CompositeFontParser.cs (8)
27
else if (value >
Constants
.GreatestMutiplierOfEm)
29
value =
Constants
.GreatestMutiplierOfEm;
31
else if (value < -
Constants
.GreatestMutiplierOfEm)
33
value = -
Constants
.GreatestMutiplierOfEm;
43
else if (value >
Constants
.GreatestMutiplierOfEm)
45
value =
Constants
.GreatestMutiplierOfEm;
59
else if (value >
Constants
.GreatestMutiplierOfEm)
61
value =
Constants
.GreatestMutiplierOfEm;
MS\Internal\TextFormatting\FormatSettings.cs (4)
56
_maxLineWidth =
Constants
.IdealInfiniteWidth;
157
return _pap.Wrap ? finiteFormatWidth :
Constants
.IdealInfiniteWidth;
168
int formatWidth = (paragraphWidth <= 0 ?
Constants
.IdealInfiniteWidth : paragraphWidth);
173
formatWidth = Math.Min(formatWidth,
Constants
.IdealInfiniteWidth);
MS\Internal\TextFormatting\FullTextState.cs (1)
101
Constants
.IdealInfiniteWidth // formatWidth
MS\Internal\TextFormatting\LineServicesCallbacks.cs (8)
425
lstTextMetrics.dvAscent = (int)Math.Round(typeface.Baseline(store.Pap.EmSize,
Constants
.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
426
lstTextMetrics.dvMultiLineHeight = (int)Math.Round(typeface.LineSpacing(store.Pap.EmSize,
Constants
.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
1884
(int)(lsrun.EmSize *
Constants
.MinInterWordCompressionPerEm),
1934
(int)(lsrun.EmSize *
Constants
.MaxInterWordExpansionPerEm),
1989
pplsAdjustRight[1][i] = expandedBy *
Constants
.AcceptableLineStretchability;
2038
(int)(em *
Constants
.MinInterWordCompressionPerEm),
2165
(int)(em *
Constants
.MaxInterWordExpansionPerEm),
2255
pplsExpansionRight[1][igi + i] = expandedBy *
Constants
.AcceptableLineStretchability;
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
325
_height = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
326
_baselineOffset = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
MS\Internal\TextFormatting\TextFormatterImp.cs (9)
459
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphWidth,
Constants
.RealInfiniteWidth);
461
double realMaxFontRenderingEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
465
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.Indent,
Constants
.RealInfiniteWidth, "paragraphProperties.Indent");
466
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.LineHeight,
Constants
.RealInfiniteWidth, "paragraphProperties.LineHeight");
468
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.DefaultIncrementalTab,
Constants
.RealInfiniteWidth, "paragraphProperties.DefaultIncrementalTab");
674
return i *
Constants
.DefaultIdealToReal;
691
value = Math.Max(value,
Constants
.DefaultIdealToReal);
737
get { return
Constants
.DefaultRealToIdeal; }
MS\Internal\TextFormatting\TextMetrics.cs (4)
191
* pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode)
192
/ pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode)
200
_textAscent = (int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
201
_textHeight = (int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
MS\Internal\TextFormatting\TextRunCacheImp.cs (2)
120
double realMaxFontRenderingEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
MS\Internal\TextFormatting\TextStore.cs (2)
2354
_settings.Formatter.IdealToReal((
Constants
.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip),
2359
else if (metrics.Width > _settings.Formatter.IdealToReal((
Constants
.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip))
System\Windows\Media\CharacterMetrics.cs (8)
7
using Constants = MS.Internal.TextFormatting.
Constants
;
289
int hash = (int)(_blackBoxWidth *
Constants
.DefaultRealToIdeal);
290
hash = (hash * HashMultiplier) + (int)(_blackBoxHeight *
Constants
.DefaultRealToIdeal);
291
hash = (hash * HashMultiplier) + (int)(_baseline *
Constants
.DefaultRealToIdeal);
292
hash = (hash * HashMultiplier) + (int)(_leftSideBearing *
Constants
.DefaultRealToIdeal);
293
hash = (hash * HashMultiplier) + (int)(_rightSideBearing *
Constants
.DefaultRealToIdeal);
294
hash = (hash * HashMultiplier) + (int)(_topSideBearing *
Constants
.DefaultRealToIdeal);
295
hash = (hash * HashMultiplier) + (int)(_bottomSideBearing *
Constants
.DefaultRealToIdeal);
System\Windows\Media\FormattedText.cs (2)
2008
private const double MaxFontEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
167
return
Constants
.IdealInfiniteWidth;
171
ArgumentOutOfRangeException.ThrowIfGreaterThan(maxLineWidth,
Constants
.RealInfiniteWidth);