Re: RTF font parsing?
Re: RTF font parsing?
- Subject: Re: RTF font parsing?
- From: John Stiles <email@hidden>
- Date: Fri, 09 Sep 2005 06:54:58 -0700
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:
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