37 references to Util
PresentationCore (37)
MS\Internal\FontCache\CanonicalFontFamilyReference.cs (3)
36if (locationString == null || Util.IsReferenceToWindowsFonts(locationString)) 47resolved = Util.IsSupportedSchemeForAbsoluteFontFamilyUri(absoluteUri); 49else if (baseUri != null && Util.IsEnumerableFontUriScheme(baseUri))
MS\Internal\FontCache\DWriteFactory.cs (1)
71if (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)
238FontSource fontSource = new FontSource(new Uri(Path.Combine(FamilyCollection.SxSFontsResourcePrefix, _systemCompositeFontsFileNames[index] + Util.CompositeFontExtension), UriKind.RelativeOrAbsolute), 613string fontFamilyReference = Util.ConvertFamilyNameAndLocationToFontFamilyReference( 618string friendlyName = Util.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference); 659string fontFamilyReference = Util.ConvertFamilyNameAndLocationToFontFamilyReference( 664string friendlyName = Util.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference);
MS\Internal\FontCache\FontCacheUtil.cs (3)
499fontSourceUri = new Uri(fontUri.GetComponents(Util.UriWithoutFragment, UriFormat.SafeUnescaped)); 828Util.ThrowWin32Exception(Marshal.GetLastWin32Error(), fileName); 929return Util.CompareOrdinalIgnoreCase(x._name, y._name);
MS\Internal\FontCache\FontResourceCache.cs (1)
129if (!Util.IsSupportedFontExtension(extension, out isComposite))
MS\Internal\FontCache\FontSource.cs (1)
131return Util.IsAppSpecificUri(_fontUri);
MS\Internal\FontCache\FontSourceCollection.cs (7)
52bool isSingleSupportedFile = Util.IsSupportedFontExtension(Util.GetUriExtension(_uri), out isComposite); 53if (isSingleSupportedFile || !Util.IsEnumerableFontUriScheme(_uri)) 94files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension); 120if (Util.IsSupportedFontExtension(Path.GetExtension(file), out isComposite)) 144isComposite = Util.IsCompositeFont(Path.GetExtension(_uri.AbsoluteUri)); 149isComposite = Util.IsCompositeFont(Path.GetExtension(resourceName));
MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
351string normalizedString = Util.GetNormalizedFontFamilyReference(_friendlyName, startIndex, length);
System\Windows\Media\FontFamily.cs (2)
428FamilyCollection familyCollection = FamilyCollection.FromWindowsFonts(Util.WindowsFontsUriObject); 507Uri locationUri = new Uri(Util.WindowsFontsUriObject, canonicalFamilyReference.EscapedFileName);
System\Windows\Media\Fonts.cs (4)
91if (!Util.IsSupportedSchemeForAbsoluteFontFamilyUri(fontLocation)) 107else if (Util.IsReferenceToWindowsFonts(location)) 241object.ReferenceEquals(fontLocation, Util.WindowsFontsUriObject) ? 262Util.WindowsFontsUriObject, // fontLocation
System\Windows\Media\FormattedText.cs (1)
1983private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
System\Windows\Media\GlyphRun.cs (2)
223Util.PixelsPerDip, 2468private float _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
System\Windows\Media\GlyphTypeface.cs (3)
89_originalUri = Util.CombineUriWithFaceIndex(uriPath, checked((int)fontFaceDWrite.Index)); 124Util.SplitFontFaceIndex(typefaceSource, out fontSourceUri, out faceIndex); 244throw Util.ConvertInPageException(FontSource, e);
System\Windows\Media\textformatting\TextLine.cs (1)
127private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
System\Windows\Media\textformatting\TextRunProperties.cs (1)
117private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
System\Windows\Media\textformatting\TextSource.cs (1)
70private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;