FontSettings.RemoveFontCacheFile
FontSettings.RemoveFontCacheFile method
Removes of the font cache file.
public static void RemoveFontCacheFile()
Examples
The following code demonstrates method for removing file with cache of loaded fonts.
[C#]
string src = "SimpleText.psd";
FontSettings.RemoveFontCacheFile();
using (var psdImage = (PsdImage)Image.Load(src))
{
foreach (var layer in psdImage.Layers)
{
if (layer is TextLayer textLayer)
{
textLayer.GetFonts();
}
}
}
See Also
- class FontSettings
- namespace Aspose.PSD
- assembly Aspose.PSD