2 instantiations of FamilyTypeface
PresentationCore (2)
MS\Internal\FontFace\CompositeFontParser.cs (1)
555FamilyTypeface face = new FamilyTypeface();
System\Windows\Media\FamilyTypefaceCollection.cs (1)
282items[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)
142_familyTypefaceEnumerator = ((IEnumerable<FamilyTypeface>)typefaceCollection._familyTypefaceCollection).GetEnumerator(); 160FamilyTypeface familyTypeface = _familyTypefaceEnumerator.Current; 205_familyTypefaceEnumerator = ((IEnumerable<FamilyTypeface>)_typefaceCollection._familyTypefaceCollection).GetEnumerator(); 214private IEnumerator<FamilyTypeface> _familyTypefaceEnumerator;
MS\Internal\Shaping\CompositeFontFamily.cs (9)
216FamilyTypeface bestFace = FindExactFamilyTypeface(style, weight, stretch); 384FamilyTypeface bestFace = FindNearestFamilyTypeface(style, weight, stretch); 397private FamilyTypeface FindNearestFamilyTypeface( 408FamilyTypeface bestFace = (FamilyTypeface)_fontInfo.FamilyTypefaces[0]; 414FamilyTypeface currentFace = (FamilyTypeface)_fontInfo.FamilyTypefaces[i]; 431private FamilyTypeface FindExactFamilyTypeface( 444foreach (FamilyTypeface currentFace in _fontInfo.FamilyTypefaces)
System\Windows\Media\FamilyMapCollection.cs (2)
95if (!elementType.IsAssignableFrom(typeof(FamilyTypeface))) 96throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface), elementType));
System\Windows\Media\FamilyTypeface.cs (2)
206public bool Equals(FamilyTypeface typeface) 255return Equals(o as FamilyTypeface);
System\Windows\Media\FamilyTypefaceCollection.cs (31)
12public sealed class FamilyTypefaceCollection : IList<FamilyTypeface>, SC.IList 16private FamilyTypeface[] _items; 44public IEnumerator<FamilyTypeface> GetEnumerator() 61public void Add(FamilyTypeface item) 77public bool Contains(FamilyTypeface item) 85public void CopyTo(FamilyTypeface[] array, int index) 108public bool Remove(FamilyTypeface item) 143public int IndexOf(FamilyTypeface item) 151public void Insert(int index, FamilyTypeface item) 167public FamilyTypeface this[int index] 187return FindItem(value as FamilyTypeface) >= 0; 192return FindItem(value as FamilyTypeface); 203int i = FindItem(value as FamilyTypeface); 230private int InsertItem(int index, FamilyTypeface item) 247_items = new FamilyTypeface[InitialCapacity]; 251FamilyTypeface[] items = new FamilyTypeface[_count * 2]; 276FamilyTypeface[] items = new FamilyTypeface[_count]; 290private FamilyTypeface GetItem(int index) 297private void SetItem(int index, FamilyTypeface item) 328private int FindItem(FamilyTypeface item) 354private FamilyTypeface ConvertValue(object obj) 358FamilyTypeface familyTypeface = obj as FamilyTypeface; 360throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(FamilyTypeface))); 373if (!elementType.IsAssignableFrom(typeof(FamilyTypeface))) 374throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(FamilyTypeface[]), elementType)); 389private class Enumerator : IEnumerator<FamilyTypeface>, SC.IEnumerator 393FamilyTypeface _current; 424public FamilyTypeface Current
PresentationFramework (1)
HashHelper.cs (1)
15typeof(System.Windows.Media.FamilyTypeface), // bug 1612103