Re: styled text
Re: styled text
- Subject: Re: styled text
- From: has <email@hidden>
- Date: Sun, 20 Jan 2002 15:28:58 +0000
Hi here
>
Hello, I've been trying to reverse engineer how styled text data
>
works, and I'd like to share:
>
5: This appears to be a font id number, with id 21 being Helvetica,
>
id 4 being Monaco, id 3 being Geneva, and id 22 being Courier.
>
I don't know if this is "hard-coded", ie: that these ids are
>
the same on every Mac, or if they are somehow dynamically
>
generated based on what fonts you have on your system.
It's a fixed value, unique to each font family. Pop open a screen/truetype
font in Resedit and look at its FOND resource to see.
>
I have a plan for a vanilla script that will perform simple
>
html formatting from a styled text. I'll keep you posted.
Interesting project. Though I fear the W3C Hit Squads will be after you for
"Crimes Against Semantic Markup" as a result. (If it's any consolation, I
blame the authors of styled text editors for using such a hokey system in
the first place. And Netscape for spreading the disease to the web with
their foul <FONT> tags. First against the wall when the revolution comes,
hey? Gimme a decent Quark-style Style palette any day...)
HTH
Cheers
has :)