Possible Bug in SDK Examples

FazliSapuanFazliSapuan Posts: 12Member
I noticed there is a "fonts_unload_custom_font" in the API yet in all the official examples that use a custom font (Simplicity and feature_custom_font), they are not unloaded using this function.

Is this function still necessary? Because if it is, then I think we've got some pretty broken examples over here. Many devs use the official examples as a reference of how things should be done.
·

Comments

  • Dirk MikaDirk Mika Posts: 195Member Regular
    AFAIK, it had been discussed quite some times. You definitely have to unload custom fonts otherwise you will run out of resources sooner or later.

    So, yes I would consider the examples as incomplete at least.

    Dirk
    Apps: Timer - Pebloid
    If you like my work, consider donating: Paypal
    ·
  • FazliSapuanFazliSapuan Posts: 12Member
    Well I'm more concerned that an "incomplete" watchface is in the official "store" right now. It's hard to trust other third-party watchfaces when the pebble guys can't even get it right.
    ·
  • FazliSapuanFazliSapuan Posts: 12Member
    Thank you very much for this clarification! I was really surprised when somebody accused my code of leaking memory.

    I guess there's some room for improvement in the API docs to explain things like these in greater detail.

    Cheers!
    ·
Sign In or Register to comment.