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