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