Data Fields with Custom Fonts on Fenix 3 HR

Former Member
Former Member
I am trying my hand on the SDK to implement a data field with a custom font for a Fenix 3 HR using the Ecplise Plugin.

The code can be successfully simluated for e.g. fenix 5x but it starts / terminates with an out of memory error when selecting the fenix 3 HR for simulation:

Failed invoking <symbol>
Out Of Memory Error
in MainLayout (Rez:30)
in onLayout (C:\Users\MyUser\Documents\Generell\eclip-mars.ws\MyRunB\source\MyRunBView.mc:45)

Any ideas ? Thank you !
  • What is likely happening, is on the f3-hr, DF's have a limit of 16k (it's a CIQ 1.x device), while on the f5 (it's a CIQ 2.x device), it's 26k. (you can see the current, max, and peak memory on the bottom line of the simulator), and Custom fonts tend to use a bunch of memory. You might be able to reduce the memory for the custom font by removing characters you don't need - like if you only need 0-9, don't include a-z or A-Z.

    Also, using layouts may cause the DF to use more memory, so instead of layouts, you may want to just use dc calls, and position things in your code.
  • Former Member
    Former Member
    mexico overen

    :D
    as suggested ...
    (0) Basis code was from Project FieldTimerEvents
    (1) tried Gfx.FONT_NUMBER_THAI_HOT => worked Memory 11.7 / 16 kB peak 13.1 KB
    (2) removed Layout specific code
    (3) reduced customFont set to digits
    (4) it worked
    Memory 10.9 / 16 kB peak 14.8 kB with a customFont

    Thank you ..