|
@@ -1018,11 +1018,7 @@ namespace ComPDFKit.Tool
|
|
|
CTextAttribute textAttr = new CTextAttribute();
|
|
|
textAttr.FontColor = pushButtonParam.FontColor;
|
|
|
textAttr.FontSize = (float)pushButtonParam.FontSize;
|
|
|
- FontType checkFontType = CFontNameHelper.GetFontType(pushButtonParam.FontName);
|
|
|
- textAttr.FontName = CFontNameHelper.ObtainFontName(
|
|
|
- checkFontType == FontType.Unknown ? FontType.Helvetica : checkFontType,
|
|
|
- pushButtonParam.IsBold,
|
|
|
- pushButtonParam.IsItalic);
|
|
|
+ textAttr.FontName = pushButtonParam.FontName;
|
|
|
widget.SetTextAttribute(textAttr);
|
|
|
|
|
|
if (!string.IsNullOrEmpty(pushButtonParam.FieldName))
|
|
@@ -1175,11 +1171,7 @@ namespace ComPDFKit.Tool
|
|
|
CTextAttribute textAttr = new CTextAttribute();
|
|
|
textAttr.FontColor = textBoxParam.FontColor;
|
|
|
textAttr.FontSize = (float)textBoxParam.FontSize;
|
|
|
- FontType checkFontType = CFontNameHelper.GetFontType(textBoxParam.FontName);
|
|
|
- textAttr.FontName = CFontNameHelper.ObtainFontName(
|
|
|
- checkFontType == FontType.Unknown ? FontType.Helvetica : checkFontType,
|
|
|
- textBoxParam.IsBold,
|
|
|
- textBoxParam.IsItalic);
|
|
|
+ textAttr.FontName = textBoxParam.FontName;
|
|
|
widget.SetTextAttribute(textAttr);
|
|
|
|
|
|
if (!string.IsNullOrEmpty(textBoxParam.FieldName))
|
|
@@ -1224,11 +1216,7 @@ namespace ComPDFKit.Tool
|
|
|
CTextAttribute textAttr = new CTextAttribute();
|
|
|
textAttr.FontColor = comboBoxParam.FontColor;
|
|
|
textAttr.FontSize = (float)comboBoxParam.FontSize;
|
|
|
- FontType checkFontType = CFontNameHelper.GetFontType(comboBoxParam.FontName);
|
|
|
- textAttr.FontName = CFontNameHelper.ObtainFontName(
|
|
|
- checkFontType == FontType.Unknown ? FontType.Helvetica : checkFontType,
|
|
|
- comboBoxParam.IsBold,
|
|
|
- comboBoxParam.IsItalic);
|
|
|
+ textAttr.FontName = comboBoxParam.FontName;
|
|
|
widget.SetTextAttribute(textAttr);
|
|
|
|
|
|
if (!string.IsNullOrEmpty(comboBoxParam.FieldName))
|
|
@@ -1279,11 +1267,7 @@ namespace ComPDFKit.Tool
|
|
|
CTextAttribute textAttr = new CTextAttribute();
|
|
|
textAttr.FontColor = listBoxParam.FontColor;
|
|
|
textAttr.FontSize = (float)listBoxParam.FontSize;
|
|
|
- FontType checkFontType = CFontNameHelper.GetFontType(listBoxParam.FontName);
|
|
|
- textAttr.FontName = CFontNameHelper.ObtainFontName(
|
|
|
- checkFontType == FontType.Unknown ? FontType.Helvetica : checkFontType,
|
|
|
- listBoxParam.IsBold,
|
|
|
- listBoxParam.IsItalic);
|
|
|
+ textAttr.FontName = listBoxParam.FontName;
|
|
|
widget.SetTextAttribute(textAttr);
|
|
|
|
|
|
if (!string.IsNullOrEmpty(listBoxParam.FieldName))
|
|
@@ -1335,11 +1319,7 @@ namespace ComPDFKit.Tool
|
|
|
textAttr.FontSize = (float)signatureParam.FontSize;
|
|
|
bool isBold = IsBold(textAttr.FontName);
|
|
|
bool isItalic = IsItalic(textAttr.FontName);
|
|
|
- FontType checkFontType = CFontNameHelper.GetFontType(signatureParam.FontName);
|
|
|
- textAttr.FontName = CFontNameHelper.ObtainFontName(
|
|
|
- checkFontType == FontType.Unknown ? FontType.Helvetica : checkFontType,
|
|
|
- isBold,
|
|
|
- isItalic);
|
|
|
+ textAttr.FontName = signatureParam.FontName;
|
|
|
widget.SetTextAttribute(textAttr);
|
|
|
|
|
|
if (!string.IsNullOrEmpty(signatureParam.FieldName))
|