private IList<Font> getFonts()
{
if (!string.IsNullOrEmpty(_mainFontPath) && !string.IsNullOrEmpty(_defaultFontPath))
{
return new List<Font>
{
FontFactory.GetFont(_mainFontPath, BaseFont.IDENTITY_H, true, Size, (int)Style, Color),
FontFactory.GetFont(_defaultFontPath, BaseFont.IDENTITY_H, true, Size, (int)Style, Color)
};
}
return new List<Font>
{
FontFactory.GetFont(_mainFont.Familyname, BaseFont.IDENTITY_H, true, Size, (int)Style, Color),
FontFactory.GetFont(_defaultFont.Familyname, BaseFont.IDENTITY_H, true, Size, (int)Style, Color)
};
}