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