public void InstallViaPathInstallFontFileInstances() { var sut = new FontCollection(); var collectionFromPath = sut.InstallCollection(TestFonts.SimpleTrueTypeCollection, out var descriptions); var allInstances = sut.Families.SelectMany(x => sut.FindAll(x.Name)); Assert.All(allInstances, i => { var font = Assert.IsType <FileFontInstance>(i); }); }
public void InstallViaPathInstallFontFileInstances() { var sut = new FontCollection(); var family = sut.Install(TestFonts.CarterOneFile, out var descriptions); var allInstances = sut.FindAll(family.Name, CultureInfo.InvariantCulture); Assert.All(allInstances, i => { var font = Assert.IsType <FileFontInstance>(i); }); }
public void InstallViaPathInstallFontFileInstances() { var sut = new FontCollection(); IEnumerable <FontFamily> collectionFromPath = sut.InstallCollection(TestFonts.SimpleTrueTypeCollection, out IEnumerable <FontDescription> descriptions); IEnumerable <IFontInstance> allInstances = sut.Families.SelectMany(x => sut.FindAll(x.Name, CultureInfo.InvariantCulture)); Assert.All(allInstances, i => { FileFontInstance font = Assert.IsType <FileFontInstance>(i); }); }