I profiled all the devices in these four families to understand how the fonts progress. Some weirdness, but easy enough to handle. I just need to sort my array of fonts by height so my fontPicker method will properly fit the best font.
I profiled all the devices in these four families to understand how the fonts progress. Some weirdness, but easy enough to handle. I just need to sort my array of fonts by height so my fontPicker method will properly fit the best font.
So here is what I've found... these size fonts are useful to add as custom sizes to fill in the gaps... in devices that have enough memory. Again, just posting in case this helps anyone... Happy New Year.
22 | Fenix 5XPlus | 006-B3111-00 |
Fenix 5X | 006-B2604-00 | |
Fenix 5SPlus | 006-B2900-00 | |
Fenix 5Plus | 006-B3110-00 | |
Fenix 6SPro | 006-B3288-00 | |
ForeRunner 945 | 006-B2886-00 | |
FR 245 Music | 006-B3077-00 | |
22,26 | Fenix 6Pro | 006-B3290-00 |
Fenix 6XPro | 006-B3291-00 | |
26,31 | Edge 820 | 006-B2530-00 |
Edge 520+ | 006-B3112-00 | |
Edge 1000 | 006-B1836-00 | |
31.35 | Edge 830 | 006-B3122-00 |
Edge 530 | 006-B3121-00 | |
35,41 | Edge 1030 | 006-B2713-00 |
006-B3095-00 |
Here is the code.. in case this also helps.
//==============================================================
// Load up custom fonts - using EXCLUDE annotations specified in the JUNGLE file
//==============================================================
(:smallMem)
function loadMyFonts() {
var sysSettings = System.getDeviceSettings();
var PN = sysSettings.partNumber;
switch (PN) {
// add custom fonts with height 22
case "006-B3111-00": case "006-B2604-00": case "006-B2900-00": case "006-B3110-00": case "006-B3288-00": case "006-B2886-00": case "006-B3077-00":
Fonts[C1] = WatchUi.loadResource(Rez.Fonts.my22);
Fonts[C2] = null;
break;
// add custom fonts with height 22 & 26
case "006-B3290-00": case "006-B3291-00":
Fonts[C1] = WatchUi.loadResource(Rez.Fonts.my22);
Fonts[C2] = WatchUi.loadResource(Rez.Fonts.my26);
break;
// add custom fonts with height 26 & 31
case "006-B2530-00": case "006-B3112-00": case "006-B1836-00":
Fonts[C1] = WatchUi.loadResource(Rez.Fonts.my26);
Fonts[C2] = WatchUi.loadResource(Rez.Fonts.my31);
break;
// add custom fonts with height 31 & 35
case "006-B3122-00": case "006-B3121-00":
Fonts[C1] = WatchUi.loadResource(Rez.Fonts.my31);
Fonts[C2] = WatchUi.loadResource(Rez.Fonts.my35);
break;
// add custom fonts with height 35 & 41
case "006-B2713-00": case "006-B3095-00":
Fonts[C1] = WatchUi.loadResource(Rez.Fonts.my35);
Fonts[C2] = WatchUi.loadResource(Rez.Fonts.my41);
break;
}
}