52 references to Constants
PresentationCore (52)
MS\Internal\FontFace\CompositeFontParser.cs (8)
40
else if (value >
Constants
.GreatestMutiplierOfEm)
42
value =
Constants
.GreatestMutiplierOfEm;
44
else if (value < -
Constants
.GreatestMutiplierOfEm)
46
value = -
Constants
.GreatestMutiplierOfEm;
56
else if (value >
Constants
.GreatestMutiplierOfEm)
58
value =
Constants
.GreatestMutiplierOfEm;
72
else if (value >
Constants
.GreatestMutiplierOfEm)
74
value =
Constants
.GreatestMutiplierOfEm;
MS\Internal\TextFormatting\FormatSettings.cs (4)
62
_maxLineWidth =
Constants
.IdealInfiniteWidth;
163
return _pap.Wrap ? finiteFormatWidth :
Constants
.IdealInfiniteWidth;
174
int formatWidth = (paragraphWidth <= 0 ?
Constants
.IdealInfiniteWidth : paragraphWidth);
179
formatWidth = Math.Min(formatWidth,
Constants
.IdealInfiniteWidth);
MS\Internal\TextFormatting\FullTextState.cs (1)
108
Constants
.IdealInfiniteWidth // formatWidth
MS\Internal\TextFormatting\LineServicesCallbacks.cs (8)
456
lstTextMetrics.dvAscent = (int)Math.Round(typeface.Baseline(store.Pap.EmSize,
Constants
.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
457
lstTextMetrics.dvMultiLineHeight = (int)Math.Round(typeface.LineSpacing(store.Pap.EmSize,
Constants
.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
1913
(int)(lsrun.EmSize *
Constants
.MinInterWordCompressionPerEm),
1963
(int)(lsrun.EmSize *
Constants
.MaxInterWordExpansionPerEm),
2018
pplsAdjustRight[1][i] = expandedBy *
Constants
.AcceptableLineStretchability;
2067
(int)(em *
Constants
.MinInterWordCompressionPerEm),
2194
(int)(em *
Constants
.MaxInterWordExpansionPerEm),
2284
pplsExpansionRight[1][igi + i] = expandedBy *
Constants
.AcceptableLineStretchability;
MS\Internal\TextFormatting\SimpleTextLine.cs (2)
335
_height = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
336
_baselineOffset = formatter.IdealToReal((int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
MS\Internal\TextFormatting\TextFormatterImp.cs (9)
483
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphWidth,
Constants
.RealInfiniteWidth);
485
double realMaxFontRenderingEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
489
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.Indent,
Constants
.RealInfiniteWidth, "paragraphProperties.Indent");
490
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.LineHeight,
Constants
.RealInfiniteWidth, "paragraphProperties.LineHeight");
492
ArgumentOutOfRangeException.ThrowIfGreaterThan(paragraphProperties.DefaultIncrementalTab,
Constants
.RealInfiniteWidth, "paragraphProperties.DefaultIncrementalTab");
698
return i *
Constants
.DefaultIdealToReal;
715
value = Math.Max(value,
Constants
.DefaultIdealToReal);
761
get { return
Constants
.DefaultRealToIdeal; }
MS\Internal\TextFormatting\TextMetrics.cs (4)
207
* pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode)
208
/ pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode)
216
_textAscent = (int)Math.Round(pap.DefaultTypeface.Baseline(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
217
_textHeight = (int)Math.Round(pap.DefaultTypeface.LineSpacing(pap.EmSize,
Constants
.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
MS\Internal\TextFormatting\TextRunCacheImp.cs (2)
135
double realMaxFontRenderingEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
MS\Internal\TextFormatting\TextStore.cs (2)
2370
_settings.Formatter.IdealToReal((
Constants
.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip),
2375
else if (metrics.Width > _settings.Formatter.IdealToReal((
Constants
.IdealInfiniteWidth - currentPosition), _settings.TextSource.PixelsPerDip))
System\Windows\Media\CharacterMetrics.cs (8)
16
using Constants = MS.Internal.TextFormatting.
Constants
;
305
int hash = (int)(_blackBoxWidth *
Constants
.DefaultRealToIdeal);
306
hash = (hash * HashMultiplier) + (int)(_blackBoxHeight *
Constants
.DefaultRealToIdeal);
307
hash = (hash * HashMultiplier) + (int)(_baseline *
Constants
.DefaultRealToIdeal);
308
hash = (hash * HashMultiplier) + (int)(_leftSideBearing *
Constants
.DefaultRealToIdeal);
309
hash = (hash * HashMultiplier) + (int)(_rightSideBearing *
Constants
.DefaultRealToIdeal);
310
hash = (hash * HashMultiplier) + (int)(_topSideBearing *
Constants
.DefaultRealToIdeal);
311
hash = (hash * HashMultiplier) + (int)(_bottomSideBearing *
Constants
.DefaultRealToIdeal);
System\Windows\Media\FormattedText.cs (2)
2041
const double MaxFontEmSize =
Constants
.RealInfiniteWidth /
Constants
.GreatestMutiplierOfEm;
System\Windows\Media\textformatting\TextParagraphCache.cs (2)
185
return
Constants
.IdealInfiniteWidth;
189
ArgumentOutOfRangeException.ThrowIfGreaterThan(maxLineWidth,
Constants
.RealInfiniteWidth);