|
@@ -181,7 +181,7 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
CTextAttribute cTextAttribute = cPDFAnnotation.GetTextAttribute();
|
|
|
bool isBold = IsBold(cTextAttribute.FontName);
|
|
|
bool isItalic = IsItalic(cTextAttribute.FontName);
|
|
|
- FontType fontType = GetFontType(cTextAttribute.FontName);
|
|
|
+ FontType fontType = GetFontType((sender as ComboBox).SelectedItem?.ToString());
|
|
|
cTextAttribute.FontName = ObtainFontName(fontType, isBold, isItalic);
|
|
|
cPDFAnnotation.SetTextAttribute(cTextAttribute);
|
|
|
cPDFAnnotation.UpdateFormAp();
|
|
@@ -201,12 +201,12 @@ namespace Compdfkit_Tools.PDFControl
|
|
|
case 0:
|
|
|
break;
|
|
|
case 1:
|
|
|
- isItalic = IsItalic(cTextAttribute.FontName);
|
|
|
+ isItalic = false;
|
|
|
isBold = true;
|
|
|
break;
|
|
|
case 2:
|
|
|
isItalic = true;
|
|
|
- isBold = IsBold(cTextAttribute.FontName);
|
|
|
+ isBold = false;
|
|
|
break;
|
|
|
case 3:
|
|
|
isItalic = true;
|