Font Creation Behavior

Home / Forums / Marmalade Archive / Iw2D / Font Creation Behavior
3 replies [Last post]
by: AneakXirtam
Status: Offline
Joined: 2010-10-09
Points: 2320

Hi,

Not sure if this is an error or just unexpected behavior on my part. When I use Iw2DCreateFontResource() I noticed it sets the new font as the current one. Is this supposed to happen? Unless I missed it, the documentation does not appear to mention this behavior.

Knowing you Airplay folks are usually busy... I can work around this. With having Iw2DSetFont() and Iw2DGetFont(), I was not expecting any other function to set the font. Wanted to bring this up in case it's an error.

Thanks,
Steven

by: Mark S
Status: Offline
Joined: 2009-10-23
Points: 81040
This is intentional (so it

This is intentional (so it don't require a SetFont call if only one font exists). It should be documented though.

by: AneakXirtam
Status: Offline
Joined: 2010-10-09
Points: 2320
A quick mention in the API

A quick mention in the API reference under Iw2DCreateFont and Iw2DCreateFontResource such as "creates font and sets as the current one for drawing" is good enough for me.

Steven _

by: Mark S
Status: Offline
Joined: 2009-10-23
Points: 81040
Yep, I'll get this added.

Yep, I'll get this added.

Latest Posts

Latest Comments

Top Contributors

  • Chris D : 27,010
  • MonRoyals : 26,970
  • Salman : 26,720
  • Jez Hammond : 20,130
  • pjan : 11,150
  • gjw : 10,350
  • Paolo Oliverio : 9,640
  • Beaker_2 : 8,390
  • Kite : 8,210
  • bluescrn : 7,810