|
@@ -1522,10 +1522,10 @@ namespace ComPDFKit.Tool.DrawTool
|
|
textui.BorderThickness = new Thickness(0);
|
|
textui.BorderThickness = new Thickness(0);
|
|
textui.Text = annotFreeText.Content;
|
|
textui.Text = annotFreeText.Content;
|
|
|
|
|
|
- string fontName = string.Empty;
|
|
|
|
- string fontFamily = string.Empty;
|
|
|
|
- CPDFFont.GetFamilyStyleName(annotFreeText.FreeTextDa.FontName, ref fontFamily, ref fontName);
|
|
|
|
- textui.FontFamily = new FontFamily(fontFamily);
|
|
|
|
|
|
+ //string fontName = string.Empty;
|
|
|
|
+ //string fontFamily = string.Empty;
|
|
|
|
+ //CPDFFont.GetFamilyStyleName(annotFreeText.FreeTextDa.FontName, ref fontFamily, ref fontName);
|
|
|
|
+ textui.FontFamily = new FontFamily(annotFreeText.FreeTextDa.FontName + ",Microsoft YaHei");
|
|
|
|
|
|
textui.AcceptsReturn = true;
|
|
textui.AcceptsReturn = true;
|
|
textui.TextWrapping = TextWrapping.Wrap;
|
|
textui.TextWrapping = TextWrapping.Wrap;
|
|
@@ -1762,10 +1762,10 @@ namespace ComPDFKit.Tool.DrawTool
|
|
dashBorder.DrawDashBorder(true, drawWidth,rawWidth, dashCollection);
|
|
dashBorder.DrawDashBorder(true, drawWidth,rawWidth, dashCollection);
|
|
}
|
|
}
|
|
|
|
|
|
- string fontName = string.Empty;
|
|
|
|
- string fontFamily = string.Empty;
|
|
|
|
- CPDFFont.GetFamilyStyleName(annotFreeText.FreeTextDa.FontName, ref fontFamily, ref fontName);
|
|
|
|
- lastTextui.FontFamily = new FontFamily(fontFamily);
|
|
|
|
|
|
+ //string fontName = string.Empty;
|
|
|
|
+ //string fontFamily = string.Empty;
|
|
|
|
+ //CPDFFont.GetFamilyStyleName(annotFreeText.FreeTextDa.FontName, ref fontFamily, ref fontName);
|
|
|
|
+ lastTextui.FontFamily = new FontFamily(annotFreeText.FreeTextDa.FontName + ",Microsoft YaHei");
|
|
|
|
|
|
lastTextui.FontWeight = IsBold(textAttribute.FontName) ? FontWeights.Bold : FontWeights.Normal;
|
|
lastTextui.FontWeight = IsBold(textAttribute.FontName) ? FontWeights.Bold : FontWeights.Normal;
|
|
lastTextui.FontStyle = IsItalic(textAttribute.FontName) ? FontStyles.Italic : FontStyles.Normal;
|
|
lastTextui.FontStyle = IsItalic(textAttribute.FontName) ? FontStyles.Italic : FontStyles.Normal;
|