←Select platform

LEADResourceDirectory Enumeration

Summary
Specifies the LEADTOOLS resource directory.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public enum LEADResourceDirectory 
typedef NS_ENUM(NSInteger, LTLEADResourceDirectory) { 
 LTLEADResourceDirectoryLibraries,  
 LTLEADResourceDirectoryFonts,  
}; 
public final class LEADResourceDirectory 
    extends java.lang.Enum<LEADResourceDirectory> 
public enum class LEADResourceDirectory   
class LEADResourceDirectory(Enum): 
   Libraries = 0 
   Fonts = 1 
   OpenSSL = 2 
   LibreOffice = 3 
Members
Value Member Description
0 Libraries Indicates the directory for the LEADTOOLS runtime libraries.
1 Fonts Indicates the directory for font files to be used by LEADTOOLS.
2 OpenSSL Indicates the directory for OpenSSL files to be used by LEADTOOLS.
3 LibreOffice Indicates the LibreOffice installation directory to be used by LEADTOOLS for loading Open Document Format (ODF) files.
Remarks

Some LEADTOOLS classes will use a common resource directory at runtime. Use SetResourceDirectory to set the path to the desired resource directory.

Refer to LEADTOOLS Drawing Engine and Multi-Platform Consideration for more information on shadow font usage.

The LEADResourceDirectory.LibreOffice path should point to the root of the LibreOffice installation. For example, on Windows, LibreOffice programs might get installed to C:\Program Files\LibreOffice\program. In this case, set LEADResourceDirectory.LibreOffice to the parent of the program subfolder, C:\Program Files\LibreOffice. By following this approach, LEADTOOLS can locate the LibreOffice installation at C:\Program Files\LibreOffice on Windows and /usr/lib/libreoffice on Linux.

Example
C#
Java
using Leadtools; 
using Leadtools.Codecs; 
 
 
private void RasterDefaultsSetResourceDirectoryExample() 
{ 
	// Set the Fonts Resource folder 
	RasterDefaults.SetResourceDirectory(LEADResourceDirectory.Fonts, @"SomeCommonFontsFolder"); 
} 
 
import java.io.File; 
import java.io.IOException; 
import java.nio.file.Files; 
import java.nio.file.Path; 
import java.nio.file.Paths; 
 
import org.junit.*; 
import org.junit.Test; 
import org.junit.runner.JUnitCore; 
import org.junit.runner.Result; 
import org.junit.runner.notification.Failure; 
import static org.junit.Assert.*; 
 
import leadtools.*; 
import leadtools.codecs.*; 
 
 
public void RasterDefaultsSetResourceDirectoryExample() { 
   // Set the Fonts Resource folder 
   RasterDefaults.setResourceDirectory(LEADResourceDirectory.FONTS, 
         "C:\\Users\\Username\\AppData\\Local\\Microsoft\\Windows\\Fonts"); 
} 
Requirements

Target Platforms

See Also

Reference

Leadtools Namespace

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.