|
@@ -3594,6 +3594,24 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
|
break;
|
|
|
case CAnnotationTypeTextField:{
|
|
|
CPDFTextWidgetAnnotation *textWidget = [[CPDFTextWidgetAnnotation alloc] initWithKMNoteBounds:bounds document:self.document];
|
|
|
+ textWidget.stringValue = NSLocalizedString(@"", nil);
|
|
|
+ NSColor* backgroundColor = [sud colorForKey:@"SKAnnotationTextWidgetBackgroundColorKey"];
|
|
|
+ if (backgroundColor) {
|
|
|
+ textWidget.backgroundColor = backgroundColor;
|
|
|
+ } else {
|
|
|
+ textWidget.backgroundColor = [NSColor clearColor];
|
|
|
+ }
|
|
|
+
|
|
|
+ NSColor* fontColor = [sud colorForKey:@"SKAnnotationTextWidgetFontColorKey"];
|
|
|
+ if (fontColor) {
|
|
|
+ textWidget.fontColor = fontColor;
|
|
|
+ }
|
|
|
+ textWidget.alignment = [sud integerForKey:@"SKAnnotationTextWidgetAlignmenKey"];
|
|
|
+ NSFont *font = [sud fontForNameKey:SKAnnotationTextWidgetFontNameKey sizeKey:@"SKAnnotationTextWidgetFontSizeKey"];
|
|
|
+ if (font) {
|
|
|
+ textWidget.font = font;
|
|
|
+ }
|
|
|
+ textWidget.isMultiline = [sud boolForKey:@"SKAnnotationTextMultilineKey"];
|
|
|
newAnnotation = textWidget;
|
|
|
}
|
|
|
break;
|