37 references to Util
PresentationCore (37)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (3)
37
if (locationString == null ||
Util
.IsReferenceToWindowsFonts(locationString))
48
resolved =
Util
.IsSupportedSchemeForAbsoluteFontFamilyUri(absoluteUri);
50
else if (baseUri != null &&
Util
.IsEnumerableFontUriScheme(baseUri))
MS\Internal\FontCache\DWriteFactory.cs (1)
72
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)
242
FontSource fontSource = new FontSource(new Uri(Path.Combine(FamilyCollection.SxSFontsResourcePrefix, _systemCompositeFontsFileNames[index] +
Util
.CompositeFontExtension), UriKind.RelativeOrAbsolute),
616
string fontFamilyReference =
Util
.ConvertFamilyNameAndLocationToFontFamilyReference(
621
string friendlyName =
Util
.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference);
662
string fontFamilyReference =
Util
.ConvertFamilyNameAndLocationToFontFamilyReference(
667
string friendlyName =
Util
.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference);
MS\Internal\FontCache\FontCacheUtil.cs (3)
503
fontSourceUri = new Uri(fontUri.GetComponents(
Util
.UriWithoutFragment, UriFormat.SafeUnescaped));
840
Util
.ThrowWin32Exception(Marshal.GetLastWin32Error(), fileName);
943
return
Util
.CompareOrdinalIgnoreCase(x._name, y._name);
MS\Internal\FontCache\FontResourceCache.cs (1)
130
if (!
Util
.IsSupportedFontExtension(extension, out isComposite))
MS\Internal\FontCache\FontSource.cs (1)
132
return
Util
.IsAppSpecificUri(_fontUri);
MS\Internal\FontCache\FontSourceCollection.cs (7)
53
bool isSingleSupportedFile =
Util
.IsSupportedFontExtension(
Util
.GetUriExtension(_uri), out isComposite);
54
if (isSingleSupportedFile || !
Util
.IsEnumerableFontUriScheme(_uri))
95
files = Directory.GetFiles(_uri.LocalPath, "*" +
Util
.CompositeFontExtension);
121
if (
Util
.IsSupportedFontExtension(Path.GetExtension(file), out isComposite))
145
isComposite =
Util
.IsCompositeFont(Path.GetExtension(_uri.AbsoluteUri));
150
isComposite =
Util
.IsCompositeFont(Path.GetExtension(resourceName));
MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
352
string normalizedString =
Util
.GetNormalizedFontFamilyReference(_friendlyName, startIndex, length);
System\Windows\Media\FontFamily.cs (2)
432
FamilyCollection familyCollection = FamilyCollection.FromWindowsFonts(
Util
.WindowsFontsUriObject);
511
Uri locationUri = new Uri(
Util
.WindowsFontsUriObject, canonicalFamilyReference.EscapedFileName);
System\Windows\Media\Fonts.cs (4)
92
if (!
Util
.IsSupportedSchemeForAbsoluteFontFamilyUri(fontLocation))
108
else if (
Util
.IsReferenceToWindowsFonts(location))
242
object.ReferenceEquals(fontLocation,
Util
.WindowsFontsUriObject) ?
263
Util
.WindowsFontsUriObject, // fontLocation
System\Windows\Media\FormattedText.cs (1)
2000
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\GlyphRun.cs (2)
235
Util
.PixelsPerDip,
2482
private float _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\GlyphTypeface.cs (3)
90
_originalUri =
Util
.CombineUriWithFaceIndex(uriPath, checked((int)fontFaceDWrite.Index));
125
Util
.SplitFontFaceIndex(typefaceSource, out fontSourceUri, out faceIndex);
245
throw
Util
.ConvertInPageException(FontSource, e);
System\Windows\Media\textformatting\TextLine.cs (1)
128
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\textformatting\TextRunProperties.cs (1)
118
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;
System\Windows\Media\textformatting\TextSource.cs (1)
71
private double _pixelsPerDip = MS.Internal.FontCache.
Util
.PixelsPerDip;