40 references to Util
PresentationCore (40)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (3)
41
if (locationString == null ||
Util
.IsReferenceToWindowsFonts(locationString))
52
resolved =
Util
.IsSupportedSchemeForAbsoluteFontFamilyUri(absoluteUri);
54
else if (baseUri != null &&
Util
.IsEnumerableFontUriScheme(baseUri))
MS\Internal\FontCache\DWriteFactory.cs (1)
77
if (string.Equals((localPath.Length > 0 && localPath[localPath.Length - 1] != Path.DirectorySeparatorChar) ? localPath + Path.DirectorySeparatorChar : localPath,
Util
.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase))
MS\Internal\FontCache\FamilyCollection.cs (5)
251
FontSource fontSource = new FontSource(new Uri(Path.Combine(FamilyCollection.SxSFontsResourcePrefix, _systemCompositeFontsFileNames[index] +
Util
.CompositeFontExtension), UriKind.RelativeOrAbsolute),
626
string fontFamilyReference =
Util
.ConvertFamilyNameAndLocationToFontFamilyReference(
631
string friendlyName =
Util
.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference);
672
string fontFamilyReference =
Util
.ConvertFamilyNameAndLocationToFontFamilyReference(
677
string friendlyName =
Util
.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference);
MS\Internal\FontCache\FontCacheUtil.cs (3)
519
fontSourceUri = new Uri(fontUri.GetComponents(
Util
.UriWithoutFragment, UriFormat.SafeUnescaped));
856
Util
.ThrowWin32Exception(Marshal.GetLastWin32Error(), fileName);
959
return
Util
.CompareOrdinalIgnoreCase(x._name, y._name);
MS\Internal\FontCache\FontResourceCache.cs (1)
133
if (!
Util
.IsSupportedFontExtension(extension, out isComposite))
MS\Internal\FontCache\FontSource.cs (1)
142
return
Util
.IsAppSpecificUri(_fontUri);
MS\Internal\FontCache\FontSourceCollection.cs (10)
73
bool isSingleSupportedFile =
Util
.IsSupportedFontExtension(
Util
.GetUriExtension(_uri), out isComposite);
74
if (isSingleSupportedFile || !
Util
.IsEnumerableFontUriScheme(_uri))
93
if (object.ReferenceEquals(_uri,
Util
.WindowsFontsUriObject))
133
files = Directory.GetFiles(_uri.LocalPath, "*" +
Util
.CompositeFontExtension);
155
fileName = Path.Combine(
Util
.WindowsFontsLocalPath, fileName);
171
files = Directory.GetFiles(_uri.LocalPath, "*" +
Util
.CompositeFontExtension);
198
if (
Util
.IsSupportedFontExtension(Path.GetExtension(file), out isComposite))
222
isComposite =
Util
.IsCompositeFont(Path.GetExtension(_uri.AbsoluteUri));
227
isComposite =
Util
.IsCompositeFont(Path.GetExtension(resourceName));
MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
364
string normalizedString =
Util
.GetNormalizedFontFamilyReference(_friendlyName, startIndex, length);
System\Windows\Media\FontFamily.cs (2)
451
FamilyCollection familyCollection = FamilyCollection.FromWindowsFonts(
Util
.WindowsFontsUriObject);
530
Uri locationUri = new Uri(
Util
.WindowsFontsUriObject, canonicalFamilyReference.EscapedFileName);
System\Windows\Media\Fonts.cs (4)
105
if (!
Util
.IsSupportedSchemeForAbsoluteFontFamilyUri(fontLocation))
121
else if (
Util
.IsReferenceToWindowsFonts(location))
255
object.ReferenceEquals(fontLocation,
Util
.WindowsFontsUriObject) ?
276
Util
.WindowsFontsUriObject, // fontLocation
System\Windows\Media\FormattedText.cs (1)
2016
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\GlyphRun.cs (2)
248
Util
.PixelsPerDip,
2495
private float _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\GlyphTypeface.cs (3)
97
_originalUri =
Util
.CombineUriWithFaceIndex(uriPath, checked((int)fontFaceDWrite.Index));
133
Util
.SplitFontFaceIndex(typefaceSource, out fontSourceUri, out faceIndex);
254
throw
Util
.ConvertInPageException(FontSource, e);
System\Windows\Media\textformatting\TextLine.cs (1)
134
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\textformatting\TextRunProperties.cs (1)
121
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\textformatting\TextSource.cs (1)
75
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;