RTF incompatibilites Windows/NSAttributesString RTFFromRange:...
RTF incompatibilites Windows/NSAttributesString RTFFromRange:...
- Subject: RTF incompatibilites Windows/NSAttributesString RTFFromRange:...
- From: Fredrik Olsson <email@hidden>
- Date: Wed, 28 Jun 2006 14:49:54 +0200
I have trouble saving conforming RTF-documents from a NSAttributedString.
Windows XP's Wordpad refuses the fonts, and even more stangely refuses
to change the fonts in the loaded document. Replacing all fonts with a
scaled bitmap system font. I use standrd fonts such as Times New Roman
and Comix Sans MS that are available, so it is not that.
Further more bullet lists are ignored when opening documents saved from
Wordpad, and then converted to a NSAttributesString.
Investigating the rtf files as plain text reveals that the header and
list definitions differ quite allot. Is there something I have missed on
Cocoa's part when it comes to readon and writing more Win compatible files?
Cocoa is more forgiving only failing with reading lists, so writing more
compatible files is more of a priority.
// Fredrik Olsson
ps. I attach two files, one win and one mac, with the same content, but
much different formatting on either platform.
Attachment:
test_winrtf.rtf
Description: RTF file
Attachment:
test_macrtf.rtf
Description: RTF file
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden