Duality.Resources.Font.SaveCustomFamilyData C# (CSharp) 메소드

SaveCustomFamilyData() 공개 메소드

Saves the Fonts custom font family to file.
public SaveCustomFamilyData ( string path = null ) : void
path string The path of the file to which to save the font family data.
리턴 void
        public void SaveCustomFamilyData(string path = null)
        {
            if (this.customFamilyData == null) throw new InvalidOperationException("There is no custom family data defined that could be saved.");
            if (path == null) path = this.sourcePath;

            // We're saving this Pixmaps pixel data for the first time
            if (!this.IsDefaultContent && this.sourcePath == null) this.sourcePath = path;

            File.WriteAllBytes(path, this.customFamilyData);
        }