Overview
I've been grappling with a challenge by utilizing an array that encompasses the Unicode code point table. However, due to its immense size, I am encountering memory-related errors.
Breakdown of my Progress
Using Typescript alongside a Micro:Bit device, I have established a substantial array (consisting of 128 elements) crucial for my project. Within this array are diverse hexadecimal representations derived from the unicode table:
let font: number[] = [0x000b6526, 0x010514bf, 0x0004d6b2, 0x0010fc21, 0x0007c20f,
0x00744107, 0x01f4111f, 0x000d909b, 0x00117041, 0x0008ceb9, 0x0008c7e0, 0x01041041, .......];
Nevertheless, when attempting to store this array on the Micro:bit, it leads to a 021 error message (indicating insufficient free memory or excess objects in GC). Are there any overlooked alternatives for storing this array effectively? Further along in my project, I necessitate using this array as a reference table to convert characters from a string into their respective Unicode equivalents:
let character = font[string.charCodeAt(stringPosition)]
Any strategies or recommendations to address this memory predicament? Alternatively, is there a more efficient approach to accomplish my goal outlined in the question title?