41 references to Util
PresentationCore (41)
Core\CSharp\MS\Internal\FontCache\CanonicalFontFamilyReference.cs (3)
48if (locationString == null || Util.IsReferenceToWindowsFonts(locationString)) 59resolved = Util.IsSupportedSchemeForAbsoluteFontFamilyUri(absoluteUri); 61else if (baseUri != null && Util.IsEnumerableFontUriScheme(baseUri))
Core\CSharp\MS\Internal\FontCache\DWriteFactory.cs (1)
99if (String.Compare(((localPath.Length > 0 && localPath[localPath.Length - 1] != Path.DirectorySeparatorChar) ? localPath + Path.DirectorySeparatorChar : localPath), Util.WindowsFontsUriObject.LocalPath, StringComparison.OrdinalIgnoreCase) == 0)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (5)
358FontSource fontSource = new FontSource(new Uri(FamilyCollection.SxSFontsLocation + _systemCompositeFontsFileNames[index] + Util.CompositeFontExtension, UriKind.Absolute), 796string fontFamilyReference = Util.ConvertFamilyNameAndLocationToFontFamilyReference( 801string friendlyName = Util.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference); 842string fontFamilyReference = Util.ConvertFamilyNameAndLocationToFontFamilyReference( 847string friendlyName = Util.ConvertFontFamilyReferenceToFriendlyName(fontFamilyReference);
Core\CSharp\MS\Internal\FontCache\FontCacheUtil.cs (3)
670fontSourceUri = new Uri(fontUri.GetComponents(Util.UriWithoutFragment, UriFormat.SafeUnescaped)); 1053Util.ThrowWin32Exception(Marshal.GetLastWin32Error(), fileName); 1175return Util.CompareOrdinalIgnoreCase(x._name, y._name);
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (1)
134if (!Util.IsSupportedFontExtension(extension, out isComposite))
Core\CSharp\MS\Internal\FontCache\FontSource.cs (1)
164return Util.IsAppSpecificUri(_fontUri);
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (11)
101bool isSingleSupportedFile = Util.IsSupportedFontExtension(Util.GetUriExtension(_uri), out isComposite); 102if (isSingleSupportedFile || !Util.IsEnumerableFontUriScheme(_uri)) 126if (object.ReferenceEquals(_uri, Util.WindowsFontsUriObject)) 177Util.WindowsFontsUriObject.LocalPath)); 190files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension); 212fileName = Path.Combine(Util.WindowsFontsLocalPath, fileName); 237files = Directory.GetFiles(_uri.LocalPath, "*" + Util.CompositeFontExtension); 264if (Util.IsSupportedFontExtension(Path.GetExtension(file), out isComposite)) 288isComposite = Util.IsCompositeFont(Path.GetExtension(_uri.AbsoluteUri)); 293isComposite = Util.IsCompositeFont(Path.GetExtension(resourceName));
Core\CSharp\MS\Internal\FontFace\FontFamilyIdentifier.cs (1)
370string normalizedString = Util.GetNormalizedFontFamilyReference(_friendlyName, startIndex, length);
Core\CSharp\System\Windows\Media\FontFamily.cs (2)
464FamilyCollection familyCollection = FamilyCollection.FromWindowsFonts(Util.WindowsFontsUriObject); 550Uri locationUri = new Uri(Util.WindowsFontsUriObject, canonicalFamilyReference.EscapedFileName);
Core\CSharp\System\Windows\Media\Fonts.cs (4)
109if (!Util.IsSupportedSchemeForAbsoluteFontFamilyUri(fontLocation)) 125else if (Util.IsReferenceToWindowsFonts(location)) 267object.ReferenceEquals(fontLocation, Util.WindowsFontsUriObject) ? 293Util.WindowsFontsUriObject, // fontLocation
Core\CSharp\System\Windows\Media\FormattedText.cs (1)
2033private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
Core\CSharp\System\Windows\Media\GlyphRun.cs (2)
249Util.PixelsPerDip, 2516private float _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (3)
109_originalUri = new SecurityCriticalDataClass<Uri>(Util.CombineUriWithFaceIndex(uriPath, checked((int)fontFaceDWrite.Index))); 154Util.SplitFontFaceIndex(typefaceSource, out fontSourceUri, out faceIndex); 311throw Util.ConvertInPageException(FontSource, e);
Core\CSharp\System\Windows\Media\TextFormatting\TextLine.cs (1)
140private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
Core\CSharp\System\Windows\Media\TextFormatting\TextRunProperties.cs (1)
123private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;
Core\CSharp\System\Windows\Media\TextFormatting\TextSource.cs (1)
77private double _pixelsPerDip = MS.Internal.FontCache.Util.PixelsPerDip;