10 references to TypefaceMetricsCache
PresentationCore (10)
MS\Internal\FontFace\FontFamilyIdentifier.cs (4)
235
CanonicalFontFamilyReference[] canonicalReferences =
TypefaceMetricsCache
.ReadonlyLookup(hashKey) as CanonicalFontFamilyReference[];
255
TypefaceMetricsCache
.Add(hashKey, canonicalReferences);
359
CanonicalFontFamilyReference canonicalReference =
TypefaceMetricsCache
.ReadonlyLookup(hashKey) as CanonicalFontFamilyReference;
368
TypefaceMetricsCache
.Add(hashKey, canonicalReference);
System\Windows\Media\FontFamily.cs (2)
324
family =
TypefaceMetricsCache
.ReadonlyLookup(FamilyIdentifier) as IFontFamily;
340
TypefaceMetricsCache
.Add(FamilyIdentifier, family);
System\Windows\Media\Typeface.cs (4)
713
CachedTypeface cachedTypeface =
TypefaceMetricsCache
.ReadonlyLookup(this) as CachedTypeface;
718
TypefaceMetricsCache
.Add(this, cachedTypeface);
775
IFontFamily cachedValue =
TypefaceMetricsCache
.ReadonlyLookup(sourceFontFamily.FamilyIdentifier) as IFontFamily;
783
TypefaceMetricsCache
.Add(sourceFontFamily.FamilyIdentifier, firstFontFamily);