Revision: 4867
http://skim-app.svn.sourceforge.net/skim-app/?rev=4867&view=rev
Author: hofman
Date: 2008-10-26 10:05:40 +0000 (Sun, 26 Oct 2008)
Log Message:
-----------
Add font color attribute to rich text of text note contents if available.
Modified Paths:
--------------
trunk/PDFAnnotationFreeText_SKExtensions.m
Modified: trunk/PDFAnnotationFreeText_SKExtensions.m
===================================================================
--- trunk/PDFAnnotationFreeText_SKExtensions.m 2008-10-25 13:19:21 UTC (rev
4866)
+++ trunk/PDFAnnotationFreeText_SKExtensions.m 2008-10-26 10:05:40 UTC (rev
4867)
@@ -131,6 +131,8 @@
NSTextStorage *textContents = [super textContents];
if ([self font])
[textContents addAttribute:NSFontAttributeName value:[self font]
range:NSMakeRange(0, [textContents length])];
+ if ([self respondsToSelector:@selector(fontColor)] && [self fontColor])
+ [textContents addAttribute:NSForegroundColorAttributeName value:[self
fontColor] range:NSMakeRange(0, [textContents length])];
return textContents;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit