|
@@ -1522,10 +1522,10 @@ namespace ComPDFKit.Tool.DrawTool
|
|
|
textui.BorderThickness = new Thickness(0);
|
|
|
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.TextWrapping = TextWrapping.Wrap;
|
|
@@ -1762,10 +1762,10 @@ namespace ComPDFKit.Tool.DrawTool
|
|
|
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.FontStyle = IsItalic(textAttribute.FontName) ? FontStyles.Italic : FontStyles.Normal;
|