Sunday, July 27, 2008

Starting Text

One of the real pleasures of working on Cello is the quality of the code and commenting. I have started working on text. The two big things left on the file format are text and sounds. Text is, I think, the bigger - but is more familiar to me.The first step is to compile in the registration object and then to work through files that need to be built and included, to add and then build them. The text is a little different from other parts of Cello in that it is complex and has a lot that is dependent on the text engine (D-Type) as well as Windows. Ultimately all of the basics will need to be moved over to Core Text. There is a lot to understand. It is just so nice to open a header file that kicks off like this:
DWATextItemStyle holds style information that applies to a text item. Bit flags for each property determine whether that property is valid in the style. Invalid properties are used for leaving some properties 'as is' when setting the style, and when a property value is not consistent across the whole selection when getting the style.

No comments: