2 instantiations of FamilyTypeface
PresentationCore (2)
MS\Internal\FontFace\CompositeFontParser.cs (1)
567
FamilyTypeface face = new
FamilyTypeface
();
System\Windows\Media\FamilyTypefaceCollection.cs (1)
295
items[i++] = new
FamilyTypeface
(face);
52 references to FamilyTypeface
PresentationCore (52)
MS\Internal\FontFace\CompositeFontParser.cs (3)
567
FamilyTypeface
face = new FamilyTypeface();
635
private void ParseFamilyTypefaceAttributes(
FamilyTypeface
face)
718
private void ParseCharacterMetricsElement(
FamilyTypeface
face)
MS\Internal\FontFace\TypefaceCollection.cs (4)
156
_familyTypefaceEnumerator = ((IEnumerable<
FamilyTypeface
>)typefaceCollection._familyTypefaceCollection).GetEnumerator();
174
FamilyTypeface
familyTypeface = _familyTypefaceEnumerator.Current;
219
_familyTypefaceEnumerator = ((IEnumerable<
FamilyTypeface
>)_typefaceCollection._familyTypefaceCollection).GetEnumerator();
228
private IEnumerator<
FamilyTypeface
> _familyTypefaceEnumerator;
MS\Internal\Shaping\CompositeFontFamily.cs (9)
224
FamilyTypeface
bestFace = FindExactFamilyTypeface(style, weight, stretch);
392
FamilyTypeface
bestFace = FindNearestFamilyTypeface(style, weight, stretch);
405
private
FamilyTypeface
FindNearestFamilyTypeface(
416
FamilyTypeface
bestFace = (
FamilyTypeface
)_fontInfo.FamilyTypefaces[0];
422
FamilyTypeface
currentFace = (
FamilyTypeface
)_fontInfo.FamilyTypefaces[i];
439
private
FamilyTypeface
FindExactFamilyTypeface(
452
foreach (
FamilyTypeface
currentFace in _fontInfo.FamilyTypefaces)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\HashHelper.cs (1)
42
typeof(System.Windows.Media.
FamilyTypeface
), // bug 1612103
System\Windows\Media\FamilyMapCollection.cs (2)
107
if (!elementType.IsAssignableFrom(typeof(
FamilyTypeface
)))
108
throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(
FamilyTypeface
), elementType));
System\Windows\Media\FamilyTypeface.cs (2)
222
public bool Equals(
FamilyTypeface
typeface)
271
return Equals(o as
FamilyTypeface
);
System\Windows\Media\FamilyTypefaceCollection.cs (31)
25
public sealed class FamilyTypefaceCollection : IList<
FamilyTypeface
>, SC.IList
29
private
FamilyTypeface
[] _items;
57
public IEnumerator<
FamilyTypeface
> GetEnumerator()
74
public void Add(
FamilyTypeface
item)
90
public bool Contains(
FamilyTypeface
item)
98
public void CopyTo(
FamilyTypeface
[] array, int index)
121
public bool Remove(
FamilyTypeface
item)
156
public int IndexOf(
FamilyTypeface
item)
164
public void Insert(int index,
FamilyTypeface
item)
180
public
FamilyTypeface
this[int index]
200
return FindItem(value as
FamilyTypeface
) >= 0;
205
return FindItem(value as
FamilyTypeface
);
216
int i = FindItem(value as
FamilyTypeface
);
243
private int InsertItem(int index,
FamilyTypeface
item)
260
_items = new
FamilyTypeface
[InitialCapacity];
264
FamilyTypeface
[] items = new
FamilyTypeface
[_count * 2];
289
FamilyTypeface
[] items = new
FamilyTypeface
[_count];
303
private
FamilyTypeface
GetItem(int index)
310
private void SetItem(int index,
FamilyTypeface
item)
341
private int FindItem(
FamilyTypeface
item)
367
private
FamilyTypeface
ConvertValue(object obj)
371
FamilyTypeface
familyTypeface = obj as
FamilyTypeface
;
373
throw new ArgumentException(SR.Format(SR.CannotConvertType, obj.GetType(), typeof(
FamilyTypeface
)));
386
if (!elementType.IsAssignableFrom(typeof(
FamilyTypeface
)))
387
throw new ArgumentException(SR.Format(SR.CannotConvertType, typeof(
FamilyTypeface
[]), elementType));
402
private class Enumerator : IEnumerator<
FamilyTypeface
>, SC.IEnumerator
406
FamilyTypeface
_current;
437
public
FamilyTypeface
Current