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