I'm trying to get some EF features done and I'm implementing ric fonts now (as my TextOut()/NumOut() implementation will use FontTextOut() instead).
First of all, is there any documentations on ric fonts (that didn't disappear together with nxtasy)? I couldn't find any... As far as I know, to get a working ric font you need:
- A sprite with ID 1 containing the graphics of the font.
- A VarMap with ID 2 containing the x positions for the characters.
- A VarMap with ID 3 containing the y positions for the characters.
- A VarMap with ID 4 containing the width for the characters.
- A VarMap with ID 5 containing the height for the characters.
- A Options element with a value of 32769 and where width and height are the default width and height (for wrapping purposes).
Does anyone have a better understanding of what is going on in the firmware when calling FontTextOut()?
A bit off-topic, but I experienced funny results with RectOut() and negative widths and heights. Negative widths and heights are certainly not meaningful, but RectOut() takes int anyway. When using negative values, it seems to use abs() on the value thus ignoring the sign. I could understand if the rectangle didn't display or even if the rectangle now extended in the opposite direction but I didn't see this coming...
It is also interesting how CircleOut() is restricted to byte for radius, while ric files do not have this limitation.