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

  • Prev by Date: Re: Proper way of ending text field editing on Quit
  • Next by Date: Core Data, fetched property question
  • Previous by thread: Re: RTF font parsing?
  • Next by thread: Scrolling notification
  • Index(es):
    • Date
    • Thread