10 references to TypefaceMetricsCache
PresentationCore (10)
MS\Internal\FontFace\FontFamilyIdentifier.cs (4)
234
CanonicalFontFamilyReference[] canonicalReferences =
TypefaceMetricsCache
.ReadonlyLookup(hashKey) as CanonicalFontFamilyReference[];
254
TypefaceMetricsCache
.Add(hashKey, canonicalReferences);
358
CanonicalFontFamilyReference canonicalReference =
TypefaceMetricsCache
.ReadonlyLookup(hashKey) as CanonicalFontFamilyReference;
367
TypefaceMetricsCache
.Add(hashKey, canonicalReference);
System\Windows\Media\FontFamily.cs (2)
323
family =
TypefaceMetricsCache
.ReadonlyLookup(FamilyIdentifier) as IFontFamily;
339
TypefaceMetricsCache
.Add(FamilyIdentifier, family);
System\Windows\Media\Typeface.cs (4)
712
CachedTypeface cachedTypeface =
TypefaceMetricsCache
.ReadonlyLookup(this) as CachedTypeface;
717
TypefaceMetricsCache
.Add(this, cachedTypeface);
774
IFontFamily cachedValue =
TypefaceMetricsCache
.ReadonlyLookup(sourceFontFamily.FamilyIdentifier) as IFontFamily;
782
TypefaceMetricsCache
.Add(sourceFontFamily.FamilyIdentifier, firstFontFamily);