PdfMetamorphosisPdfSettingFontsDirectory Property |
Full local path to fonts directory (any folder with *.ttf files). Default value: Fonts directory of the current OS.
Namespace: SautinSoftAssembly: PdfMetamorphosis (in PdfMetamorphosis.dll) Version: 2024.12.3
Syntax public string FontsDirectory { get; set; }
Public Property FontsDirectory As String
Get
Set
Property Value
StringRemarks Advice for developers who creates ASP.Net or Silverlight projects:
Some hosting providers disables any access to windows directories. For example, GoDaddy doesn't allow to read directory "Windows\Fonts".
We recommend to create own "Fonts" directory in your project and copy *.ttf files to it from "Windows\Fonts". You may copy only several fonts, but we recommend to put the font "Arial Unicode MS" - ARIALUNI.TTF anyway.
Example SautinSoft.PdfMetamorphosis p = new SautinSoft.PdfMetamorphosis();
p.PdfSettings.FontsDirectory = Path.Combine(Server.MapPath(""), @"Fonts\");
Dim p As New SautinSoft.PdfMetamorphosis()
p.PdfSettings.FontsDirectory = Path.Combine(Server.MapPath(""), "Fonts\")
See Also