(0005276 - 911 - 1107 - 1107 - 1107 - 1107 - 1107)
BGaertner
06-18-06 23:01
|
The correct name of the class is TextFontReference. fontNumber is an inherited instance variable, it is not referenced by the methods of TextFontReference.
In the superclass TextFontchange the value of fontNumber is an index into the fontArray of a TextStyle. Recommended values are in the range from 1 to fontAray size. (TextStyle maps all indices that are not in that range to reasonable defaults, look at TextStyle>>fontAt: and SequenceableCollection>>atPin:)
Perhaps one shoult redefine openHtmlOn: for TextFontReference:
openHtmlOn: aStream
"put on the given stream the tag to open the html
representation of the receiver"
font openHtmlOn: aStream
closeHtmlOn: aStream
"put on the given stream the tag to close the html
representation of the receiver"
font closeHtmlOn: aStream
As an aside, I think that TextFontReference should be a subclass of TextAttribute. |