10 references to TypefaceMetricsCache
PresentationCore (10)
MS\Internal\FontFace\FontFamilyIdentifier.cs (4)
247
CanonicalFontFamilyReference[] canonicalReferences =
TypefaceMetricsCache
.ReadonlyLookup(hashKey) as CanonicalFontFamilyReference[];
267
TypefaceMetricsCache
.Add(hashKey, canonicalReferences);
371
CanonicalFontFamilyReference canonicalReference =
TypefaceMetricsCache
.ReadonlyLookup(hashKey) as CanonicalFontFamilyReference;
380
TypefaceMetricsCache
.Add(hashKey, canonicalReference);
System\Windows\Media\FontFamily.cs (2)
346
family =
TypefaceMetricsCache
.ReadonlyLookup(FamilyIdentifier) as IFontFamily;
362
TypefaceMetricsCache
.Add(FamilyIdentifier, family);
System\Windows\Media\Typeface.cs (4)
722
CachedTypeface cachedTypeface =
TypefaceMetricsCache
.ReadonlyLookup(this) as CachedTypeface;
727
TypefaceMetricsCache
.Add(this, cachedTypeface);
784
IFontFamily cachedValue =
TypefaceMetricsCache
.ReadonlyLookup(sourceFontFamily.FamilyIdentifier) as IFontFamily;
792
TypefaceMetricsCache
.Add(sourceFontFamily.FamilyIdentifier, firstFontFamily);