Bloom.ToPalaso.FontInstaller.AllFontsExist C# (CSharp) Method

AllFontsExist() private static method

private static AllFontsExist ( string sourcePath ) : bool
sourcePath string
return bool
        private static bool AllFontsExist(string sourcePath)
        {
            var fontFolder = Environment.GetFolderPath(Environment.SpecialFolder.Fonts);
            foreach (var fontFile in Directory.GetFiles(sourcePath, "*.ttf"))
            {
                var destPath = Path.Combine(fontFolder, Path.GetFileName(fontFile));
                if (!RobustFile.Exists(destPath))
                    return false;
            }
            return true;
        }