Explorar el Código

bug - 添加Freetext注释,字体只会显示Times

sunhaonan hace 11 meses
padre
commit
02e185daa3

+ 3 - 2
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationControl/CPDFAnnotationControl.xaml.cs

@@ -75,7 +75,8 @@ namespace Compdfkit_Tools.PDFControl
         {
             if (this.pdfViewerControl != null)
             {
-                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler; ;
+                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler -= PDFToolManager_MouseLeftButtonDownHandler;
+                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler;
                 //this.pdfViewerControl.AnnotActiveHandler += PDFViewer_AnnotActiveHandler;
                 //this.pdfViewerControl.AnnotEditHandler -= PdfViewer_AnnotEditHandler;
                 //this.pdfViewerControl.AnnotEditHandler += PdfViewer_AnnotEditHandler;
@@ -126,7 +127,7 @@ namespace Compdfkit_Tools.PDFControl
             if (this.pdfViewerControl != null)
             {
                 //this.pdfViewerControl.AnnotActiveHandler -= PDFViewer_AnnotActiveHandler;
-
+                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler -= PDFToolManager_MouseLeftButtonDownHandler;
             }
         }
 

+ 2 - 2
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFFont/CPDFFontUI.xaml.cs

@@ -20,11 +20,11 @@ namespace Compdfkit_Tools.Common
             get => FontFamilyComboBox.SelectedItem.ToString();
             set
             {
-                if (value == "Courier New")
+                if (value == "Courier")
                 {
                     FontFamilyComboBox.SelectedIndex = 0;
                 }
-                else if (value == "Arial")
+                else if (value == "Helvetica")
                 {
                     FontFamilyComboBox.SelectedIndex = 1;