• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: RTF font parsing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: RTF font parsing?
      • From: Gen Kiyooka <email@hidden>
References: 
 >RTF font parsing? (From: Matt Baker <email@hidden>)

  • Prev by Date: Proper way of ending text field editing on Quit
  • Next by Date: Re: [ANN] HOM paper available
  • Previous by thread: RTF font parsing?
  • Next by thread: Re: RTF font parsing?
  • Index(es):
    • Date
    • Thread