Article View: comp.lang.lisp.mcl
Article #694Re: fred style vectors
From: Bill St. Clair
Date: Wed, 06 Jan 1993 17:20
Date: Wed, 06 Jan 1993 17:20
29 lines
1400 bytes
1400 bytes
At 10:15 1/6/93 +1200, David Maulsby wrote:
>Style vectors summarize all the font/style changes across a range of text.
>I'd like to get at this information but I find no routines for decoding
>them, nor documentation on their format.
>
>Any pointers would be appreciated!
;Format of style vectors:
;one word has the number of different fonts used
;each font is four bytes 2 bytes font id, one byte size, one byte style
;each font change has four bytes, 1 byte font index, 3 bytes offset
? (setq *print-base* 16.)
10
? (buffer-get-style (fred-buffer (front-window)) 0 t)
#(2 4 900 4 901 100 0 200 33 100 41 200 6B ...)
? (type-of *)
(SIMPLE-ARRAY (SIGNED-BYTE 10) (63))
?
2 Number of fonts
4 Font ID for font index 1: "Monaco"
#x900 9 point, :plain
4 Font ID for font index 2: "Monaco"
#x901 9 point, :bold
#x100 Font index 1, high byte of offset = 0
0 low word of offset = 0
#x200 Font index 2, high byte of offset = 0
#x033 low word of offset = #x33
Technical Details
Message-ID:
<9301061616.AA24741@cambridge.apple.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!apple!cambridge.apple.com!bill@cambridge.apple.comShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!apple!cambridge.apple.com!bill@cambridge.apple.com From: bill@cambridge.apple.com (Bill St. Clair) Newsgroups: comp.lang.lisp.mcl Subject: Re: fred style vectors Message-ID: <9301061616.AA24741@cambridge.apple.com> Date: 6 Jan 93 17:20:57 GMT Sender: info-mcl-request@cambridge.apple.com Lines: 29 Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M