Re: RTF font parsing?
Re: RTF font parsing?
- Subject: Re: RTF font parsing?
- From: Gen Kiyooka <email@hidden>
- Date: Fri, 9 Sep 2005 15:37:37 -0700
The font table for RTF is stored at the head of the file. A simple
RTF parser is
included in the Microsoft Word Developers kit, which used to be a
free download
on MSDN.
Gen
On Sep 9, 2005, at 6:54 AM, John Stiles wrote:
Wouldn't it be easier to load the RTF file into an
NSAttributedString and then walk through the NSAttributedString,
looking at the font used by each style run in sequence? (This might
not work if the font specified in the RTF doesn't exist on the
user's system, though.)
Matt Baker wrote:
Hello,
I'm looking for a regular expression (regex) that can read a RTF
and return the font names used in the file.. I do not need any
GUI, no WASTEfield,I just need to be able to read font names in
RTF files.
Any suggestions? i tried a sample RTF font regex "(\{\\f\d*)\\
([^;] +;)", but no luck.. Well, that and I don't do regex well :)
The RTF is saved from a Cocoa text editor.
Thanks!
Matt
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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
_______________________________________________
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