'Declaration
Public Function AddTrueTypeFontFromFileU( _ ByVal FilePath As String, _ ByVal FileName As String, _ ByVal Bold As Boolean, _ ByVal Italic As Boolean, _ ByVal EnableSubset As Boolean _ ) As String
public string AddTrueTypeFontFromFileU( string FilePath, string FileName, bool Bold, bool Italic, bool EnableSubset )
public function AddTrueTypeFontFromFileU( FilePath: String; FileName: String; Bold: Boolean; Italic: Boolean; EnableSubset: Boolean ): String;
public function AddTrueTypeFontFromFileU( FilePath : String, FileName : String, Bold : boolean, Italic : boolean, EnableSubset : boolean ) : String;
public: string* AddTrueTypeFontFromFileU( string* FilePath, string* FileName, bool Bold, bool Italic, bool EnableSubset )
public: String^ AddTrueTypeFontFromFileU( String^ FilePath, String^ FileName, bool Bold, bool Italic, bool EnableSubset )
Parameters
- FilePath
- The file path of the resource font file.
- FileName
- The name of the required font to add for use in the PDF document.
- Bold
- Set this parameter to true if you want to add the font in the bold style, otherwise set it to false.
- Italic
- Set this parameter to true if you want to add the font in the italic style, otherwise set it to false.
- EnableSubset
- Set this parameter to true if you want to subset the font, otherwise set it to false.
Subsetting a font allows you to keep a file smaller, but note that the font subset is gradually updated with each use of the GdPicturePDF.DrawText method.
Return Value
This resource name you can subsequently pass, for example, to the GdPicturePDF.DrawText method, as well as to all methods, which have a font resource name as a parameter.