Re: working with styled text records
Re: working with styled text records
- Subject: Re: working with styled text records
- From: Malcolm Fitzgerald <email@hidden>
- Date: Fri, 20 Sep 2002 19:14:15 +1000
I want to be able to manipulate the style object. Does anyone know
where I can find out what the style data consists of and how I can
use it?
Here are some links:
<http://developer.apple.com/techpubs/macosx/Carbon/text/TextEdit/TextEdit/Da
taTypes/STElement.html>
<http://developer.apple.com/techpubs/macosx/Carbon/text/TextEdit/TextEdit/Da
taTypes/ScrpSTElement.html>
The styl you posted above can basically be broken up like this:
styl 0001 00000000 000F 000B 0003 0100 000B 0000 0000 0000
0001 2 byte count of style-runs in the text
00000000 4 byte offset, (0-based), of this style in the text
000F 2 byte font height, (in this case, 15)
000B 2 byte font ascent, (11)
0003 2 byte font id number, (3). On most Macs: Geneva
0100 2 byte bitmap. The high-byte specifies bold, italic, etc
Thanks Arthur, I'll just point out that the STElement document at the
link above says that the low-order byte contains the character style.
The high-order byte is used to store the style run direction. Left to
right (0) or right to left (1).
000B 2 byte font point size, (11)
0000 2 byte red of RGB color
0000 2 byte green of RGB color
0000 2 byte blue of RGB color
--
--
Malcolm Fitzgerald email@hidden
Database Manager
http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.