Skip to content

Commit 30d4218

Browse files
committed
Added method to set the font config directory.
1 parent d9f740c commit 30d4218

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Magick.NET/MagickNET.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@ public static void Initialize(ConfigurationFiles configFiles, string path)
237237
public static void ResetRandomSeed()
238238
=> NativeMagickNET.SetRandomSeed(-1);
239239

240+
/// <summary>
241+
/// Sets the directory that contains the FontConfig configuration files.
242+
/// </summary>
243+
/// <param name="path">The path of the FontConfig directory.</param>
244+
public static void SetFontConfigDirectory(string path)
245+
=> Environment.SetEnv("FONTCONFIG_PATH", FileHelper.GetFullPath(path));
246+
240247
/// <summary>
241248
/// Sets the directory that contains the Ghostscript file gsdll32.dll / gsdll64.dll.
242249
/// </summary>

0 commit comments

Comments
 (0)