2 instantiations of FamilyTypeface
PresentationCore (2)
MS\Internal\FontFace\CompositeFontParser.cs (1)
555FamilyTypeface face = new FamilyTypeface();
System\Windows\Media\FamilyTypefaceCollection.cs (1)
281items[i++] = new FamilyTypeface(face);
52 references to FamilyTypeface
PresentationCore (51)
MS\Internal\FontFace\CompositeFontParser.cs (3)
555FamilyTypeface face = new FamilyTypeface(); 623private void ParseFamilyTypefaceAttributes(FamilyTypeface face) 706private void ParseCharacterMetricsElement(FamilyTypeface face)
MS\Internal\FontFace\TypefaceCollection.cs (4)
141_familyTypefaceEnumerator = ((IEnumerable<FamilyTypeface>)typefaceCollection._familyTypefaceCollection).GetEnumerator(); 159FamilyTypeface familyTypeface = _familyTypefaceEnumerator.Current; 204_familyTypefaceEnumerator = ((IEnumerable<FamilyTypeface>)_typefaceCollection._familyTypefaceCollection).GetEnumerator(); 213private IEnumerator<FamilyTypeface> _familyTypefaceEnumerator;
MS\Internal\Shaping\CompositeFontFamily.cs (9)
215FamilyTypeface bestFace = FindExactFamilyTypeface(style, weight, stretch); 383FamilyTypeface bestFace = FindNearestFamilyTypeface(style, weight, stretch); 396private FamilyTypeface FindNearestFamilyTypeface( 407FamilyTypeface bestFace = (FamilyTypeface)_fontInfo.FamilyTypefaces[0]; 413FamilyTypeface currentFace = (FamilyTypeface)_fontInfo.FamilyTypefaces[i]; 430private FamilyTypeface FindExactFamilyTypeface( 443foreach (FamilyTypeface currentFace in _fontInfo.FamilyTypefaces)
System\Windows\Media\FamilyMapCollection.cs (2)
94if (!elementType.IsAssignableFrom(typeof(FamilyTypeface))) 95throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType));
System\Windows\Media\FamilyTypeface.cs (2)
205public bool Equals(FamilyTypeface typeface) 254return Equals(o as FamilyTypeface);
System\Windows\Media\FamilyTypefaceCollection.cs (31)
11public sealed class FamilyTypefaceCollection : IList<FamilyTypeface>, SC.IList 15private FamilyTypeface[] _items; 43public IEnumerator<FamilyTypeface> GetEnumerator() 60public void Add(FamilyTypeface item) 76public bool Contains(FamilyTypeface item) 84public void CopyTo(FamilyTypeface[] array, int index) 107public bool Remove(FamilyTypeface item) 142public int IndexOf(FamilyTypeface item) 150public void Insert(int index, FamilyTypeface item) 166public FamilyTypeface this[int index] 186return FindItem(value as FamilyTypeface) >= 0; 191return FindItem(value as FamilyTypeface); 202int i = FindItem(value as FamilyTypeface); 229private int InsertItem(int index, FamilyTypeface item) 246_items = new FamilyTypeface[InitialCapacity]; 250FamilyTypeface[] items = new FamilyTypeface[_count * 2]; 275FamilyTypeface[] items = new FamilyTypeface[_count]; 289private FamilyTypeface GetItem(int index) 296private void SetItem(int index, FamilyTypeface item) 327private int FindItem(FamilyTypeface item) 353private FamilyTypeface ConvertValue(object obj) 357FamilyTypeface familyTypeface = obj as FamilyTypeface; 359throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 372if (!elementType.IsAssignableFrom(typeof(FamilyTypeface))) 373throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface[]), elementType)); 388private class Enumerator : IEnumerator<FamilyTypeface>, SC.IEnumerator 392private FamilyTypeface _current; 423public FamilyTypeface Current
PresentationFramework (1)
HashHelper.cs (1)
15typeof(System.Windows.Media.FamilyTypeface), // bug 1612103