PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Can't figure out how to make fonts landscape

Im trying to use the GapiDraw fonts to display on a landscape display. Is there a flag im missing for the font function to make it landscape? Im sure its a trival question, I just seem to be overlooking something.
All you should have to do is set the display to Landscape and you're all good. However, if you're setting the display to landscape after you've loaded your surfaces (including fonts) you'll have to recreate them to get them to show in landscape properly. Otherwise it's all handled seamlessly.
Ahh i dindt use the setdisplaymode function before. I usually program everything in the default displaymode. When I set it to landscape does it take any performance hit since it has to rotate everything on the pocket pc?
Not that I've noticed, but Johan would know better about that. I'm sure there's a slight performance hit regardless of the orientation if it's different from the native display orientation.
Yep, Hosed is correct (as usual 8) ). Basically the performance hit depends on:

(1) The natural orientation of the display
(2) The orientation of the image being copied to the display.

If you only use square areas the performance in landscape mode is 100% identical to "normal" mode. You can test this with the "simple" demo. If you use rectangular areas or the built-in system font (the system font will be optimized in the next version) the performance hit depends on how the image is aligned to the natural display orientation.

GapiDraw always translates all coordinates and even flips directions as much as possible to ensure that all data is copied in a cache-optimized way.
Sbl, Could you add an orientation flag in the GapiDraw font functions? Then I could program a landscape game using the normal mode coordinates and reducing the overhead neededto rotate surfaces.

Im just wondering if this would be a good idea or not.
Text orientation will sadly not make it to the next version.. I just have too many other features on my "to-do" list...

Hmm.. Why would you need to rotate your surfaces by the way? Just re-create your surfaces after you changed the display orientation and they will be aligned to the display...